Class SecuredMessage
- java.lang.Object
-
- com.sun.xml.ws.security.opt.impl.message.SecuredMessage
-
public class SecuredMessage extends Object
- Author:
- K.Venugopal@sun.com
-
-
Constructor Summary
Constructors Constructor Description SecuredMessage(Message msg, SecurityHeader sh)SecuredMessage(Message msg, SecurityHeader sh, SOAPVersion soapVersion)Creates a new instance of SecuredMessage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentgetAttachment(String uri)AttachmentSetgetAttachments()ObjectgetBody()ObjectgetHeader(String id)ArrayListgetHeaders()IteratorgetHeaders(String uri)IteratorgetHeaders(String localName, String uri)StringgetPayloadLocalPart()StringgetPayloadNamespaceURI()SOAPVersiongetSOAPVersion()booleanisOneWay()XMLStreamReaderreadPayload()voidreplaceBody(SecurityElement she)voidreplaceBody(SOAPBody sb)booleanreplaceHeader(Object header1, Object header2)voidsetAttachments(AttachmentSet as)voidsetRootElements(org.jvnet.staxex.NamespaceContextEx ne)voidwritePayloadTo(XMLStreamWriter sw)voidwriteTo(XMLStreamWriter sw)
-
-
-
Constructor Detail
-
SecuredMessage
public SecuredMessage(Message msg, SecurityHeader sh, SOAPVersion soapVersion)
Creates a new instance of SecuredMessage
-
SecuredMessage
public SecuredMessage(Message msg, SecurityHeader sh)
-
-
Method Detail
-
getSOAPVersion
public SOAPVersion getSOAPVersion()
-
getHeaders
public ArrayList getHeaders()
-
setRootElements
public void setRootElements(org.jvnet.staxex.NamespaceContextEx ne)
-
isOneWay
public boolean isOneWay()
-
getPayloadNamespaceURI
public String getPayloadNamespaceURI()
-
getPayloadLocalPart
public String getPayloadLocalPart()
-
readPayload
public XMLStreamReader readPayload() throws XMLStreamException
- Throws:
XMLStreamException
-
writePayloadTo
public void writePayloadTo(XMLStreamWriter sw) throws XMLStreamException
- Throws:
XMLStreamException
-
getBody
public Object getBody() throws XWSSecurityException
- Throws:
XWSSecurityException
-
replaceBody
public void replaceBody(SecurityElement she)
-
replaceBody
public void replaceBody(SOAPBody sb)
-
getAttachments
public AttachmentSet getAttachments()
-
setAttachments
public void setAttachments(AttachmentSet as)
-
getAttachment
public Attachment getAttachment(String uri)
-
writeTo
public void writeTo(XMLStreamWriter sw) throws XMLStreamException
- Throws:
XMLStreamException
-
-