|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.soap.server.RequestContext
RequestContext
defines all of the context for a SOAP request,
including information that is passed to the provider and information that
the provider must set before returning. Note that the provider is given
the request Envelope
and is therefore responsible to
unmarshall the request parameters. Similarly, the provider is required
to marshall the response, although the response envelope must also be
set by the provider, as it may be needed by a pluggable handler.
The following information is provided by the SOAP engine to the
Provider
, meaning that the provider can utilize this
information in Provider.invoke
:
The following information must be given by the Provider
to the SOAP engine:
Response
, it can be created by building the response envelope
and then marshalling the envelope.
Constants.NS_URI_SOAP_ENC
, which is SOAP encoding).
If the provider cares about this, it should set this value as soon as
it can in case of an exception. The provider might use the same encoding
as the request or as one of the parameters.
Constructor Summary | |
RequestContext()
|
Method Summary | |
java.lang.String |
getMethodName()
Get the method name for this SOAP request. |
java.lang.String |
getRequestEncodingStyle()
Get the encoding style that was used on the request. |
Envelope |
getRequestEnvelope()
Get the envelope that represents the actual SOAP request. |
java.io.ByteArrayOutputStream |
getResponseBytes()
Get the response stream for this SOAP request. |
Envelope |
getResponseEnvelope()
Get the envelope that represents the SOAP response. |
SOAPMappingRegistry |
getResponseMap()
Get the mapping registry that must be used to serialize the SOAP response. |
ServiceDeploymentDescriptor |
getServiceDeploymentDescriptor()
Get the service deployment descriptor for the requested service. |
java.lang.String |
getServiceId()
Get the service id (URI) for this SOAP request. |
UserContext |
getUserContext()
Get the user context for this SOAP request. |
void |
setMethodName(java.lang.String methodName)
Set the method name for this SOAP request. |
void |
setRequestEncodingStyle(java.lang.String requestEncodingStyle)
Set the encoding style that was used on the request. |
void |
setRequestEnvelope(Envelope envelope)
Set the envelope that represents the actual SOAP request. |
void |
setResponseBytes(java.io.ByteArrayOutputStream bytes)
Set the response stream for this SOAP request. |
void |
setResponseEnvelope(Envelope envelope)
Set the envelope that represents the SOAP response. |
void |
setResponseMap(SOAPMappingRegistry smr)
Set the mapping registry that must be used to serialize the SOAP response envelope. |
void |
setServiceDeploymentDescriptor(ServiceDeploymentDescriptor serviceDeploymentDescriptor)
Set the service deployment descriptor for the requested service. |
void |
setServiceId(java.lang.String serviceId)
Set the service id (URI) for this SOAP request. |
void |
setUserContext(UserContext userContext)
Set the user context for this SOAP request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RequestContext()
Method Detail |
public void setRequestEnvelope(Envelope envelope)
envelope
- The SOAP envelope.public Envelope getRequestEnvelope()
public void setResponseEnvelope(Envelope envelope)
envelope
- The SOAP response envelope.public Envelope getResponseEnvelope()
public void setResponseMap(SOAPMappingRegistry smr)
smr
- The mapping registry for the SOAP response envelope.public SOAPMappingRegistry getResponseMap()
public void setResponseBytes(java.io.ByteArrayOutputStream bytes)
bytes
- The ByteArrayOutputStream
that contains the
response.public java.io.ByteArrayOutputStream getResponseBytes()
ByteArrayOutputStream
that contains the
response.public void setRequestEncodingStyle(java.lang.String requestEncodingStyle)
requestEncodingStyle
- The request encoding style.public java.lang.String getRequestEncodingStyle()
public void setServiceDeploymentDescriptor(ServiceDeploymentDescriptor serviceDeploymentDescriptor)
serviceDeploymentDescriptor
- The service deployment descriptor for this request.public ServiceDeploymentDescriptor getServiceDeploymentDescriptor()
null
if the provider is an AutonomousProvider
.public void setMethodName(java.lang.String methodName)
methodName
- The method name that is being invoked in the service.public java.lang.String getMethodName()
public void setServiceId(java.lang.String serviceId)
serviceId
- The URI for the service to which this request is directed.public java.lang.String getServiceId()
public void setUserContext(UserContext userContext)
userContext
- The user context.public UserContext getUserContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |