info.sswap.impl.http
Class HTTPAPIImpl.RDGResponse

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

public class HTTPAPIImpl.RDGResponse
extends AbstractHTTPResponse
implements HTTPProvider.RDGResponse

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

Author:
Damian Gessler

Constructor Summary
HTTPAPIImpl.RDGResponse(RDG rdg, com.clarkparsia.utils.web.Response response)
          Constructor to set the RDG and network response data; not needed by most users.
 
Method Summary
 RDG getRDG()
          Getter method to get the Resource Description Graph (RDG) 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.RDGResponse

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

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

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

getRDG

public RDG getRDG()
Description copied from interface: HTTPProvider.RDGResponse
Getter method to get the Resource Description Graph (RDG) from a successful conversion.

Specified by:
getRDG in interface HTTPProvider.RDGResponse
Returns:
successful RDG or null on failure.
See Also:
RDG


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