|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wsif.providers.ModelWSIFPort
ModelWSIFPort Models are provided for all the classes required to be implemented when writing a WSIF provider: WSIFProvider, WSIFPort, and WSIFOperation. The models are intended to simplify the work in the implementing subclasses, and insure that all providers work in standard way. Things like hunting around in the WSDL for ExtensabilityElements and verifying the types of request and response objects against the WSDL should be done in the model code. Subclasses should only need to provide code directly related to accessing the particular service type they implement. For a subclass to use ModelWSIFPort, as a minimum it would implement the makeWSIFOperation method, and the getImplementedAddressClass and validateAddress methods to define and validate the WSDL port address extensibility element being used by the provider. Other methods may be overriden to customise the behaviour, see the method javadoc for details.
Constructor Summary | |
ModelWSIFPort(javax.wsdl.Definition def,
javax.wsdl.Port port,
WSIFDynamicTypeMap typeMap)
Construct a ModelWSIFPort |
|
ModelWSIFPort(javax.wsdl.Definition def,
javax.wsdl.Service service,
javax.wsdl.Port port,
WSIFDynamicTypeMap typeMap,
javax.wsdl.extensions.ExtensibilityElement binding)
Construct a ModelWSIFPort |
Method Summary | |
abstract void |
close()
Close this port; indicates that the user is done using it. |
WSIFOperation |
createOperation(java.lang.String opName)
Create a new WSIFOperation. |
WSIFOperation |
createOperation(java.lang.String opName,
java.lang.String inputName,
java.lang.String outputName)
Create a new WSIFOperation. |
java.lang.String |
deep()
String representation of this WSIFPort for WSIF Trc. |
void |
finalize()
Override java.lang.Object finalize method to close the WSIFPort |
javax.wsdl.extensions.ExtensibilityElement |
getBinding()
Returns the binding ExtensibilityElement. |
WSIFMessage |
getContext()
Gets the context information for this WSIFPort. |
javax.wsdl.Definition |
getDefinition()
Returns the WSDL Definition object |
javax.wsdl.Port |
getPort()
Returns the WSDL port. |
javax.wsdl.Service |
getService()
Returns the WSDL service. |
WSIFDynamicTypeMap |
getTypeMap()
Returns the typeMap. |
boolean |
isCacheOperations()
Returns the cacheOperations. |
boolean |
isFormatBindingSupported()
Returns the formatBindingSupported. |
void |
setContext(WSIFMessage context)
Sets the context information for this WSIFPort. |
boolean |
supportsAsync()
Tests if this port supports asynchronous calls to operations. |
boolean |
supportsSync()
Tests if this port supports synchronous calls to operations. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModelWSIFPort(javax.wsdl.Definition def, javax.wsdl.Port port, WSIFDynamicTypeMap typeMap) throws WSIFException
public ModelWSIFPort(javax.wsdl.Definition def, javax.wsdl.Service service, javax.wsdl.Port port, WSIFDynamicTypeMap typeMap, javax.wsdl.extensions.ExtensibilityElement binding) throws WSIFException
Method Detail |
public WSIFOperation createOperation(java.lang.String opName) throws WSIFException
WSIFPort
WSIFPort.createOperation(String,String,String)
.
createOperation
in interface WSIFPort
opName
- the name of an operation in this port's portType
WSIFException
- if something goes wrongWSIFPort.createOperation(String)
public WSIFOperation createOperation(java.lang.String opName, java.lang.String inputName, java.lang.String outputName) throws WSIFException
WSIFPort
createOperation
in interface WSIFPort
opName
- the name of an operation in this port's portTypeinputName
- the input message nameoutputName
- the output message name
WSIFException
- if something goes wrongWSIFPort.createOperation(String, String, String)
public boolean isCacheOperations()
public javax.wsdl.extensions.ExtensibilityElement getBinding()
public javax.wsdl.Definition getDefinition()
public javax.wsdl.Port getPort()
public javax.wsdl.Service getService()
public WSIFDynamicTypeMap getTypeMap()
public WSIFMessage getContext() throws WSIFException
getContext
in interface WSIFPort
WSIFException
public void setContext(WSIFMessage context)
setContext
in interface WSIFPort
public boolean supportsSync()
supportsSync
in interface WSIFPort
public boolean supportsAsync()
supportsAsync
in interface WSIFPort
public boolean isFormatBindingSupported()
public void finalize() throws java.lang.Throwable
java.lang.Throwable
public abstract void close() throws WSIFException
WSIFPort
close
in interface WSIFPort
WSIFException
- if something goes wrongpublic java.lang.String deep()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |