simplecloud.storage.providers.nirvanix
Class NirvanixHandler

java.lang.Object
  extended by base.connection.ResponseHandler
      extended by simplecloud.storage.providers.nirvanix.NirvanixHandler

public class NirvanixHandler
extends ResponseHandler


Field Summary
 
Fields inherited from class base.connection.ResponseHandler
object, response
 
Constructor Summary
NirvanixHandler(IResponse response)
           
 
Method Summary
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 base.connection.ResponseHandler
getParsedObject, getResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NirvanixHandler

public NirvanixHandler(IResponse response)
Method Detail

parseBody

protected void parseBody()
Description copied from class: ResponseHandler
Parses the response's body. The parsed response is stored in 'object'. This object is then used within the Driver to custom parse the response. Subclasses should override for custom processing.

Overrides:
parseBody in class ResponseHandler
See Also:
IBMHandler, IBMDriver

parseError

protected java.lang.String parseError()
Description copied from class: ResponseHandler
Returns a String expressing the error that occurred. Subclasses should override for custom processing.

Overrides:
parseError in class ResponseHandler
Returns:
String represents the error that occurred if !success()

success

protected boolean success()
Description copied from class: ResponseHandler
Indicates if the request was successful or not. Subclasses should override for custom processing.

Overrides:
success in class ResponseHandler
Returns:
true if the request was successful, false otherwise