net.java.client.slee.resource.http.event
Class ResponseEvent

java.lang.Object
  extended by net.java.client.slee.resource.http.event.ResponseEvent
All Implemented Interfaces:
java.io.Serializable

public class ResponseEvent
extends java.lang.Object
implements java.io.Serializable

Service sending Request asynchronously will receive net.java.client.slee.resource.http.event.ResponseEvent as soon as the Resource Adaptor receives the Response and emits ResponseEvent.
ResponseEvent carries either the Response if everything went fine else Exception if there was any problem

Author:
amit bhayani, martins
See Also:
Serialized Form

Constructor Summary
ResponseEvent(java.lang.Exception exception, java.lang.Object requestApplicationData)
           
ResponseEvent(org.apache.http.HttpResponse httpResponse, java.lang.Object requestApplicationData)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Exception getException()
          The exception which occurred when sending the HTTP Request, if any.
 org.apache.http.HttpResponse getHttpResponse()
          The response to the HTTP Request.
 java.lang.Object getRequestApplicationData()
          The application data included in the HTTP Request.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseEvent

public ResponseEvent(org.apache.http.HttpResponse httpResponse,
                     java.lang.Object requestApplicationData)

ResponseEvent

public ResponseEvent(java.lang.Exception exception,
                     java.lang.Object requestApplicationData)
Method Detail

getRequestApplicationData

public java.lang.Object getRequestApplicationData()
The application data included in the HTTP Request.

Returns:

getHttpResponse

public org.apache.http.HttpResponse getHttpResponse()
The response to the HTTP Request.

Returns:

getException

public java.lang.Exception getException()
The exception which occurred when sending the HTTP Request, if any.

Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2011. All Rights Reserved.