Oracle® XML Java API Reference
Release 1 (10.1)

B12024-01

oracle.soap.server
Class RequestContext

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

public class RequestContext
extends java.lang.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 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.
 OracleSOAPContext getRequestSOAPContext()
          Get the Oracle extended SOAPContext 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.
 OracleSOAPContext getResponseSOAPContext()
          Get the Oracle extended SOAPContext for the response to this SOAP request.
 java.lang.String getServiceId()
          Get the service id (URI) 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 setRequestSOAPContext(OracleSOAPContext soapContext)
          Set the Oracle extended SOAPContext 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 setResponseSOAPContext(OracleSOAPContext soapContext)
          Set the Oracle extended SOAPContext for the response to this SOAP request.
 void setServiceId(java.lang.String serviceId)
          Set the service id (URI) for this SOAP request.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RequestContext

public RequestContext()
Method Detail

setRequestEnvelope

public void setRequestEnvelope(Envelope envelope)
Set the envelope that represents the actual SOAP request.
Parameters:
envelope - The SOAP envelope.

getRequestEnvelope

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

setRequestSOAPContext

public void setRequestSOAPContext(OracleSOAPContext soapContext)
Set the Oracle extended SOAPContext for this SOAP request.
Parameters:
soapContext - The SOAP context.

getRequestSOAPContext

public OracleSOAPContext getRequestSOAPContext()
Get the Oracle extended SOAPContext for this SOAP request.
Returns:
The SOAP context.

setResponseEnvelope

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

getResponseEnvelope

public Envelope getResponseEnvelope()
Get the envelope that represents the SOAP response.
Returns:
The SOAP response envelope.

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.

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.

setResponseSOAPContext

public void setResponseSOAPContext(OracleSOAPContext soapContext)
Set the Oracle extended SOAPContext for the response to this SOAP request.
Parameters:
soapContext - The SOAP context.

getResponseSOAPContext

public OracleSOAPContext getResponseSOAPContext()
Get the Oracle extended SOAPContext for the response to this SOAP request.
Returns:
The SOAP context.

setRequestEncodingStyle

public void setRequestEncodingStyle(java.lang.String requestEncodingStyle)
Set the encoding style that was used on the request.
Parameters:
requestEncodingStyle - The request encoding style.

getRequestEncodingStyle

public java.lang.String getRequestEncodingStyle()
Get the encoding style that was used on the request.
Returns:
The request encoding style.

setMethodName

public void setMethodName(java.lang.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.

getMethodName

public java.lang.String getMethodName()
Get the method name for this SOAP request.
Returns:
The the method name being invoked.

setServiceId

public void setServiceId(java.lang.String serviceId)
Set the service id (URI) for this SOAP request.
Parameters:
serviceId - The URI for the service to which this request is directed.

getServiceId

public java.lang.String getServiceId()
Get the service id (URI) for this SOAP request.
Returns:
The URI for the service to which this request is directed.

Oracle® XML Java API Reference
Release 1 (10.1)

B12024-01

Copyright © 2003, Oracle. All Rights Reserved.