|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.soap.SOAPMessage
com.sun.xml.wss.impl.SecurableSoapMessage
public final class SecurableSoapMessage
| Field Summary |
|---|
| Fields inherited from class javax.xml.soap.SOAPMessage |
|---|
CHARACTER_SET_ENCODING, WRITE_XML_DECLARATION |
| Constructor Summary | |
|---|---|
SecurableSoapMessage()
|
|
SecurableSoapMessage(javax.xml.soap.SOAPMessage soapMessage)
|
|
| Method Summary | |
|---|---|
void |
addAttachmentPart(javax.xml.soap.AttachmentPart AttachmentPart)
|
int |
countAttachments()
|
javax.xml.soap.AttachmentPart |
createAttachmentPart()
|
javax.xml.soap.AttachmentPart |
createAttachmentPart(javax.activation.DataHandler dataHandler)
|
javax.xml.soap.AttachmentPart |
createAttachmentPart(java.lang.Object content,
java.lang.String contentType)
|
void |
deleteSecurityHeader()
Delete security header |
boolean |
equals(java.lang.Object obj)
|
SecurityHeader |
findOrCreateSecurityHeader()
Finds or creates wsse:Security Header |
SecurityHeader |
findSecurityHeader()
Finds wsse:Security Header |
SecurityHeader |
findWsseSecurityHeaderBlock(boolean doCreate,
boolean mustUnderstand)
Finds wsse:Security Header Block. |
void |
generateFault(WssSoapFaultException sfe)
|
java.lang.String |
generateId()
|
void |
generateSecurityHeaderException(java.lang.String exceptionMessage)
Create and initialize a SecurityHeaderException, and throw a fault based on it. |
void |
generateWsuId(org.w3c.dom.Element element)
|
void |
generateWsuId(org.w3c.dom.Element element,
java.lang.String id)
|
javax.xml.soap.AttachmentPart |
getAttachment(javax.xml.soap.SOAPElement element)
|
javax.xml.soap.AttachmentPart |
getAttachmentPart(java.lang.String uri)
|
java.util.Iterator |
getAttachments()
|
java.util.Iterator |
getAttachments(javax.xml.soap.MimeHeaders headers)
|
java.lang.String |
getContentDescription()
|
org.w3c.dom.Element |
getElementById(java.lang.String id)
|
javax.xml.soap.SOAPElement |
getElementByWsuId(java.lang.String id)
|
javax.xml.soap.SOAPEnvelope |
getEnvelope()
|
static java.lang.String |
getIdFromFragmentRef(java.lang.String ref)
|
java.lang.Object |
getMessageParts(Target target)
|
javax.xml.soap.MimeHeaders |
getMimeHeaders()
|
javax.xml.namespace.NamespaceContext |
getNamespaceContext()
|
java.lang.Object |
getProperty(java.lang.String property)
|
javax.xml.soap.SOAPBody |
getSOAPBody()
|
javax.xml.soap.SOAPHeader |
getSOAPHeader()
|
javax.xml.soap.SOAPMessage |
getSOAPMessage()
|
javax.xml.soap.SOAPPart |
getSOAPPart()
|
int |
hashCode()
|
void |
init(javax.xml.soap.SOAPMessage soapMessage)
|
boolean |
isOptimized()
|
static WssSoapFaultException |
newSOAPFaultException(javax.xml.namespace.QName faultCode,
java.lang.String faultstring,
java.lang.Throwable th)
Create and initialize a WssSoapFaultException. |
static WssSoapFaultException |
newSOAPFaultException(java.lang.String faultstring,
java.lang.Throwable th)
Create and initialize a WssSoapFaultException. |
void |
removeAllAttachments()
|
void |
removeAttachments(javax.xml.soap.MimeHeaders hdrs)
|
void |
resetMustUnderstandOnSecHeader()
Make Security Header Non-MustUnderstand |
void |
saveChanges()
|
boolean |
saveRequired()
|
void |
setContentDescription(java.lang.String description)
|
void |
setDoNotSetMU(boolean doNotSetMU)
|
void |
setOptimized(boolean optimized)
|
void |
setProperty(java.lang.String property,
java.lang.Object value)
|
void |
setSOAPMessage(javax.xml.soap.SOAPMessage soapMsg)
|
java.lang.String |
toString()
|
void |
writeTo(java.io.OutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SecurableSoapMessage()
public SecurableSoapMessage(javax.xml.soap.SOAPMessage soapMessage)
throws XWSSecurityException
soapMessage -
XWSSecurityException| Method Detail |
|---|
public void init(javax.xml.soap.SOAPMessage soapMessage)
throws XWSSecurityException
XWSSecurityException
public javax.xml.soap.SOAPEnvelope getEnvelope()
throws XWSSecurityException
XWSSecurityException
public SecurityHeader findWsseSecurityHeaderBlock(boolean doCreate,
boolean mustUnderstand)
throws XWSSecurityException
doCreate - create one if none exists
XWSSecurityException
public SecurityHeader findSecurityHeader()
throws XWSSecurityException
XWSSecurityException
public SecurityHeader findOrCreateSecurityHeader()
throws XWSSecurityException
XWSSecurityExceptionpublic void deleteSecurityHeader()
public void resetMustUnderstandOnSecHeader()
public void generateSecurityHeaderException(java.lang.String exceptionMessage)
throws SecurityHeaderException,
XWSSecurityException
SecurityHeaderException
XWSSecurityException
public static WssSoapFaultException newSOAPFaultException(java.lang.String faultstring,
java.lang.Throwable th)
public static WssSoapFaultException newSOAPFaultException(javax.xml.namespace.QName faultCode,
java.lang.String faultstring,
java.lang.Throwable th)
public void generateFault(WssSoapFaultException sfe)
throws XWSSecurityException
sfe -
XWSSecurityExceptionpublic javax.xml.soap.SOAPPart getSOAPPart()
getSOAPPart in class javax.xml.soap.SOAPMessage
public javax.xml.soap.SOAPBody getSOAPBody()
throws javax.xml.soap.SOAPException
getSOAPBody in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPMessage getSOAPMessage()
public void setSOAPMessage(javax.xml.soap.SOAPMessage soapMsg)
throws XWSSecurityException
XWSSecurityExceptionpublic void addAttachmentPart(javax.xml.soap.AttachmentPart AttachmentPart)
addAttachmentPart in class javax.xml.soap.SOAPMessagepublic int countAttachments()
countAttachments in class javax.xml.soap.SOAPMessagepublic javax.xml.soap.AttachmentPart createAttachmentPart()
createAttachmentPart in class javax.xml.soap.SOAPMessage
public javax.xml.soap.AttachmentPart createAttachmentPart(java.lang.Object content,
java.lang.String contentType)
createAttachmentPart in class javax.xml.soap.SOAPMessagepublic javax.xml.soap.AttachmentPart createAttachmentPart(javax.activation.DataHandler dataHandler)
createAttachmentPart in class javax.xml.soap.SOAPMessagepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Iterator getAttachments()
getAttachments in class javax.xml.soap.SOAPMessagepublic java.util.Iterator getAttachments(javax.xml.soap.MimeHeaders headers)
getAttachments in class javax.xml.soap.SOAPMessagepublic java.lang.String getContentDescription()
getContentDescription in class javax.xml.soap.SOAPMessagepublic javax.xml.soap.MimeHeaders getMimeHeaders()
getMimeHeaders in class javax.xml.soap.SOAPMessage
public java.lang.Object getProperty(java.lang.String property)
throws javax.xml.soap.SOAPException
getProperty in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPException
public javax.xml.soap.SOAPHeader getSOAPHeader()
throws javax.xml.soap.SOAPException
getSOAPHeader in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic void removeAllAttachments()
removeAllAttachments in class javax.xml.soap.SOAPMessagepublic boolean saveRequired()
saveRequired in class javax.xml.soap.SOAPMessagepublic void setContentDescription(java.lang.String description)
setContentDescription in class javax.xml.soap.SOAPMessage
public void setProperty(java.lang.String property,
java.lang.Object value)
throws javax.xml.soap.SOAPException
setProperty in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public void writeTo(java.io.OutputStream out)
throws javax.xml.soap.SOAPException,
java.io.IOException
writeTo in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPException
java.io.IOException
public void saveChanges()
throws javax.xml.soap.SOAPException
saveChanges in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPException
public javax.xml.namespace.NamespaceContext getNamespaceContext()
throws XWSSecurityException
XWSSecurityException
public java.lang.String generateId()
throws XWSSecurityException
XWSSecurityException
public void generateWsuId(org.w3c.dom.Element element)
throws XWSSecurityException
element -
XWSSecurityException
public void generateWsuId(org.w3c.dom.Element element,
java.lang.String id)
throws XWSSecurityException
element - id - ID specified should be unique in the message.
XWSSecurityException
public javax.xml.soap.SOAPElement getElementByWsuId(java.lang.String id)
throws XWSSecurityException
XWSSecurityException
public org.w3c.dom.Element getElementById(java.lang.String id)
throws XWSSecurityException
XWSSecurityException
public javax.xml.soap.AttachmentPart getAttachmentPart(java.lang.String uri)
throws XWSSecurityException
XWSSecurityExceptionpublic static java.lang.String getIdFromFragmentRef(java.lang.String ref)
public java.lang.Object getMessageParts(Target target)
throws XWSSecurityException
XWSSecurityException
public javax.xml.soap.AttachmentPart getAttachment(javax.xml.soap.SOAPElement element)
throws javax.xml.soap.SOAPException
getAttachment in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic void removeAttachments(javax.xml.soap.MimeHeaders hdrs)
removeAttachments in class javax.xml.soap.SOAPMessagepublic boolean isOptimized()
public void setOptimized(boolean optimized)
public void setDoNotSetMU(boolean doNotSetMU)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||