|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.impl.http.HTTPAPIImpl
public class HTTPAPIImpl
Nested Class Summary | |
---|---|
class |
HTTPAPIImpl.PDGResponse
Exposes access to both a ready-to-use PDG on success or a
network response object on failure. |
class |
HTTPAPIImpl.RDGResponse
Exposes access to both a ready-to-use RDG on success or a
network response object on failure. |
class |
HTTPAPIImpl.RIGResponse
Exposes access to both a ready-to-use RIG on success or a
network response object on failure. |
class |
HTTPAPIImpl.RQGResponse
Exposes access to both a ready-to-use RQG on success or a
network response object on failure. |
class |
HTTPAPIImpl.RRGResponse
Exposes access to both a ready-to-use RRG on success or a
network response object on failure. |
Field Summary | |
---|---|
private static java.net.URI |
MAKE_PDG_URI
|
private static java.net.URI |
MAKE_RDG_URI
|
private static java.net.URI |
MAKE_RIG_URI
|
private static java.net.URI |
MAKE_RQG_URI
|
private static java.net.URI |
MAKE_RRG_URI
|
private com.clarkparsia.utils.web.Response |
response
|
private static java.lang.String |
SSWAP_API_URI_DEFAULT_VALUE
|
private static java.lang.String |
SSWAP_API_URI_SYSTEM_PROPERTY
|
Constructor Summary | |
---|---|
HTTPAPIImpl()
|
Method Summary | ||
---|---|---|
private
|
makeAPI(java.net.URI apiURI,
java.lang.Class<T> clazz,
java.io.InputStream jsonStream)
|
|
HTTPAPIImpl.PDGResponse |
makePDG(java.io.InputStream jsonStream)
Make a Provider Description Graph ( PDG ) from a JSON
(JavaScript Object Notation) specification. |
|
HTTPAPIImpl.PDGResponse |
makePDG(java.lang.String jsonString)
Convenience method to makePDG(InputStream) with input as
single JSON string. |
|
HTTPAPIImpl.RDGResponse |
makeRDG(java.io.InputStream jsonStream)
Make a Resource Description Graph ( RDG ) from a JSON
(JavaScript Object Notation) specification. |
|
HTTPAPIImpl.RDGResponse |
makeRDG(java.lang.String jsonString)
Convenience method to makeRDG(InputStream) with input as
single JSON string. |
|
HTTPAPIImpl.RIGResponse |
makeRIG(java.io.InputStream jsonStream)
Make a Response Invocation Graph ( RIG ) from a JSON
(JavaScript Object Notation) specification. |
|
HTTPAPIImpl.RIGResponse |
makeRIG(java.lang.String jsonString)
Convenience method to makeRIG(InputStream) with input as
single JSON string. |
|
HTTPAPIImpl.RQGResponse |
makeRQG(java.io.InputStream jsonStream)
Make a Response Query Graph ( RQG ) from a JSON (JavaScript
Object Notation) specification. |
|
HTTPAPIImpl.RQGResponse |
makeRQG(java.lang.String jsonString)
Convenience method to makeRQG(InputStream) with input as
single JSON string. |
|
HTTPAPIImpl.RRGResponse |
makeRRG(java.io.InputStream jsonStream)
Make a Resource Response Graph ( RRG ) from a JSON
(JavaScript Object Notation) specification. |
|
HTTPAPIImpl.RRGResponse |
makeRRG(java.lang.String jsonString)
Convenience method to makeRRG(InputStream) with input as
single JSON string. |
|
private
|
setDocumentURI(T originalDoc,
java.lang.Class<T> clazz)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private com.clarkparsia.utils.web.Response response
private static final java.lang.String SSWAP_API_URI_SYSTEM_PROPERTY
private static final java.lang.String SSWAP_API_URI_DEFAULT_VALUE
private static java.net.URI MAKE_PDG_URI
private static java.net.URI MAKE_RDG_URI
private static java.net.URI MAKE_RIG_URI
private static java.net.URI MAKE_RRG_URI
private static java.net.URI MAKE_RQG_URI
Constructor Detail |
---|
public HTTPAPIImpl()
Method Detail |
---|
public HTTPAPIImpl.PDGResponse makePDG(java.io.InputStream jsonStream) throws java.io.IOException
HTTPProvider
PDG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makePDG.
makePDG
in interface HTTPProvider
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorPDG
,
HTTPProvider.PDGResponse.getPDG()
public HTTPAPIImpl.PDGResponse makePDG(java.lang.String jsonString) throws java.io.IOException
HTTPProvider
makePDG(InputStream)
with input as
single JSON string.
makePDG
in interface HTTPProvider
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errorHTTPProvider.makePDG(InputStream)
public HTTPAPIImpl.RDGResponse makeRDG(java.io.InputStream jsonStream) throws java.io.IOException
HTTPProvider
RDG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makeRDG.
makeRDG
in interface HTTPProvider
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRDG
,
HTTPProvider.RDGResponse.getRDG()
public HTTPAPIImpl.RDGResponse makeRDG(java.lang.String jsonString) throws java.io.IOException
HTTPProvider
makeRDG(InputStream)
with input as
single JSON string.
makeRDG
in interface HTTPProvider
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errorHTTPProvider.makeRDG(InputStream)
public HTTPAPIImpl.RIGResponse makeRIG(java.io.InputStream jsonStream) throws java.io.IOException
HTTPClient
RIG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makeRIG.
makeRIG
in interface HTTPClient
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRIG
,
HTTPClient.RIGResponse.getRIG()
public HTTPAPIImpl.RIGResponse makeRIG(java.lang.String jsonString) throws java.io.IOException
HTTPClient
makeRIG(InputStream)
with input as
single JSON string.
makeRIG
in interface HTTPClient
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errorHTTPClient.makeRIG(InputStream)
public HTTPAPIImpl.RRGResponse makeRRG(java.io.InputStream jsonStream) throws java.io.IOException
HTTPProvider
RRG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makeRRG.
makeRRG
in interface HTTPProvider
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRRG
,
HTTPProvider.RRGResponse.getRRG()
public HTTPAPIImpl.RRGResponse makeRRG(java.lang.String jsonString) throws java.io.IOException
HTTPProvider
makeRRG(InputStream)
with input as
single JSON string.
makeRRG
in interface HTTPProvider
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errorHTTPProvider.makeRRG(InputStream)
public HTTPAPIImpl.RQGResponse makeRQG(java.io.InputStream jsonStream) throws java.io.IOException
HTTPClient
RQG
) from a JSON (JavaScript
Object Notation) specification. For the specification, see
http://sswap.info/api/makeRQG.
makeRQG
in interface HTTPClient
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRQG
,
HTTPClient.RQGResponse.getRQG()
public HTTPAPIImpl.RQGResponse makeRQG(java.lang.String jsonString) throws java.io.IOException
HTTPClient
makeRQG(InputStream)
with input as
single JSON string.
makeRQG
in interface HTTPClient
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errorHTTPClient.makeRQG(InputStream)
private <T extends SSWAPDocument> T makeAPI(java.net.URI apiURI, java.lang.Class<T> clazz, java.io.InputStream jsonStream) throws java.io.IOException
java.io.IOException
private <T extends SSWAPDocument> T setDocumentURI(T originalDoc, java.lang.Class<T> clazz) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |