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.ServletRequest request, javax.servlet.ServletResponse response)
          Creates an instance with the response, the corresponding request, and the name of the target servlet
 
Method Summary
 javax.servlet.ServletResponse response()
          Returns the response.
 String toString()
           
 
Methods inherited from class org.gcube.common.ghn.service.events.RequestEvent
request, servletName
 
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.ServletRequest request,
                     javax.servlet.ServletResponse response)
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.ServletResponse response()
Returns the response.

Returns:
the response

toString

public String toString()
Overrides:
toString in class RequestEvent


Copyright © 2012. All Rights Reserved.