org.apache.sling.api.request
Class SlingRequestEvent

java.lang.Object
  extended by org.apache.sling.api.request.SlingRequestEvent

public class SlingRequestEvent
extends Object

represents an event published by the Sling engine while dispatching a request.

Since:
2.1.0
See Also:
SlingRequestListener

Nested Class Summary
static class SlingRequestEvent.EventType
          type of the event
 
Constructor Summary
SlingRequestEvent(javax.servlet.ServletContext sc, javax.servlet.ServletRequest request, SlingRequestEvent.EventType type)
           
 
Method Summary
 javax.servlet.ServletContext getServletContext()
          Gets the actual servlet context object as ServletContext
 javax.servlet.ServletRequest getServletRequest()
          Gets the actual request object as ServletRequest
 SlingRequestEvent.EventType getType()
          get the type of the event, eg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlingRequestEvent

public SlingRequestEvent(javax.servlet.ServletContext sc,
                         javax.servlet.ServletRequest request,
                         SlingRequestEvent.EventType type)
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Gets the actual servlet context object as ServletContext

Returns:
the actual servlet context.

getServletRequest

public javax.servlet.ServletRequest getServletRequest()
Gets the actual request object as ServletRequest

Returns:
the actual request object as ServletRequest

getType

public SlingRequestEvent.EventType getType()
get the type of the event, eg. EVENT_INIT or EVENT_DESTROY

Returns:
the type of the event as EventType, eg. EVENT_INIT or EVENT_DESTROY


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.