public class RestUtils extends Object
Modifier and Type | Method and Description |
---|---|
String |
get(String id,
String id2,
String id3,
String function)
Perform HTTP Get REST request.
|
String |
get(String userId,
String password,
String id,
String id2,
String id3,
String function)
Perform HTTP Get REST request.
|
static RestUtils |
getInstance() |
static Properties |
getProperties(Props inProps) |
static Props |
getProps(Properties properties) |
static String |
marshal(FortRequest request)
Marshall the request into an XML String.
|
String |
post(String szInput,
String function)
Perform an HTTP Post REST operation.
|
String |
post(String userId,
String password,
String szInput,
String function)
Perform an HTTP Post REST operation.
|
static FortResponse |
unmarshall(String szResponse)
Unmarshall the XML response into its associated Java objects.
|
public static RestUtils getInstance()
public static String marshal(FortRequest request) throws RestException
request
- RestException
public static FortResponse unmarshall(String szResponse) throws RestException
szResponse
- RestException
public String get(String userId, String password, String id, String id2, String id3, String function) throws RestException
userId
- password
- id
- id2
- id3
- function
- RestException
public String get(String id, String id2, String id3, String function) throws RestException
id
- id2
- id3
- function
- RestException
public String post(String userId, String password, String szInput, String function) throws RestException
userId
- password
- szInput
- function
- RestException
public String post(String szInput, String function) throws RestException
szInput
- function
- RestException
public static Properties getProperties(Props inProps)
inProps
- public static Props getProps(Properties properties)
properties
- Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621