|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.ws.server.OperationDefinition
public final class OperationDefinition
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 |
---|
public OperationDefinition()
Method Detail |
---|
public void setMethodName(String methodName)
methodName
- the name of the methodpublic String getMethodName()
public void setInputClassName(String inputClassName)
inputClassName
- the name of the input classpublic String getInputClassName()
public void setOutputClassName(String outputClassName)
outputClassName
- the name of the output classpublic String getOutputClassName()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |