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

java.lang.Object
  extended by org.gcube.common.ghn.service.events.ApplicationEvent<RequestHandler>
      extended by org.gcube.common.ghn.service.events.RequestEvent
          extended by org.gcube.common.ghn.service.events.ResponseEvent

public class ResponseEvent
extends RequestEvent

A ApplicationEvent that occurs when the application returns a response to a given request.

Author:
Fabio Simeoni

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

Constructor Detail

ResponseEvent

public ResponseEvent(String servlet,
                     ApplicationContext context,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
Creates an instance with the name of the target servlet, the context of the application, the client request, and the application response.

Parameters:
servlet - the name of the servlet
context - the context of the application
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 ApplicationEvent<RequestHandler>


Copyright © 2013. All Rights Reserved.