|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object base.connection.ResponseHandler
public class ResponseHandler
Default handler for request responses. Subclasses should override these methods for custom handling.
Field Summary | |
---|---|
protected java.lang.Object |
object
|
protected IResponse |
response
|
Constructor Summary | |
---|---|
ResponseHandler(IResponse response)
Constructs the handler with the given response. |
Method Summary | |
---|---|
java.lang.Object |
getParsedObject()
Returns the response's processed representation. |
IResponse |
getResponse()
Returns the original response. |
protected void |
parseBody()
Parses the response's body. |
protected java.lang.String |
parseError()
Returns a String expressing the error that occurred. |
protected boolean |
success()
Indicates if the request was successful or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IResponse response
protected java.lang.Object object
Constructor Detail |
---|
public ResponseHandler(IResponse response)
response
- is the request's responseMethod Detail |
---|
public java.lang.Object getParsedObject()
public IResponse getResponse()
protected void parseBody()
IBMHandler
,
IBMDriver
protected java.lang.String parseError()
protected boolean success()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |