|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.handlers.BasicHandler org.apache.axis.message.addressing.handler.AddressingHandler
public class AddressingHandler
Class AddressingHandler.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
Class logger. |
Fields inherited from class org.apache.axis.handlers.BasicHandler |
---|
makeLockable, name, options |
Constructor Summary | |
---|---|
AddressingHandler()
Creates a new instance. |
Method Summary | |
---|---|
protected void |
configureCall(org.apache.axis.client.Call call,
org.apache.axis.MessageContext oldContext)
Override this method to prepare the new call, for instance to add properties from the old MessageContext that may be needed by other handlers. |
protected void |
forwardMessage(EndpointReferenceType epr,
org.apache.axis.Message msg)
Forwards the message to the given EPR. |
protected org.apache.axis.client.Service |
getService(org.apache.axis.MessageContext ctx)
Override this method if you need something other than the default Service. |
void |
init()
|
protected void |
initializeActor()
Initializes the "actor" URI field. |
void |
invoke(org.apache.axis.MessageContext msgContext)
|
void |
onFault(org.apache.axis.MessageContext msgContext)
|
protected void |
processClientRequest(org.apache.axis.MessageContext ctx,
boolean setMustUnderstand)
Method processClientRequest. |
protected void |
processClientResponse(org.apache.axis.MessageContext ctx)
Method processClientResponse. |
protected void |
processFault(org.apache.axis.MessageContext ctx)
Processes a fault. |
protected void |
processServerRequest(org.apache.axis.MessageContext ctx)
Method processServerRequest. |
protected void |
processServerResponse(org.apache.axis.MessageContext ctx,
boolean setMustUnderstand)
Method processServerResponse. |
static void |
resetContextOperations(org.apache.axis.MessageContext ctx)
Reinitializes the RPCElement with right operations so that things are nicely deserialized. |
protected void |
resetOperations(org.apache.axis.MessageContext ctx)
Reset the context operations. |
protected void |
setTargetService(org.apache.axis.MessageContext ctx,
AddressingHeaders headers)
Can be overridden by subclasses to customize how the wsa:to header is interpreted. |
Methods inherited from class org.apache.axis.handlers.BasicHandler |
---|
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public AddressingHandler()
Method Detail |
---|
public void init()
init
in interface org.apache.axis.Handler
init
in class org.apache.axis.handlers.BasicHandler
protected void initializeActor()
public void invoke(org.apache.axis.MessageContext msgContext) throws org.apache.axis.AxisFault
invoke
in interface org.apache.axis.Handler
org.apache.axis.AxisFault
public void onFault(org.apache.axis.MessageContext msgContext)
onFault
in interface org.apache.axis.Handler
onFault
in class org.apache.axis.handlers.BasicHandler
protected void processFault(org.apache.axis.MessageContext ctx) throws java.lang.Exception
ctx
- Context information
java.lang.Exception
- If an error occursprotected void processClientRequest(org.apache.axis.MessageContext ctx, boolean setMustUnderstand) throws java.lang.Exception
ctx
- ContextsetMustUnderstand
- Must-Understand attribute value
java.lang.Exception
protected void processClientResponse(org.apache.axis.MessageContext ctx) throws java.lang.Exception
ctx
- Context information
java.lang.Exception
- If an error occursprotected void processServerRequest(org.apache.axis.MessageContext ctx) throws java.lang.Exception
ctx
- Context information
java.lang.Exception
- If an error occursprotected void resetOperations(org.apache.axis.MessageContext ctx) throws org.apache.axis.AxisFault
ctx
- Context information
org.apache.axis.AxisFault
- If an error occurspublic static void resetContextOperations(org.apache.axis.MessageContext ctx) throws org.apache.axis.AxisFault
ctx
- Context information
org.apache.axis.AxisFault
- If an error occursprotected void setTargetService(org.apache.axis.MessageContext ctx, AddressingHeaders headers) throws java.lang.Exception
ctx
- Context informationheaders
- Header container
java.lang.Exception
protected void processServerResponse(org.apache.axis.MessageContext ctx, boolean setMustUnderstand) throws java.lang.Exception
ctx
- Context informationsetMustUnderstand
- Whether to set the attribute
java.lang.Exception
- If an error occursprotected void forwardMessage(EndpointReferenceType epr, org.apache.axis.Message msg) throws java.lang.Exception
epr
- Destination EPRmsg
- Message to forward
java.lang.Exception
- If an error occursprotected org.apache.axis.client.Service getService(org.apache.axis.MessageContext ctx)
Service service = getService(msgContext); Call call = service.createCall() call.setTargetEndpointAddress(toEndPointReference.getAddress().toString());
ctx
- Context information
protected void configureCall(org.apache.axis.client.Call call, org.apache.axis.MessageContext oldContext)
call
- Call object about to be invokedoldContext
- MessageContext of the original request/response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |