|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPClient
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 HTTPClient
, use HTTPAPI.getClient()
.
Note: Implementation may make a runtime network call to http://sswap.info/api to perform conversions.
RIG
,
RQG
,
HTTPProvider
,
HTTPAPI
Nested Class Summary | |
---|---|
static interface |
HTTPClient.RIGResponse
Access to get an RIG on success or a network response object
(via the superinterface) on failure. |
static interface |
HTTPClient.RQGResponse
Access to get an RQG on success or a network response object
(via the superinterface) on failure. |
Method Summary | |
---|---|
HTTPClient.RIGResponse |
makeRIG(java.io.InputStream jsonStream)
Make a Response Invocation Graph ( RIG ) from a JSON
(JavaScript Object Notation) specification. |
HTTPClient.RIGResponse |
makeRIG(java.lang.String jsonString)
Convenience method to makeRIG(InputStream) with input as
single JSON string. |
HTTPClient.RQGResponse |
makeRQG(java.io.InputStream jsonStream)
Make a Response Query Graph ( RQG ) from a JSON (JavaScript
Object Notation) specification. |
HTTPClient.RQGResponse |
makeRQG(java.lang.String jsonString)
Convenience method to makeRQG(InputStream) with input as
single JSON string. |
Method Detail |
---|
HTTPClient.RIGResponse makeRIG(java.io.InputStream jsonStream) throws java.io.IOException
RIG
) from a JSON
(JavaScript Object Notation) specification. For the specification, see
http://sswap.info/api/makeRIG.
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRIG
,
HTTPClient.RIGResponse.getRIG()
HTTPClient.RIGResponse makeRIG(java.lang.String jsonString) throws java.io.IOException
makeRIG(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 errormakeRIG(InputStream)
HTTPClient.RQGResponse makeRQG(java.io.InputStream jsonStream) throws java.io.IOException
RQG
) from a JSON (JavaScript
Object Notation) specification. For the specification, see
http://sswap.info/api/makeRQG.
jsonStream
- a stream, for example from a file, of JSON input
java.io.IOException
- on network or parsing errorRQG
,
HTTPClient.RQGResponse.getRQG()
HTTPClient.RQGResponse makeRQG(java.lang.String jsonString) throws java.io.IOException
makeRQG(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 errormakeRQG(InputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |