Class ControllerUtils


  • public class ControllerUtils
    extends Object
    • Constructor Detail

      • ControllerUtils

        public ControllerUtils()
    • Method Detail

      • getModelClasses

        public static Set<Class<?>> getModelClasses()
      • createCorrectVariant

        public static javax.ws.rs.core.Response createCorrectVariant​(String responseObj,
                                                                     javax.ws.rs.core.HttpHeaders headers,
                                                                     javax.ws.rs.core.Response.Status status)
      • createCreatedVariant

        public static javax.ws.rs.core.Response createCreatedVariant​(String responseObj,
                                                                     javax.ws.rs.core.HttpHeaders headers,
                                                                     javax.ws.rs.core.UriBuilder builder)
      • getVariant

        public static javax.ws.rs.core.Variant getVariant​(javax.ws.rs.core.HttpHeaders headers)
      • getContentType

        public static String getContentType​(javax.ws.rs.core.HttpHeaders headers)
      • getMediaType

        public static javax.ws.rs.core.MediaType getMediaType​(javax.ws.rs.core.HttpHeaders httpHeaders)
      • getFormat

        public static org.kie.server.api.marshalling.MarshallingFormat getFormat​(String descriptor)
      • unmarshal

        public static <T> T unmarshal​(String data,
                                      String marshallingFormat,
                                      Class<T> unmarshalType)
      • getUser

        public static String getUser()
      • getPassword

        public static String getPassword()