|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openspml.v2.transport.SPMLViaSoapDispatcher
This is a demonstration class for handling SOAP.
Constructor Summary | |
SPMLViaSoapDispatcher()
|
Method Summary | |
java.lang.String |
dispatchRequest(java.lang.String inMessage)
This does the bulk of the work. |
java.lang.String |
getContentType()
If you handle a request of a given type, you also need to provide us with contentType string to return. |
void |
init(RPCRouter router,
java.util.Map config)
We want to run over the config and instantiate our marshallers and excecutors. |
protected SPMLExecutor[] |
initExecutors(RPCRouter router,
java.util.Map config)
Set up the executors list from the config. |
protected SPMLMarshaller[] |
initMarshallers(RPCRouter router,
java.util.Map config)
Initialize the marshallers names in the config |
protected java.lang.String |
unwrapRequest(java.lang.String message)
Pull out the Soap body |
protected java.lang.String |
wrapResponse(java.lang.String result)
Add a soap envelope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SPMLViaSoapDispatcher()
Method Detail |
public void init(RPCRouter router, java.util.Map config) throws Spml2TransportException
init
in interface RPCDispatcher
router
- config
-
Spml2TransportException
public java.lang.String dispatchRequest(java.lang.String inMessage) throws Spml2TransportException
dispatchRequest
in interface RPCDispatcher
inMessage
-
Spml2TransportException
public java.lang.String getContentType()
RPCDispatcher
getContentType
in interface RPCDispatcher
protected SPMLMarshaller[] initMarshallers(RPCRouter router, java.util.Map config) throws Spml2TransportException
router
- config
-
Spml2TransportException
protected SPMLExecutor[] initExecutors(RPCRouter router, java.util.Map config) throws Spml2TransportException
router
- config
-
Spml2TransportException
protected java.lang.String unwrapRequest(java.lang.String message) throws Spml2Exception
message
-
Spml2Exception
protected java.lang.String wrapResponse(java.lang.String result)
result
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |