info.sswap.impl.http
Class HTTPAPIImpl.RQGResponse

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

public class HTTPAPIImpl.RQGResponse
extends AbstractHTTPResponse
implements HTTPClient.RQGResponse

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

Author:
Damian Gessler

Constructor Summary
HTTPAPIImpl.RQGResponse(RQG rqg, com.clarkparsia.utils.web.Response response)
          Constructor to set the RQG and network response data; not needed by most users.
 
Method Summary
 RQG getRQG()
          Getter method to get the RQG 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.RQGResponse

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

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

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

getRQG

public RQG getRQG()
Description copied from interface: HTTPClient.RQGResponse
Getter method to get the RQG from a successful conversion.

Specified by:
getRQG in interface HTTPClient.RQGResponse
Returns:
successful RQG or null on failure


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