info.sswap.impl.http
Class HTTPAPIImpl.RIGResponse

java.lang.Object
  extended by info.sswap.impl.http.AbstractHTTPResponse
      extended by info.sswap.impl.http.HTTPAPIImpl.RIGResponse
All Implemented Interfaces:
HTTPClient.RIGResponse, HTTPResponse
Enclosing class:
HTTPAPIImpl

public class HTTPAPIImpl.RIGResponse
extends AbstractHTTPResponse
implements HTTPClient.RIGResponse

Exposes access to both a ready-to-use RIG on success or a network response object on failure.

Author:
Damian Gessler

Constructor Summary
HTTPAPIImpl.RIGResponse(RIG rig, com.clarkparsia.utils.web.Response response)
          Constructor to set the RIG and network response data; not needed by most users.
 
Method Summary
 RIG getRIG()
          Getter method to get the RIG from a successful conversion.
 
Methods inherited from class info.sswap.impl.http.AbstractHTTPResponse
close, getContent, getDocument, getErrorStream, getException, getHeaders, getHeaderValue, getHeaderValues, getMessage, getResponseCode, getSSWAPExceptionHeader, getSSWAPExceptionValues, hasErrorCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.sswap.api.http.HTTPResponse
close, getContent, getErrorStream, getException, getHeaders, getHeaderValue, getHeaderValues, getMessage, getResponseCode, getSSWAPExceptionHeader, getSSWAPExceptionValues, hasErrorCode
 

Constructor Detail

HTTPAPIImpl.RIGResponse

public HTTPAPIImpl.RIGResponse(RIG rig,
                               com.clarkparsia.utils.web.Response response)
Constructor to set the RIG and network response data; not needed by most users.

The network connection is automatically closed on a successful RIG creation.

Parameters:
rig - RIG to be returned to the user, or null
response - network response object with response status information
Method Detail

getRIG

public RIG getRIG()
Description copied from interface: HTTPClient.RIGResponse
Getter method to get the RIG from a successful conversion.

Specified by:
getRIG in interface HTTPClient.RIGResponse
Returns:
successful RIG or null on failure


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.