Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.hermes.broker.http
Class HttpMessageBrokerContext  view HttpMessageBrokerContext download HttpMessageBrokerContext.java

java.lang.Object
  extended bycom.aendvari.hermes.broker.MessageBrokerContext
      extended bycom.aendvari.hermes.broker.http.HttpMessageBrokerContext

public class HttpMessageBrokerContext
extends com.aendvari.hermes.broker.MessageBrokerContext

Extends com.aendvari.hermes.broker.MessageBrokerContext to include HTTP/Servlet specific information.

This class also provides an interface for accessing HTTP/Servlet information from a MessageBrokerContext's properties.


Nested Class Summary
static interface HttpMessageBrokerContext.Property
          Various property constants.
 
Field Summary
 
Fields inherited from class com.aendvari.hermes.broker.MessageBrokerContext
broker, properties
 
Constructor Summary
HttpMessageBrokerContext()
          Constructs a HttpMessageBrokerContext.
 
Method Summary
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the request of this context.
static javax.servlet.http.HttpServletRequest getRequest(com.aendvari.hermes.broker.MessageBrokerContext context)
          Returns the request of the supplied context.
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the response of this context.
static javax.servlet.http.HttpServletResponse getResponse(com.aendvari.hermes.broker.MessageBrokerContext context)
          Returns the response of the supplied context.
 javax.servlet.ServletConfig getServletConfig()
          Returns the servlet configuration of this context.
static javax.servlet.ServletConfig getServletConfig(com.aendvari.hermes.broker.MessageBrokerContext context)
          Returns the servlet configuration of the supplied context.
 javax.servlet.http.HttpSession getSession()
          Returns the session of this context.
static javax.servlet.http.HttpSession getSession(com.aendvari.hermes.broker.MessageBrokerContext context)
          Returns the session of the supplied context.
 void setRequest(javax.servlet.http.HttpServletRequest setRequest)
          Sets the request of this context.
 void setResponse(javax.servlet.http.HttpServletResponse setResponse)
          Sets the response of this context.
 void setServletConfig(javax.servlet.ServletConfig setServletConfig)
          Sets the servlet configuration of this context.
 void setSession(javax.servlet.http.HttpServletRequest setRequest)
          Sets the session of this context.
 void setSession(javax.servlet.http.HttpSession setSession)
          Sets the session of this context.
 
Methods inherited from class com.aendvari.hermes.broker.MessageBrokerContext
createConnection, getBroker, getProperties, setBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMessageBrokerContext

public HttpMessageBrokerContext()
Constructs a HttpMessageBrokerContext.

Method Detail

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest setRequest)
Sets the request of this context.


getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Returns the request of this context.


getRequest

public static javax.servlet.http.HttpServletRequest getRequest(com.aendvari.hermes.broker.MessageBrokerContext context)
Returns the request of the supplied context.


setResponse

public void setResponse(javax.servlet.http.HttpServletResponse setResponse)
Sets the response of this context.


getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Returns the response of this context.


getResponse

public static javax.servlet.http.HttpServletResponse getResponse(com.aendvari.hermes.broker.MessageBrokerContext context)
Returns the response of the supplied context.


setSession

public void setSession(javax.servlet.http.HttpSession setSession)
Sets the session of this context.


setSession

public void setSession(javax.servlet.http.HttpServletRequest setRequest)
Sets the session of this context. The session is obtained from the supplied request.


getSession

public javax.servlet.http.HttpSession getSession()
Returns the session of this context.


getSession

public static javax.servlet.http.HttpSession getSession(com.aendvari.hermes.broker.MessageBrokerContext context)
Returns the session of the supplied context.


setServletConfig

public void setServletConfig(javax.servlet.ServletConfig setServletConfig)
Sets the servlet configuration of this context.


getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Returns the servlet configuration of this context.


getServletConfig

public static javax.servlet.ServletConfig getServletConfig(com.aendvari.hermes.broker.MessageBrokerContext context)
Returns the servlet configuration of the supplied context.