info.sswap.impl.http
Class HTTPAPIImpl.PDGResponse

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

public class HTTPAPIImpl.PDGResponse
extends AbstractHTTPResponse
implements HTTPProvider.PDGResponse

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

Author:
Damian Gessler

Constructor Summary
HTTPAPIImpl.PDGResponse(PDG pdg, com.clarkparsia.utils.web.Response response)
          Constructor to set the PDG and network response data; not needed by most users.
 
Method Summary
 PDG getPDG()
          Getter method to get the Provider Description Graph (PDG) 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.PDGResponse

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

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

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

getPDG

public PDG getPDG()
Description copied from interface: HTTPProvider.PDGResponse
Getter method to get the Provider Description Graph (PDG) from a successful conversion.

Specified by:
getPDG in interface HTTPProvider.PDGResponse
Returns:
successful PDG or null on failure.
See Also:
PDG


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