public class MsoUtil extends Object
Constructor and Description |
---|
MsoUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> String |
convertPojoToString(T t)
Convert pojo to string.
|
static void |
main(String[] args)
The main method.
|
static MsoResponseWrapper |
wrapResponse(org.glassfish.jersey.client.ClientResponse cres)
Wrap response.
|
static MsoResponseWrapper |
wrapResponse(RestObject<String> rs)
Wrap response.
|
static MsoResponseWrapper |
wrapResponse(String body,
int statusCode)
Wrap response.
|
public static MsoResponseWrapper wrapResponse(String body, int statusCode)
body
- the bodystatusCode
- the status codepublic static MsoResponseWrapper wrapResponse(org.glassfish.jersey.client.ClientResponse cres)
cres
- the crespublic static MsoResponseWrapper wrapResponse(RestObject<String> rs)
rs
- the rspublic static <T> String convertPojoToString(T t) throws com.fasterxml.jackson.core.JsonProcessingException
T
- the generic typet
- the tJsonProcessingException
- the json processing exceptionpublic static void main(String[] args)
args
- the argumentsCopyright © 2017. All rights reserved.