|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPProvider
Access the HTTP API within the Java API. Useful for sending JSON data to the HTTP API to make SSWAP models such as:
To create an HTTPProvider
, use HTTPAPI.getProvider()
.
Note: Implementation may make a runtime network call to http://sswap.info/api to perform conversions.
PDG
,
RDG
,
RRG
,
HTTPClient
,
HTTPAPI
Nested Class Summary | |
---|---|
static interface |
HTTPProvider.PDGResponse
Exposes access to both a ready-to-use Provider Description Graph ( PDG ) on success or a network response object on failure. |
static interface |
HTTPProvider.RDGResponse
Exposes access to both a ready-to-use Resource Description Graph ( RDG ) on success or a
network response object on failure. |
static interface |
HTTPProvider.RRGResponse
Exposes access to both a ready-to-use Resource Response Graph ( RRG ) on success or a
network response object on failure. |
Method Summary | |
---|---|
HTTPProvider.PDGResponse |
makePDG(java.io.InputStream jsonStream)
Make a Provider Description Graph ( PDG ) from a JSON
(JavaScript Object Notation) specification. |
HTTPProvider.PDGResponse |
makePDG(java.lang.String jsonString)
Convenience method to makePDG(InputStream) with input as
single JSON string. |
HTTPProvider.RDGResponse |
makeRDG(java.io.InputStream jsonStream)
Make a Resource Description Graph ( RDG ) from a JSON
(JavaScript Object Notation) specification. |
HTTPProvider.RDGResponse |
makeRDG(java.lang.String jsonString)
Convenience method to makeRDG(InputStream) with input as
single JSON string. |
HTTPProvider.RRGResponse |
makeRRG(java.io.InputStream jsonStream)
Make a Resource Response Graph ( RRG ) from a JSON
(JavaScript Object Notation) specification. |
HTTPProvider.RRGResponse |
makeRRG(java.lang.String jsonString)
Convenience method to makeRRG(InputStream) with input as
single JSON string. |
Method Detail |
---|
HTTPProvider.PDGResponse makePDG(java.io.InputStream jsonStream) throws java.io.IOException
PDG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makePDG.
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorPDG
,
HTTPProvider.PDGResponse.getPDG()
HTTPProvider.PDGResponse makePDG(java.lang.String jsonString) throws java.io.IOException
makePDG(InputStream)
with input as
single JSON string.
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errormakePDG(InputStream)
HTTPProvider.RDGResponse makeRDG(java.io.InputStream jsonStream) throws java.io.IOException
RDG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makeRDG.
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRDG
,
HTTPProvider.RDGResponse.getRDG()
HTTPProvider.RDGResponse makeRDG(java.lang.String jsonString) throws java.io.IOException
makeRDG(InputStream)
with input as
single JSON string.
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errormakeRDG(InputStream)
HTTPProvider.RRGResponse makeRRG(java.io.InputStream jsonStream) throws java.io.IOException
RRG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makeRRG.
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRRG
,
HTTPProvider.RRGResponse.getRRG()
HTTPProvider.RRGResponse makeRRG(java.lang.String jsonString) throws java.io.IOException
makeRRG(InputStream)
with input as
single JSON string.
jsonString
- a string, for example from local variables and validated user
input, of JSON input
java.io.IOException
- on network or parsing errormakeRRG(InputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |