Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices
Interface ServerConstants


public interface ServerConstants

A class that holds all the constants used to set and get server side properties.


Field Summary
static String ASYNC_RESPONSE_PROPERTIES
          This property can be used by an async service implementation to set response context properties to be used when the response is sent over a new connection.
static String HTTP_SERVLET_REQUEST
          This property can be used by a service implementation class to get the HTTP servlet request when the caller of the webservices uses HTTP transport.
static String HTTP_SERVLET_RESPONSE
          This property can be used by a service implementation class to get the HTTP servlet response when the caller of the webservices uses HTTP transport.

 

Field Detail

HTTP_SERVLET_REQUEST

static final String HTTP_SERVLET_REQUEST
This property can be used by a service implementation class to get the HTTP servlet request when the caller of the webservices uses HTTP transport. To use this property the service implementation must implement javax.xml.rpc.server.ServiceLifecyle and store the Object passed into the init method which is an instance of javax.xml.rpc.server.ServletEndpointContext. When a method in the service implementation class is invoked, the ServletEndpointContext's method getMessageContext returns a javax.xml.rpc.handler.MessageContext. The MessageContext has a method getProperty which can use this constant as a property name. The object returned is an instance of javax.servlet.http.HttpServletRequest.

Type: java.lang.String

See Also:
Constant Field Values

HTTP_SERVLET_RESPONSE

static final String HTTP_SERVLET_RESPONSE
This property can be used by a service implementation class to get the HTTP servlet response when the caller of the webservices uses HTTP transport. To use this property the service implementation must implement javax.xml.rpc.server.ServiceLifecyle and store the Object passed into the init method which is an instance of javax.xml.rpc.server.ServletEndpointContext. When a method in the service implementation class is invoked, the ServletEndpointContext's method getMessageContext returns a javax.xml.rpc.handler.MessageContext. The MessageContext has a method getProperty which can use this constant as a property name. The object returned is an instance of javax.servlet.http.HttpServletResponse.

Type: java.lang.String

See Also:
Constant Field Values

ASYNC_RESPONSE_PROPERTIES

static final String ASYNC_RESPONSE_PROPERTIES
This property can be used by an async service implementation to set response context properties to be used when the response is sent over a new connection. This value of this property must be a Map<String, String>. All entries in this map will be added to the responseContext of the BindingProvider created by the system to send the response. getRequestContext
See Also:
Constant Field Values

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.