Class Packet
- java.lang.Object
-
- com.oracle.webservices.api.message.BasePropertySet
-
- com.oracle.webservices.api.message.BaseDistributedPropertySet
-
- com.sun.xml.ws.api.message.Packet
-
- All Implemented Interfaces:
DistributedPropertySet,MessageContext,PropertySet,MessageMetadata
public final class Packet extends BaseDistributedPropertySet implements MessageContext, MessageMetadata
Represents a container of aMessage.What is a
Packet?A packet can be thought of as a frame/envelope/package that wraps a
Message. A packet keeps track of optional metadata (properties) about aMessagethat doesn't go across the wire. This roughly corresponds toMessageContextin the JAX-WS API.Usually a packet contains a
Messagein it, but sometimes (such as for a reply of an one-way operation), a packet may float around without aMessagein it.Properties
Information frequently used inside the JAX-WS RI is stored in the strongly-typed fields. Other information is stored in terms of a generic
Map(seeinvocationProperties.)Some properties need to be retained between request and response, some don't. For strongly typed fields, this characteristic is statically known for each of them, and propagation happens accordingly. For generic information stored in
Map,invocationPropertiesstores per-invocation scope information (which carries over to the response.)This object is used as the backing store of
MessageContext, andLogicalMessageContextandSOAPMessageContextwill be delegating to this object for storing/retrieving values.Relationship to request/response context
Request contextis used to seed the initial values ofPacket. Some of those values go to strongly-typed fields, and others go toinvocationProperties, as they need to be retained in the reply message.Similarly,
response contextis constructed fromPacket(or rather it's just a view ofPacket.) by using properties frominvocationProperties, modulo properties named explicitly ingetHandlerScopePropertyNames(boolean). IOW, properties added toinvocationPropertiesare exposed to the response context by default.TODO
- this class needs to be cloneable since Message is copyable.
- The three live views aren't implemented correctly. It will be more work to do so, although I'm sure it's possible.
PropertySet.Propertyannotation is to make it easy forMessageContextto export properties on this object, but it probably needs some clean up.
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPacket.Statestatic classPacket.Status-
Nested classes/interfaces inherited from class com.oracle.webservices.api.message.BasePropertySet
BasePropertySet.Accessor, BasePropertySet.PropertyMap, BasePropertySet.PropertyMapEntry
-
Nested classes/interfaces inherited from interface com.oracle.webservices.api.message.PropertySet
PropertySet.Property
-
-
Field Summary
Fields Modifier and Type Field Description StringacceptableMimeTypesThe list of MIME types that are acceptable to a receiver of an outbound message.CodeccodecComponentcomponentThe governing owner of this packet.ContentNegotiationcontentNegotiationThe value ofContentNegotiation.PROPERTYproperty.WSEndpointendpointThe governingWSEndpointin which this message is floating.EndpointAddressendpointAddressThe endpoint address to which this message is sent to.BooleanexpectReplyA hint indicating that whether a transport should expect a reply back from the server.static StringHA_INFOHandlerConfigurationhandlerConfigThis property holds the snapshot of HandlerConfiguration at the time of invocation.static StringINBOUND_TRANSPORT_HEADERSInbound transport headers are captured in a transport neutral way.Map<String,Object>invocationPropertiesBag to capture properties that are available for the whole message invocation (namely on both requests and responses.)booleanisAdapterDeliversNonAnonymousResponseDetermines if the governingAdapterorFiber.CompletionCallbackwill handle delivering response messages targeted at non-anonymous endpoint addresses.BooleanisOneWayDeprecated.BooleanisSynchronousMEPIndicates whether is invoking a synchronous pattern.BooleannonNullAsyncHandlerGivenIndicates whether a non-null AsyncHandler was given at the point of making the request that created this packet.static StringOUTBOUND_TRANSPORT_HEADERSOutbound transport headers are captured in a transport neutral way.booleanpacketTakesPriorityOverRequestContextDuring invocation of a client Stub or Dispatch a Packet is created then the Stub's RequestContext is copied into the Packet.jakarta.xml.ws.BindingProviderproxyIf a message originates from a proxy stub that implements a port interface, this field is set to point to that object.StringsoapActionThe value of the SOAPAction header associated with the message.TransportBackChanneltransportBackChannelUsed only on the server side so that the transport can close the connection early.booleanwasTransportSecureTrue if this message came from a transport (IOW inbound), and in paricular from a "secure" transport.WebServiceContextDelegatewebServiceContextDelegateWhen non-null, this object is consulted to implementWebServiceContextmethods exposed to the user application.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSatellite(PropertySet satellite)Deprecated.voidaddSatellite(Class keyClass, PropertySet satellite)Deprecated.Map<String,Object>asMapIncludingInvocationProperties()voidcheckMtomAcceptable()Packetcopy(boolean copyMessage)Creates a copy of thisPacket.voidcopyPropertiesTo(Packet response)Copy all properties from (this) packet into a inputPacketvoidcopySatelliteInto(DistributedPropertySet r)Deprecated.PacketcreateClientResponse(Message msg)Creates a responsePacketfrom a request packet (this).PacketcreateResponse(Message msg)Deprecated.Use createClientResponse(Message) for client side and createServerResponse(Message, String) for server side response creation.PacketcreateServerResponse(Message responseMessage, AddressingVersion addressingVersion, SOAPVersion soapVersion, String action)Creates a server-side responsePacketfrom a request packet (this).PacketcreateServerResponse(Message responseMessage, WSDLPort wsdlPort, SEIModel seiModel, WSBinding binding)Creates a server-side responsePacketfrom a request packet (this).Set<String>getApplicationScopePropertyNames(boolean readOnly)Deprecated.jakarta.xml.soap.SOAPMessagegetAsSOAPMessage()Gets the SAAJ SOAPMessage representation of the SOAP message.WSBindinggetBinding()CodecgetCodec()StringgetContentNegotiationString()ContentTypegetContentType()Gets the Content-type of this message.StringgetEndPointAddressString()Deprecated.The programatic acccess should be done viaendpointAddress.BooleangetFastInfosetAcceptable(String fiMimeType)Set<String>getHandlerScopePropertyNames(boolean readOnly)Gets aSetthat stores handler-scope properties.ContentTypegetInternalContentType()MessagegetInternalMessage()MessagegetMessage()Gets the lastMessageset throughsetMessage(Message).BooleangetMtomAcceptable()jakarta.xml.ws.soap.MTOMFeaturegetMtomFeature()BooleangetMtomRequest()protected BasePropertySet.PropertyMapgetPropertyMap()Map representing the Fields and Methods annotated withPropertySet.Property.List<Element>getReferenceParameters()Gives a list of Reference Parameters in the MessageSAAJFactorygetSAAJFactory()jakarta.xml.soap.SOAPMessagegetSOAPMessage()Gets the SAAJ SOAPMessage representation of the SOAP message.Packet.StategetState()StringgetUserStateId()QNamegetWSDLOperation()Returns the QName of the wsdl operation associated with this packet.WSDLOperationMappinggetWSDLOperationMapping()booleanisProtocolMessage()BooleanisRequestReplyMEP()TransportBackChannelkeepTransportBackChannelOpen()Keeps the transport back channel open (by seetingtransportBackChannelto null.)PacketrelateClientResponse(Packet response)For use cases that start with an existing Packet.PacketrelateServerResponse(Packet r, WSDLPort wsdlPort, SEIModel seiModel, WSBinding binding)voidremoveSatellite(PropertySet satellite)Deprecated.voidsetContentNegotiationString(String s)voidsetContentType(ContentType contentType)voidsetEndPointAddressString(String s)voidsetFastInfosetDisabled(boolean b)voidsetIsProtocolMessage()voidsetMessage(Message message)Sets aMessageto this packet.voidsetMtomFeature(jakarta.xml.ws.soap.MTOMFeature mtomFeature)voidsetMtomRequest(Boolean mtomRequest)voidsetRequestReplyMEP(Boolean x)voidsetResponseMessage(Packet request, Message responseMessage, AddressingVersion addressingVersion, SOAPVersion soapVersion, String action)voidsetSAAJFactory(SAAJFactory saajFactory)voidsetState(Packet.State state)voidsetUserStateId(String x)voidsetWSDLOperation(QName wsdlOp)Set the wsdl operation to avoid lookup from other data.booleanshouldUseMtom()StringtoShortString()StringtoString()ContentTypewriteTo(OutputStream out)Writes the XML infoset portion of this MessageContext (from <soap:Envelope> to </soap:Envelope>).ContentTypewriteTo(WritableByteChannel buffer)-
Methods inherited from class com.oracle.webservices.api.message.BaseDistributedPropertySet
addSatellite, addSatellite, asMapLocal, containsKey, copySatelliteInto, copySatelliteInto, createEntrySet, createView, get, getSatellite, getSatellites, put, remove, removeSatellite, supports, supportsLocal
-
Methods inherited from class com.oracle.webservices.api.message.BasePropertySet
asMap, createMapView, mapAllowsAdditionalProperties, parse, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.oracle.webservices.api.message.DistributedPropertySet
addSatellite, addSatellite, copySatelliteInto, getSatellite, getSatellites, removeSatellite
-
Methods inherited from interface com.oracle.webservices.api.message.PropertySet
asMap, containsKey, createMapView, get, put, remove, supports
-
-
-
-
Field Detail
-
wasTransportSecure
public boolean wasTransportSecure
True if this message came from a transport (IOW inbound), and in paricular from a "secure" transport. A transport needs to set this flag appropriately.This is a requirement from the security team.
-
INBOUND_TRANSPORT_HEADERS
public static final String INBOUND_TRANSPORT_HEADERS
Inbound transport headers are captured in a transport neutral way. Transports are expected to fill this data after creating a Packet.SOAPMessage.getMimeHeaders()would return these headers.- See Also:
- Constant Field Values
-
OUTBOUND_TRANSPORT_HEADERS
public static final String OUTBOUND_TRANSPORT_HEADERS
Outbound transport headers are captured in a transport neutral way.Transports may choose to ignore certain headers that interfere with its correct operation, such as
Content-TypeandContent-Length.- See Also:
- Constant Field Values
-
HA_INFO
public static final String HA_INFO
- See Also:
- Constant Field Values
-
handlerConfig
public HandlerConfiguration handlerConfig
This property holds the snapshot of HandlerConfiguration at the time of invocation. This property is used by MUPipe and HandlerPipe implementations.
-
proxy
public jakarta.xml.ws.BindingProvider proxy
If a message originates from a proxy stub that implements a port interface, this field is set to point to that object. TODO: who's using this property?
-
isAdapterDeliversNonAnonymousResponse
public boolean isAdapterDeliversNonAnonymousResponse
Determines if the governingAdapterorFiber.CompletionCallbackwill handle delivering response messages targeted at non-anonymous endpoint addresses. Prior to the introduction of this flag theWsaServerTubewould deliver non-anonymous responses.
-
packetTakesPriorityOverRequestContext
public boolean packetTakesPriorityOverRequestContext
During invocation of a client Stub or Dispatch a Packet is created then the Stub's RequestContext is copied into the Packet. On certain internal cases the Packet is created *before* the invocation. In those cases we want the contents of the Packet to take precedence when ever any key/value pairs collide : if the Packet contains a value for a key use it, otherwise copy as usual from Stub.
-
endpointAddress
public EndpointAddress endpointAddress
The endpoint address to which this message is sent to.The JAX-WS spec allows this to be changed for each message, so it's designed to be a property.
Must not be null for a request message on the client. Otherwise it's null.
-
contentNegotiation
public ContentNegotiation contentNegotiation
The value ofContentNegotiation.PROPERTYproperty.
This property is used only on the client side.
-
acceptableMimeTypes
public String acceptableMimeTypes
The list of MIME types that are acceptable to a receiver of an outbound message. This property is used only on the server side.The representation shall be that specified by the HTTP Accept request-header field.
The list of content types will be obtained from the transport meta-data of a inbound message in a request/response message exchange. Hence this property will be set by the service-side transport pipe.
-
webServiceContextDelegate
public WebServiceContextDelegate webServiceContextDelegate
When non-null, this object is consulted to implementWebServiceContextmethods exposed to the user application. Used only on the server side.This property is set from the parameter of
WSEndpoint.PipeHead.process(com.sun.xml.ws.api.message.Packet, com.sun.xml.ws.api.server.WebServiceContextDelegate, com.sun.xml.ws.api.server.TransportBackChannel).
-
transportBackChannel
@Nullable public TransportBackChannel transportBackChannel
Used only on the server side so that the transport can close the connection early.This field can be null. While a message is being processed, this field can be set explicitly to null, to prevent future pipes from closing a transport (see
keepTransportBackChannelOpen())This property is set from the parameter of
WSEndpoint.PipeHead.process(com.sun.xml.ws.api.message.Packet, com.sun.xml.ws.api.server.WebServiceContextDelegate, com.sun.xml.ws.api.server.TransportBackChannel).
-
component
public Component component
-
endpoint
public WSEndpoint endpoint
The governingWSEndpointin which this message is floating.This property is set if and only if this is on the server side.
-
soapAction
public String soapAction
The value of the SOAPAction header associated with the message.For outgoing messages, the transport may sends out this value. If this field is null, the transport may choose to send
""(quoted empty string.) For incoming messages, the transport will set this field. If the incoming message did not contain the SOAPAction header, the transport sets this field to null.If the value is non-null, it must be always in the quoted form. The value can be null.
Note that the way the transport sends this value out depends on transport and SOAP version.
For HTTP transport and SOAP 1.1, BP requires that SOAPAction header is present (See BP R2744 and BP R2745.) For SOAP 1.2, this is moved to the parameter of the "application/soap+xml".
-
expectReply
public Boolean expectReply
A hint indicating that whether a transport should expect a reply back from the server.This property is used on the client-side for outbound messages, so that a pipeline can communicate to the terminal (or intermediate)
Tubes about this knowledge.This property MUST NOT be used by 2-way transports that have the transport back channel. Those transports must always check a reply coming through the transport back channel regardless of this value, and act accordingly. (This is because the expectation of the client and that of the server can be different, for example because of a bug in user's configuration.)
This property is for one-way transports, and more specifically for the coordinator that correlates sent requests and incoming replies, to decide whether to block until a response is received.
Also note that this property is related to
WSDLOperation.isOneWay()but not the same thing. In fact in general, they are completely orthogonal. For example, the calling application can choose to invokeDispatch.invoke(Object)orDispatch.invokeOneWay(Object)with an operation (which determines the value of this property), regardless of whether WSDL actually says it's one way or not. So these two booleans can take any combinations.When this property is
Boolean.FALSE, it means that the pipeline does not expect a reply from a server (and therefore the correlator should not block for a reply message -- if such a reply does arrive, it can be just ignored.)When this property is
Boolean.TRUE, it means that the pipeline expects a reply from a server (and therefore the correlator should block to see if a reply message is received,This property is always set to
Boolean.TRUEorBoolean.FALSEwhen used on the request message on the client side. No otherBooleaninstances are allowed.In all other situations, this property is null.
-
isOneWay
@Deprecated public Boolean isOneWay
Deprecated.This property will be removed in a near future.A part of what this flag represented moved to
expectReplyand the other part was moved toMessage.isOneWay(WSDLPort). Please update your code soon, or risk breaking your build!!
-
isSynchronousMEP
public Boolean isSynchronousMEP
Indicates whether is invoking a synchronous pattern. If true, no async client programming model (e.g. AsyncResponse or AsyncHandler) were used to make the request that created this packet.
-
nonNullAsyncHandlerGiven
public Boolean nonNullAsyncHandlerGiven
Indicates whether a non-null AsyncHandler was given at the point of making the request that created this packet. This flag can be used by Tube implementations to decide how to react when isSynchronousMEP is false. If true, the client gave a non-null AsyncHandler instance at the point of request, and will be expecting a response on that handler when this request has been processed.
-
invocationProperties
public final Map<String,Object> invocationProperties
Bag to capture properties that are available for the whole message invocation (namely on both requests and responses.)These properties are copied from a request to a response. This is where we keep properties that are set by handlers.
See class javadoc for more discussion.
- See Also:
getHandlerScopePropertyNames(boolean)
-
codec
public Codec codec
-
-
Constructor Detail
-
Packet
public Packet(Message request)
Creates aPacketthat wraps a givenMessage.This method should be only used to create a fresh
Packet. To create aPacketfor a reply, usecreateResponse(Message).- Parameters:
request- The requestMessage. Can be null.
-
Packet
public Packet()
-
-
Method Detail
-
getMessage
public Message getMessage()
Gets the lastMessageset throughsetMessage(Message).- Returns:
- may null. See the class javadoc for when it's null.
-
getInternalMessage
public Message getInternalMessage()
-
getBinding
public WSBinding getBinding()
-
setMessage
public void setMessage(Message message)
Sets aMessageto this packet.- Parameters:
message- Can be null.
-
isProtocolMessage
public boolean isProtocolMessage()
-
setIsProtocolMessage
public void setIsProtocolMessage()
-
getUserStateId
public String getUserStateId()
-
setUserStateId
public void setUserStateId(String x)
-
getWSDLOperation
@Nullable public final QName getWSDLOperation()
Returns the QName of the wsdl operation associated with this packet.
Information such as Payload QName, wsa:Action header, SOAPAction HTTP header are used depending on the features enabled on the particular port.- Returns:
- null if there is no WSDL model or runtime cannot uniquely identify the wsdl operation from the information in the packet.
-
getWSDLOperationMapping
public WSDLOperationMapping getWSDLOperationMapping()
- Specified by:
getWSDLOperationMappingin interfaceMessageMetadata
-
setWSDLOperation
public void setWSDLOperation(QName wsdlOp)
Set the wsdl operation to avoid lookup from other data. This is useful in SEI based clients, where the WSDL operation can be known from the associatedJavaMethod- Parameters:
wsdlOp- QName
-
getEndPointAddressString
public String getEndPointAddressString()
Deprecated.The programatic acccess should be done viaendpointAddress. This is for JAX-WS client applications that access this property viaBindingProvider.ENDPOINT_ADDRESS_PROPERTY.
-
setEndPointAddressString
public void setEndPointAddressString(String s)
-
getContentNegotiationString
public String getContentNegotiationString()
-
setContentNegotiationString
public void setContentNegotiationString(String s)
-
getReferenceParameters
@NotNull public List<Element> getReferenceParameters()
Gives a list of Reference Parameters in the MessageHeaders which have attribute wsa:IsReferenceParameter="true" This is not cached as one may reset the Message.
-
keepTransportBackChannelOpen
public TransportBackChannel keepTransportBackChannelOpen()
Keeps the transport back channel open (by seetingtransportBackChannelto null.)- Returns:
- The previous value of
transportBackChannel.
-
isRequestReplyMEP
public Boolean isRequestReplyMEP()
-
setRequestReplyMEP
public void setRequestReplyMEP(Boolean x)
-
getHandlerScopePropertyNames
public final Set<String> getHandlerScopePropertyNames(boolean readOnly)
Gets aSetthat stores handler-scope properties.These properties will not be exposed to the response context. Consequently, if a
Tubewishes to hide a property toResponseContext, it needs to add the property name to this set.- Parameters:
readOnly- Return true if the caller only intends to read the value of this set. Internally, theSetis allocated lazily, and this flag helps optimizing the strategy.- Returns:
- always non-null, possibly empty set that stores property names.
-
getApplicationScopePropertyNames
public final Set<String> getApplicationScopePropertyNames(boolean readOnly)
Deprecated.UsegetHandlerScopePropertyNames(boolean). To be removed once Tango components are updated.This method no longer works.
-
createResponse
@Deprecated public Packet createResponse(Message msg)
Deprecated.Use createClientResponse(Message) for client side and createServerResponse(Message, String) for server side response creation.Creates a responsePacketfrom a request packet (this).When a
Packetfor a reply is created, some properties need to be copied over from a request to a response, and this method handles it correctly.- Parameters:
msg- TheMessagethat represents a reply. Can be null.
-
createClientResponse
public Packet createClientResponse(Message msg)
Creates a responsePacketfrom a request packet (this).When a
Packetfor a reply is created, some properties need to be copied over from a request to a response, and this method handles it correctly.- Parameters:
msg- TheMessagethat represents a reply. Can be null.
-
relateClientResponse
public Packet relateClientResponse(Packet response)
For use cases that start with an existing Packet.
-
createServerResponse
public Packet createServerResponse(@Nullable Message responseMessage, @Nullable WSDLPort wsdlPort, @Nullable SEIModel seiModel, @NotNull WSBinding binding)
Creates a server-side responsePacketfrom a request packet (this). If WS-Addressing is enabled, a default Action Message Addressing Property is obtained usingwsdlPortWSDLPortandbindingWSBinding.This method should be called to create application response messages since they are associated with a
WSBindingandWSDLPort. For creating protocol messages that require a non-default Action, usecreateServerResponse(Message, com.sun.xml.ws.api.addressing.AddressingVersion, com.sun.xml.ws.api.SOAPVersion, String).- Parameters:
responseMessage- TheMessagethat represents a reply. Can be null.wsdlPort- The response WSDL port.binding- The response Binding. Cannot be null.- Returns:
- response packet
-
copyPropertiesTo
public void copyPropertiesTo(@Nullable Packet response)Copy all properties from (this) packet into a inputPacket- Parameters:
response- packet
-
relateServerResponse
public Packet relateServerResponse(@Nullable Packet r, @Nullable WSDLPort wsdlPort, @Nullable SEIModel seiModel, @NotNull WSBinding binding)
-
createServerResponse
public Packet createServerResponse(@Nullable Message responseMessage, @NotNull AddressingVersion addressingVersion, @NotNull SOAPVersion soapVersion, @NotNull String action)
Creates a server-side responsePacketfrom a request packet (this). If WS-Addressing is enabled,actionis used as Action Message Addressing Property.This method should be called only for creating protocol response messages that require a particular value of Action since they are not associated with a
WSBindingandWSDLPortbut do know theAddressingVersionandSOAPVersion.- Parameters:
responseMessage- TheMessagethat represents a reply. Can be null.addressingVersion- The WS-Addressing version of the response message.soapVersion- The SOAP version of the response message.action- The response Action Message Addressing Property value.- Returns:
- response packet
-
setResponseMessage
public void setResponseMessage(@NotNull Packet request, @Nullable Message responseMessage, @NotNull AddressingVersion addressingVersion, @NotNull SOAPVersion soapVersion, @NotNull String action)Overwrites theMessageof the response packet (this) by the givenMessage. UnlikesetMessage(Message), fill in the addressing headers correctly, and this process requires the access to the request packet.This method is useful when the caller needs to swap a response message completely to a new one.
-
toShortString
public String toShortString()
-
getPropertyMap
protected BasePropertySet.PropertyMap getPropertyMap()
Description copied from class:BasePropertySetMap representing the Fields and Methods annotated withPropertySet.Property. Model ofPropertySetclass.At the end of the derivation chain this method just needs to be implemented as:
private static final PropertyMap model; static { model = parse(MyDerivedClass.class); } protected PropertyMap getPropertyMap() { return model; }or if the implementation is in different Java module.private static final PropertyMap model; static { model = parse(MyDerivedClass.class, MethodHandles.lookup()); } protected PropertyMap getPropertyMap() { return model; }- Specified by:
getPropertyMapin classBasePropertySet- Returns:
- the map of strongly-typed known properties keyed by property names
-
getSOAPMessage
public jakarta.xml.soap.SOAPMessage getSOAPMessage() throws jakarta.xml.soap.SOAPExceptionDescription copied from interface:MessageContextGets the SAAJ SOAPMessage representation of the SOAP message.- Specified by:
getSOAPMessagein interfaceMessageContext- Returns:
- The SOAPMessage
- Throws:
jakarta.xml.soap.SOAPException
-
getAsSOAPMessage
public jakarta.xml.soap.SOAPMessage getAsSOAPMessage() throws jakarta.xml.soap.SOAPExceptionDescription copied from interface:MessageContextGets the SAAJ SOAPMessage representation of the SOAP message.- Specified by:
getAsSOAPMessagein interfaceMessageContext- Returns:
- The SOAPMessage
- Throws:
jakarta.xml.soap.SOAPException
-
getCodec
public Codec getCodec()
-
writeTo
public ContentType writeTo(OutputStream out) throws IOException
Description copied from interface:MessageContextWrites the XML infoset portion of this MessageContext (from <soap:Envelope> to </soap:Envelope>).- Specified by:
writeToin interfaceMessageContext- Parameters:
out- Must not be null. The caller is responsible for closing the stream, not the callee.- Returns:
- The MIME content type of the encoded message (such as "application/xml"). This information is often ncessary by transport.
- Throws:
IOException- if aOutputStreamthrowsIOException.
-
writeTo
public ContentType writeTo(WritableByteChannel buffer)
-
getMtomRequest
public Boolean getMtomRequest()
-
setMtomRequest
public void setMtomRequest(Boolean mtomRequest)
-
getMtomAcceptable
public Boolean getMtomAcceptable()
-
checkMtomAcceptable
public void checkMtomAcceptable()
-
setMtomFeature
public void setMtomFeature(jakarta.xml.ws.soap.MTOMFeature mtomFeature)
-
getMtomFeature
public jakarta.xml.ws.soap.MTOMFeature getMtomFeature()
-
getContentType
public ContentType getContentType()
Description copied from interface:MessageContextGets the Content-type of this message. For an out-bound message that this getContentType() method returns a null, the Content-Type can be determined only by calling the writeTo method to write the MessageContext to an OutputStream.- Specified by:
getContentTypein interfaceMessageContext- Returns:
- The MIME content type of this message
-
getInternalContentType
public ContentType getInternalContentType()
-
setContentType
public void setContentType(ContentType contentType)
-
getState
public Packet.State getState()
-
setState
public void setState(Packet.State state)
-
shouldUseMtom
public boolean shouldUseMtom()
-
addSatellite
public void addSatellite(@NotNull PropertySet satellite)Deprecated.
-
addSatellite
public void addSatellite(@NotNull Class keyClass, @NotNull PropertySet satellite)Deprecated.
-
copySatelliteInto
public void copySatelliteInto(@NotNull DistributedPropertySet r)Deprecated.
-
removeSatellite
public void removeSatellite(PropertySet satellite)
Deprecated.
-
setFastInfosetDisabled
public void setFastInfosetDisabled(boolean b)
-
getSAAJFactory
public SAAJFactory getSAAJFactory()
-
setSAAJFactory
public void setSAAJFactory(SAAJFactory saajFactory)
-
-