org.gcube.common.ghn.service.events
Class ResponseEvent

java.lang.Object
  extended by org.gcube.common.ghn.service.events.RequestEvent
      extended by org.gcube.common.ghn.service.events.ResponseEvent
All Implemented Interfaces:
ServiceEvent<RequestHandler>

public class ResponseEvent
extends RequestEvent

A ServiceEvent that occurs when the a servlet returns a response to a given request.

The event is passed to RequestHandler registered in the Pipeline's of RequestFilter.

Author:
Fabio Simeoni
See Also:
RequestHandler, Pipeline, RequestFilter

Constructor Summary
ResponseEvent(String servletName, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext ctx)
          Creates an instance with the response, the corresponding request, and the name of the target servlet
 
Method Summary
 javax.servlet.http.HttpServletResponse response()
          Returns the response.
 String toString()
           
 
Methods inherited from class org.gcube.common.ghn.service.events.RequestEvent
request, servletContext, servletName, uri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseEvent

public ResponseEvent(String servletName,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     javax.servlet.ServletContext ctx)
Creates an instance with the response, the corresponding request, and the name of the target servlet

Parameters:
servletName - the name of the servlet
request - the request
response - the response
Method Detail

response

public javax.servlet.http.HttpServletResponse response()
Returns the response.

Returns:
the response

toString

public String toString()
Overrides:
toString in class RequestEvent


Copyright © 2013. All Rights Reserved.