org.jibx.ws.server
Class OperationDefinition

java.lang.Object
  extended by org.jibx.ws.server.OperationDefinition

public final class OperationDefinition
extends Object

Defines an operation that is available for a service. Operations to be used for a service are set using ServiceDefinition.setOperationDefinitions(java.util.List).

The method name supplied in this definition must match the name of an accessible method of the service class (which is defined in the enclosing ServiceDefinition). If multiple methods are defined with this method name, the names of the input and/or output classes must be supplied to differentiate the method.

Presently, at most one input class is supported, since wrapped document-literal services are not supported.

The method may optionally have an InContext parameter as the last parameter, or InContext and OutContext parameters as the last 2 parameters. These additional parameters must not be defined in the OperationDefinition.

The optional input and output classes of the method must have bindings defined so that they can be unmarshalled and marshalled (respectively) by JiBX.

When using JiBX to configure the service, this object is populated from the XML service definition document by JiBX unmarshalling.


Constructor Summary
OperationDefinition()
           
 
Method Summary
 String getInputClassName()
          Get input class name.
 String getMethodName()
          Get methodName.
 String getOutputClassName()
          Get output class name.
 void setInputClassName(String inputClassName)
          Sets the name of the input class.
 void setMethodName(String methodName)
          Sets the name of the method that is to be invoked for this operation.
 void setOutputClassName(String outputClassName)
          Sets the name of the output (return) class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationDefinition

public OperationDefinition()
Method Detail

setMethodName

public void setMethodName(String methodName)
Sets the name of the method that is to be invoked for this operation.

Parameters:
methodName - the name of the method

getMethodName

public String getMethodName()
Get methodName.

Returns:
methodName

setInputClassName

public void setInputClassName(String inputClassName)
Sets the name of the input class. This method only needs to be called if multiple methods exist with the specified method name.

Parameters:
inputClassName - the name of the input class

getInputClassName

public String getInputClassName()
Get input class name.

Returns:
input class name

setOutputClassName

public void setOutputClassName(String outputClassName)
Sets the name of the output (return) class. This method only needs to be called if multiple methods exist with the specified method name.

Parameters:
outputClassName - the name of the output class

getOutputClassName

public String getOutputClassName()
Get output class name.

Returns:
output class name


Project Web Site