org.norther.tammi.spray.engine.context
Class ContextBindingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.norther.tammi.spray.engine.context.ContextBindingEvent
All Implemented Interfaces:
Serializable

public class ContextBindingEvent
extends EventObject

Events of this type are sent to an object that implements the ContextBindingListener interface when it is bound to or unbound from a context.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContextBindingEvent(TemplateContext context, HttpFilterChain chain, String name)
          Constructs a new event with a filter chain.
ContextBindingEvent(TemplateContext context, String name)
          Constructs a new event.
 
Method Summary
 TemplateContext getContext()
          Gets the target context.
 HttpFilterChain getFilterChain()
          Gets the filter chain if any.
 String getName()
          Gets the bound name.
 ServletRequest getRequest()
          Gets the current request if any.
 ServletResponse getResponse()
          Gets the current response if any.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextBindingEvent

public ContextBindingEvent(TemplateContext context,
                           String name)
Constructs a new event.

Parameters:
context - the context.
name - the bound name.

ContextBindingEvent

public ContextBindingEvent(TemplateContext context,
                           HttpFilterChain chain,
                           String name)
Constructs a new event with a filter chain.

Parameters:
context - the context.
chain - the filter chain.
name - the bound name.
Method Detail

getContext

public TemplateContext getContext()
Gets the target context.

Returns:
the target context.

getRequest

public ServletRequest getRequest()
Gets the current request if any.

Returns:
the current request or null.

getResponse

public ServletResponse getResponse()
Gets the current response if any.

Returns:
the current response or null.

getFilterChain

public HttpFilterChain getFilterChain()
Gets the filter chain if any.

Returns:
the filter chain or null.

getName

public String getName()
Gets the bound name.

Returns:
the bound name.


Copyright © 2004 The Norther Organization. All rights reserved.