public class ControllerUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static javax.ws.rs.core.Variant |
defaultVariant |
| Constructor and Description |
|---|
ControllerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
createCorrectVariant(String responseObj,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.Response.Status status) |
static String |
getContentType(javax.ws.rs.core.HttpHeaders headers) |
static org.kie.server.api.marshalling.MarshallingFormat |
getFormat(String descriptor) |
static Set<Class<?>> |
getModelClasses() |
static String |
getPassword() |
static String |
getUser() |
static javax.ws.rs.core.Variant |
getVariant(javax.ws.rs.core.HttpHeaders headers) |
static String |
marshal(String marshallingFormat,
Object entity) |
static <T> T |
unmarshal(String data,
String marshallingFormat,
Class<T> unmarshalType) |
public static javax.ws.rs.core.Response createCorrectVariant(String responseObj, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.Response.Status status)
public static javax.ws.rs.core.Variant getVariant(javax.ws.rs.core.HttpHeaders headers)
public static String getContentType(javax.ws.rs.core.HttpHeaders headers)
public static org.kie.server.api.marshalling.MarshallingFormat getFormat(String descriptor)
public static <T> T unmarshal(String data, String marshallingFormat, Class<T> unmarshalType)
public static String getUser()
public static String getPassword()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.