public class REST
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
REST.DELETE |
static class |
REST.GET |
static class |
REST.HEAD |
static class |
REST.PATCH |
static class |
REST.POST |
static class |
REST.PUT |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE_METHOD |
static java.lang.String |
GET_METHOD |
static java.lang.String |
HEAD_METHOD |
static java.lang.String |
PATCH_METHOD |
static java.lang.String |
POST_METHOD |
static java.lang.String |
PUT_METHOD |
static RESTImpl |
restImpl |
Constructor and Description |
---|
REST() |
Modifier and Type | Method and Description |
---|---|
static void |
EndServiceSession(java.lang.String serviceId)
End an existing named Service session with a specific web service.
This doesn't actually make any type of Connection or call to the web service. |
static Response |
request(java.lang.String serviceId,
java.lang.String requestMethod,
java.lang.String relativeURI,
java.lang.String headers,
java.lang.Object body) |
static Service |
StartServiceSession(java.lang.String serviceId,
java.lang.String baseURL)
Start a named Service session with a specific web service.
This doesn't actually make any type of Connection or call to the web service. |
static Service |
StartServiceSession(java.lang.String serviceId,
java.lang.String baseURL,
java.lang.String protocolVersion)
Start a named Service session with a specific web service.
This doesn't actually make any type of Connection or call to the web service. |
public static final java.lang.String GET_METHOD
public static final java.lang.String POST_METHOD
public static final java.lang.String DELETE_METHOD
public static final java.lang.String PUT_METHOD
public static final java.lang.String HEAD_METHOD
public static final java.lang.String PATCH_METHOD
public static RESTImpl restImpl
public static Service StartServiceSession(java.lang.String serviceId, java.lang.String baseURL) throws java.lang.IllegalArgumentException
serviceId
- - unique name of the new Service session.baseURL
- -- root URL used to interact with the service.java.lang.IllegalArgumentException
- if the serviceId is null or already exists.EndServiceSession(String)
,
Services.getService(String)
public static Service StartServiceSession(java.lang.String serviceId, java.lang.String baseURL, java.lang.String protocolVersion) throws java.lang.IllegalArgumentException
serviceId
- - unique name of the new Service session.baseURL
- -- root URL used to interact with the service.java.lang.IllegalArgumentException
- if the serviceId is null or already exists.EndServiceSession(String)
,
Services.getService(String)
public static void EndServiceSession(java.lang.String serviceId) throws java.lang.IllegalArgumentException
serviceId
- - unique name of the Service session.java.lang.IllegalArgumentException
- if the serviceId is null or does NOT exists.StartServiceSession(String, String)
public static Response request(java.lang.String serviceId, java.lang.String requestMethod, java.lang.String relativeURI, java.lang.String headers, java.lang.Object body)
Copyright © SAS Institute. All Rights Reserved.