Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.rt
Class RequestFactory

java.lang.Object
  |
  +--oracle.panama.rt.RequestFactory

public abstract class RequestFactory
extends java.lang.Object

This RequestFactory produces new request objects that can be executed.

Since:
Oracle9i Application Server Wireless Edition

Constructor Summary
RequestFactory()
           

 

Method Summary
static Request createRequest(javax.servlet.http.HttpServletRequest request)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, Device device)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, Device device, Service service)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Device device)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Device device, Service service)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Session session, Device device)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Session session, Device device, Service service)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, Session session, Device device)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(javax.servlet.http.HttpServletRequest request, Session session, Device device, Service service)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(Service service, User user, AlertAddress address)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(Service service, User user, Device device)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(Session session, Service service, User user, AlertAddress address)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(Session session, Service service, User user, Device device)
          Create a new instance of the Request, which can be executed to invoke a service.
static Request createRequest(java.lang.String user, java.lang.String password)
          Create a new instance of the Request, which can be executed to invoke a service.
static RequestFactory getInstance()
          Get the singleton instance of the request factory
static Request lookupRequest()
          Lookup the request object associated with the current thread.
abstract  void setServerInfo(java.lang.String serverInfo)
          Set the server information obtained from the servlet context.

 

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

 

Constructor Detail

RequestFactory

public RequestFactory()
Method Detail

getInstance

public static RequestFactory getInstance()
Get the singleton instance of the request factory

setServerInfo

public abstract void setServerInfo(java.lang.String serverInfo)
Set the server information obtained from the servlet context.

lookupRequest

public static Request lookupRequest()
Lookup the request object associated with the current thread. Clients which need to lookup the session or service context objects can get them from the request object.
Returns:
a request object associated with the current thread, null if no request is associated with this thread
See Also:
Request

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
Create a new instance of the Request, which can be executed to invoke a service. The incoming servlet request should specify the object id of the service and other query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
response - the outgoing http response
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request)
Create a new instance of the Request, which can be executed to invoke a service. The incoming servlet request should specify the object id of the service and other query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
Device device)
Create a new instance of the Request, which can be executed to invoke a service. The incoming servlet request should specify the object id of the service and other query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
response - the outgoing http response
device - the device model to tailor the response
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
Device device,
Service service)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
response - the outgoing http response
device - the device model to tailor the response
service - the service to be authorized and invoked
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
Device device)
Create a new instance of the Request, which can be executed to invoke a service. The incoming servlet request should specify the object id of the service and other query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
device - the device model to tailor the response
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
Device device,
Service service)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
device - the device model to tailor the response
service - the service to be authorized and invoked
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
Session session,
Device device)
Create a new instance of the Request, which can be executed to invoke a service. The incoming servlet request should specify the object id of the service and other query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
response - the outgoing http response
session - the existing session
device - the device model to tailor the response
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
Session session,
Device device,
Service service)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
response - the outgoing http response
session - the existing session
device - the device model to tailor the response
service - the service to be authorized and invoked
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
Session session,
Device device)
Create a new instance of the Request, which can be executed to invoke a service. The incoming servlet request should specify the object id of the service and other query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
session - the existing session
device - the device model to tailor the response
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(javax.servlet.http.HttpServletRequest request,
Session session,
Device device,
Service service)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
request - the incoming http request
session - the existing session
device - the device model to tailor the response
service - the service to be authorized and invoked
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(Service service,
User user,
AlertAddress address)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
user - the effective user
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(Service service,
User user,
Device device)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
user - the effective user
device - the device to be rendered for
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(Session session,
Service service,
User user,
AlertAddress address)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
session - the existing session
user - the effective user
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(Session session,
Service service,
User user,
Device device)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
session - the existing session
user - the effective user
device - the device to be rendered for
Returns:
a new instance of Request that can be executed

createRequest

public static Request createRequest(java.lang.String user,
                                    java.lang.String password)
Create a new instance of the Request, which can be executed to invoke a service. The incoming http request should specify the query parameters. A new request should be created only after the earlier request for the same session is invalidated.
Parameters:
user - the user signing on
password - the password
Returns:
a new instance of Request that can be executed

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.