public final class SecurableSoapMessage extends SOAPMessage
CHARACTER_SET_ENCODING, WRITE_XML_DECLARATION| Constructor and Description |
|---|
SecurableSoapMessage() |
SecurableSoapMessage(SOAPMessage soapMessage) |
public SecurableSoapMessage()
public SecurableSoapMessage(SOAPMessage soapMessage) throws XWSSecurityException
soapMessage - XWSSecurityExceptionpublic void init(SOAPMessage soapMessage) throws XWSSecurityException
XWSSecurityExceptionpublic SOAPEnvelope getEnvelope() throws XWSSecurityException
XWSSecurityExceptionpublic SecurityHeader findWsseSecurityHeaderBlock(boolean doCreate, boolean mustUnderstand) throws XWSSecurityException
doCreate - create one if none existsXWSSecurityExceptionpublic SecurityHeader findSecurityHeader() throws XWSSecurityException
XWSSecurityExceptionpublic SecurityHeader findOrCreateSecurityHeader() throws XWSSecurityException
XWSSecurityExceptionpublic void deleteSecurityHeader()
public void resetMustUnderstandOnSecHeader()
public void generateSecurityHeaderException(String exceptionMessage) throws SecurityHeaderException, XWSSecurityException
public static WssSoapFaultException newSOAPFaultException(String faultstring, Throwable th)
public static WssSoapFaultException newSOAPFaultException(QName faultCode, String faultstring, Throwable th)
public void generateFault(WssSoapFaultException sfe) throws XWSSecurityException
sfe - XWSSecurityExceptionpublic SOAPPart getSOAPPart()
getSOAPPart in class SOAPMessagepublic SOAPBody getSOAPBody() throws SOAPException
getSOAPBody in class SOAPMessageSOAPExceptionpublic SOAPMessage getSOAPMessage()
public void setSOAPMessage(SOAPMessage soapMsg) throws XWSSecurityException
XWSSecurityExceptionpublic void addAttachmentPart(AttachmentPart AttachmentPart)
addAttachmentPart in class SOAPMessagepublic int countAttachments()
countAttachments in class SOAPMessagepublic AttachmentPart createAttachmentPart()
createAttachmentPart in class SOAPMessagepublic AttachmentPart createAttachmentPart(Object content, String contentType)
createAttachmentPart in class SOAPMessagepublic AttachmentPart createAttachmentPart(DataHandler dataHandler)
createAttachmentPart in class SOAPMessagepublic Iterator getAttachments()
getAttachments in class SOAPMessagepublic Iterator getAttachments(MimeHeaders headers)
getAttachments in class SOAPMessagepublic String getContentDescription()
getContentDescription in class SOAPMessagepublic MimeHeaders getMimeHeaders()
getMimeHeaders in class SOAPMessagepublic Object getProperty(String property) throws SOAPException
getProperty in class SOAPMessageSOAPExceptionpublic SOAPHeader getSOAPHeader() throws SOAPException
getSOAPHeader in class SOAPMessageSOAPExceptionpublic void removeAllAttachments()
removeAllAttachments in class SOAPMessagepublic boolean saveRequired()
saveRequired in class SOAPMessagepublic void setContentDescription(String description)
setContentDescription in class SOAPMessagepublic void setProperty(String property, Object value) throws SOAPException
setProperty in class SOAPMessageSOAPExceptionpublic void writeTo(OutputStream out) throws SOAPException, IOException
writeTo in class SOAPMessageSOAPExceptionIOExceptionpublic void saveChanges()
throws SOAPException
saveChanges in class SOAPMessageSOAPExceptionpublic NamespaceContext getNamespaceContext() throws XWSSecurityException
XWSSecurityExceptionpublic String generateId() throws XWSSecurityException
XWSSecurityExceptionpublic void generateWsuId(Element element) throws XWSSecurityException
element - XWSSecurityExceptionpublic void generateWsuId(Element element, String id) throws XWSSecurityException
element - id - ID specified should be unique in the message.XWSSecurityExceptionpublic SOAPElement getElementByWsuId(String id) throws XWSSecurityException
XWSSecurityExceptionpublic Element getElementById(String id) throws XWSSecurityException
XWSSecurityExceptionpublic AttachmentPart getAttachmentPart(String uri) throws XWSSecurityException
XWSSecurityExceptionpublic Object getMessageParts(Target target) throws XWSSecurityException
XWSSecurityExceptionpublic AttachmentPart getAttachment(SOAPElement element) throws SOAPException
getAttachment in class SOAPMessageSOAPExceptionpublic void removeAttachments(MimeHeaders hdrs)
removeAttachments in class SOAPMessagepublic boolean isOptimized()
public void setOptimized(boolean optimized)
public void setDoNotSetMU(boolean doNotSetMU)
Copyright © 2005–2018 Oracle Corporation. All rights reserved.