public class ControllerUtils extends Object
| 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 javax.ws.rs.core.MediaType |
getMediaType(javax.ws.rs.core.HttpHeaders httpHeaders) |
static Set<Class<?>> |
getMinimalModelClasses() |
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 javax.ws.rs.core.MediaType getMediaType(javax.ws.rs.core.HttpHeaders httpHeaders)
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–2017 JBoss by Red Hat. All rights reserved.