Class SecuredMessage
- java.lang.Object
-
- com.sun.xml.ws.security.opt.impl.message.SecuredMessage
-
public class SecuredMessage extends Object
- Author:
- [email protected]
-
-
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 Attachment
getAttachment(String uri)
AttachmentSet
getAttachments()
Object
getBody()
Object
getHeader(String id)
ArrayList
getHeaders()
Iterator
getHeaders(String uri)
Iterator
getHeaders(String localName, String uri)
String
getPayloadLocalPart()
String
getPayloadNamespaceURI()
SOAPVersion
getSOAPVersion()
boolean
isOneWay()
XMLStreamReader
readPayload()
void
replaceBody(SecurityElement she)
void
replaceBody(SOAPBody sb)
boolean
replaceHeader(Object header1, Object header2)
void
setAttachments(AttachmentSet as)
void
setRootElements(NamespaceContextEx ne)
void
writePayloadTo(XMLStreamWriter sw)
void
writeTo(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(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
-
-