org.directwebremoting
Class WebContextFactory

java.lang.Object
  extended by org.directwebremoting.WebContextFactory

public class WebContextFactory
extends java.lang.Object

Accessor for the current WebContext.

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

Nested Class Summary
static interface WebContextFactory.WebContextBuilder
          Class to enable us to access servlet parameters.
 
Constructor Summary
WebContextFactory()
           
 
Method Summary
static void attach(Container container)
          Internal method to allow us to get the WebContextBuilder from which we will get WebContext objects.
static WebContext get()
          Accessor for the current WebContext.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebContextFactory

public WebContextFactory()
Method Detail

get

public static WebContext get()
Accessor for the current WebContext.

Returns:
The current WebContext or null if the current thread was not started by DWR.

attach

public static void attach(Container container)
Internal method to allow us to get the WebContextBuilder from which we will get WebContext objects. Do NOT call this method from outside of DWR.


Copyright 2008