org.directwebremoting.impl
Class DefaultWebContextBuilder

java.lang.Object
  extended by org.directwebremoting.impl.DefaultWebContextBuilder
All Implemented Interfaces:
WebContextFactory.WebContextBuilder

public class DefaultWebContextBuilder
extends java.lang.Object
implements WebContextFactory.WebContextBuilder

A WebContextBuilder that creates DefaultWebContexts.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultWebContextBuilder()
           
 
Method Summary
 void disengageThread()
          Unset the current ExecutionContext This method is only for use internally to DWR.
 void engageThread(Container container, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Make the current thread know what the current request is.
 WebContext get()
          Accessor for the WebContext that is associated with this thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebContextBuilder

public DefaultWebContextBuilder()
Method Detail

get

public WebContext get()
Description copied from interface: WebContextFactory.WebContextBuilder
Accessor for the WebContext that is associated with this thread. This method is only for use internally to DWR.

Specified by:
get in interface WebContextFactory.WebContextBuilder
See Also:
WebContextFactory.get()

engageThread

public void engageThread(Container container,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
Description copied from interface: WebContextFactory.WebContextBuilder
Make the current thread know what the current request is. This method is only for use internally to DWR.

Specified by:
engageThread in interface WebContextFactory.WebContextBuilder
Parameters:
container - The IoC container
request - The incoming http request
response - The outgoing http reply
See Also:
WebContextFactory.WebContextBuilder.disengageThread()

disengageThread

public void disengageThread()
Description copied from interface: WebContextFactory.WebContextBuilder
Unset the current ExecutionContext This method is only for use internally to DWR.

Specified by:
disengageThread in interface WebContextFactory.WebContextBuilder
See Also:
WebContextFactory.WebContextBuilder.engageThread(Container, HttpServletRequest, HttpServletResponse)

Copyright 2008