|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.axis.security.util.AxisUtil
Axis Utility methods.
Constructor Summary | |
AxisUtil()
|
Method Summary | |
static int |
decodeAction(java.lang.String action,
java.util.Vector actions)
Returns first WS-Security header for a given actor. |
static javax.xml.soap.SOAPMessage |
toSOAPMessage(org.w3c.dom.Document doc)
Convert a DOM Document into a soap message. |
static javax.xml.soap.SOAPMessage |
updateSOAPMessage(org.w3c.dom.Document doc,
javax.xml.soap.SOAPMessage message)
Update soap message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AxisUtil()
Method Detail |
public static javax.xml.soap.SOAPMessage toSOAPMessage(org.w3c.dom.Document doc) throws java.lang.Exception
doc
-
java.lang.Exception
public static javax.xml.soap.SOAPMessage updateSOAPMessage(org.w3c.dom.Document doc, javax.xml.soap.SOAPMessage message) throws java.lang.Exception
doc
- message
-
java.lang.Exception
public static int decodeAction(java.lang.String action, java.util.Vector actions) throws org.apache.axis.AxisFault
javax.xml.soap.SOAPException
- public static SOAPHeaderElement getSecurityHeader(
SOAPEnvelope env,
String actor)
throws SOAPException {
SOAPHeader header = env.getHeader();
if (header == null) {
return null;
}
Iterator headerElements = header.examineHeaderElements(actor);
while (headerElements.hasNext()) {
SOAPHeaderElement he = (SOAPHeaderElement) headerElements.next();
Name nm = he.getElementName();
// find ws-security header
if (nm.getLocalName().equalsIgnoreCase(WSConstants.WSSE_LN)
&& nm.getURI().equalsIgnoreCase(WSConstants.WSSE_NS)) {
return he;
}
}
return null;
}
org.apache.axis.AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |