Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.directwebremoting
Class WebContextFactory

    java.lang.Object
      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 WebContext` | `get()` Accessor for the current WebContext.
`static void` | `setWebContextBuilder(WebContextFactory.WebContextBuilder builder)` Internal method to allow us to get the WebContextBuilder from which we will get WebContext objects.

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.

### setWebContextBuilder

    public static void setWebContextBuilder(WebContextFactory.WebContextBuilder builder)

  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.

  Parameters:
    `builder` - The factory object (from DwrServlet)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Copyright ¬ 2005
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD