|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.handlers.BasicHandler
org.sape.smfw.soapengine.HeaderAuthenticationHandler
Extracts a User object from the "user" header and stores it in the SOAP MessageContext. The format of the user header is shown below. Make this handler part of the request chain to extract the user header.
<soapenv:Header> <ns1:user xmlns:ns1="http://www.sape.org/smfw/user"> <principal>nbhatia</principal> <credentials>nbhatia</credentials> </ns1:user> </soapenv:Header>
Field Summary | |
private static org.apache.commons.logging.Log |
log
|
Fields inherited from class org.apache.axis.handlers.BasicHandler |
makeLockable, name, options |
Constructor Summary | |
HeaderAuthenticationHandler()
|
Method Summary | |
private String |
getChildElementValue(org.apache.axis.message.MessageElement parent,
String childName)
Returns the value of the child element with the specified QName. |
void |
invoke(org.apache.axis.MessageContext messageContext)
|
Methods inherited from class org.apache.axis.handlers.BasicHandler |
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, 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 |
private static final org.apache.commons.logging.Log log
Constructor Detail |
public HeaderAuthenticationHandler()
Method Detail |
public void invoke(org.apache.axis.MessageContext messageContext) throws org.apache.axis.AxisFault
org.apache.axis.AxisFault
Handler.invoke(MessageContext)
private String getChildElementValue(org.apache.axis.message.MessageElement parent, String childName)
parent
- the parent message elementchildName
- name of the child element whose value is needed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |