All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.soap.server.RequestContext

java.lang.Object
   |
   +----oracle.soap.server.RequestContext

public class RequestContext
extends Object

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:


Constructor Index

 o RequestContext()

Method Index

 o getMethodName()
Get the method name for this SOAP request.
 o getRequestEncodingStyle()
Get the encoding style that was used on the request.
 o getRequestEnvelope()
Get the envelope that represents the actual SOAP request.
 o getResponseBytes()
Get the response stream for this SOAP request.
 o getResponseEnvelope()
Get the envelope that represents the SOAP response.
 o getResponseMap()
Get the mapping registry that must be used to serialize the SOAP response.
 o getServiceDeploymentDescriptor()
Get the service deployment descriptor for the requested service.
 o getServiceId()
Get the service id (URI) for this SOAP request.
 o getUserContext()
Get the user context for this SOAP request.
 o setMethodName(String)
Set the method name for this SOAP request.
 o setRequestEncodingStyle(String)
Set the encoding style that was used on the request.
 o setRequestEnvelope(Envelope)
Set the envelope that represents the actual SOAP request.
 o setResponseBytes(ByteArrayOutputStream)
Set the response stream for this SOAP request.
 o setResponseEnvelope(Envelope)
Set the envelope that represents the SOAP response.
 o setResponseMap(SOAPMappingRegistry)
Set the mapping registry that must be used to serialize the SOAP response envelope.
 o setServiceDeploymentDescriptor(ServiceDeploymentDescriptor)
Set the service deployment descriptor for the requested service.
 o setServiceId(String)
Set the service id (URI) for this SOAP request.
 o setUserContext(UserContext)
Set the user context for this SOAP request.

Constructors

 o RequestContext
 public RequestContext()

Methods

 o setRequestEnvelope
 public void setRequestEnvelope(Envelope envelope)
Set the envelope that represents the actual SOAP request.

Parameters:
envelope - The SOAP envelope.
 o getRequestEnvelope
 public Envelope getRequestEnvelope()
Get the envelope that represents the actual SOAP request.

Returns:
The SOAP envelope.
 o setResponseEnvelope
 public void setResponseEnvelope(Envelope envelope)
Set the envelope that represents the SOAP response.

Parameters:
envelope - The SOAP response envelope.
 o getResponseEnvelope
 public Envelope getResponseEnvelope()
Get the envelope that represents the SOAP response.

Returns:
The SOAP response envelope.
 o setResponseMap
 public void setResponseMap(SOAPMappingRegistry smr)
Set the mapping registry that must be used to serialize the SOAP response envelope.

Parameters:
smr - The mapping registry for the SOAP response envelope.
 o getResponseMap
 public SOAPMappingRegistry getResponseMap()
Get the mapping registry that must be used to serialize the SOAP response.

Returns:
The mapping registry for the SOAP response envelope.
 o setResponseBytes
 public void setResponseBytes(ByteArrayOutputStream bytes)
Set the response stream for this SOAP request.

Parameters:
bytes - The ByteArrayOutputStream that contains the response.
 o getResponseBytes
 public ByteArrayOutputStream getResponseBytes()
Get the response stream for this SOAP request.

Returns:
The ByteArrayOutputStream that contains the response.
 o setRequestEncodingStyle
 public void setRequestEncodingStyle(String requestEncodingStyle)
Set the encoding style that was used on the request.

Parameters:
requestEncodingStyle - The request encoding style.
 o getRequestEncodingStyle
 public String getRequestEncodingStyle()
Get the encoding style that was used on the request.

Returns:
The request encoding style.
 o setServiceDeploymentDescriptor
 public void setServiceDeploymentDescriptor(ServiceDeploymentDescriptor serviceDeploymentDescriptor)
Set the service deployment descriptor for the requested service.

Parameters:
serviceDeploymentDescriptor - The service deployment descriptor for this request.
 o getServiceDeploymentDescriptor
 public ServiceDeploymentDescriptor getServiceDeploymentDescriptor()
Get the service deployment descriptor for the requested service.

Returns:
The service deployment descriptor for this request, or null if the provider is an AutonomousProvider.
 o setMethodName
 public void setMethodName(String methodName)
Set the method name for this SOAP request. The method name is in the envelope, but it can be "cached" here by the server as a convenience.

Parameters:
methodName - The method name that is being invoked in the service.
 o getMethodName
 public String getMethodName()
Get the method name for this SOAP request.

Returns:
The the method name being invoked.
 o setServiceId
 public void setServiceId(String serviceId)
Set the service id (URI) for this SOAP request.

Parameters:
serviceId - The URI for the service to which this request is directed.
 o getServiceId
 public String getServiceId()
Get the service id (URI) for this SOAP request.

Returns:
The URI for the service to which this request is directed.
 o setUserContext
 public void setUserContext(UserContext userContext)
Set the user context for this SOAP request.

Parameters:
userContext - The user context.
 o getUserContext
 public UserContext getUserContext()
Get the user context for this SOAP request.

Returns:
The user context.

All Packages  Class Hierarchy  This Package  Previous  Next  Index