Class RestServiceUtil


  • public class RestServiceUtil
    extends Object
    Author:
    mederly (only copied existing code)
    • Constructor Detail

      • RestServiceUtil

        public RestServiceUtil()
    • Method Detail

      • handleExceptionNoLog

        public static javax.ws.rs.core.Response handleExceptionNoLog​(OperationResult result,
                                                                     Throwable t)
      • createResponse

        public static javax.ws.rs.core.Response createResponse​(javax.ws.rs.core.Response.Status statusCode,
                                                               OperationResult result)
      • createResponse

        public static <T> javax.ws.rs.core.Response createResponse​(javax.ws.rs.core.Response.Status statusCode,
                                                                   T body,
                                                                   OperationResult result)
      • createResponse

        public static <T> javax.ws.rs.core.Response createResponse​(javax.ws.rs.core.Response.Status statusCode,
                                                                   T body,
                                                                   OperationResult result,
                                                                   boolean sendOriginObjectIfNotSuccess)
      • createResponse

        public static javax.ws.rs.core.Response createResponse​(javax.ws.rs.core.Response.Status statusCode,
                                                               URI location,
                                                               OperationResult result)
      • createErrorResponseBuilder

        public static javax.ws.rs.core.Response.ResponseBuilder createErrorResponseBuilder​(OperationResult result,
                                                                                           Throwable t)
      • createErrorResponseBuilder

        public static javax.ws.rs.core.Response.ResponseBuilder createErrorResponseBuilder​(javax.ws.rs.core.Response.Status status,
                                                                                           OperationResult result)
      • createErrorResponseBuilder

        public static javax.ws.rs.core.Response.ResponseBuilder createErrorResponseBuilder​(javax.ws.rs.core.Response.Status status,
                                                                                           OperationResultType message)
      • getOptions

        public static ModelExecuteOptions getOptions​(javax.ws.rs.core.UriInfo uriInfo)
      • initRequest

        public static Task initRequest​(org.apache.cxf.jaxrs.ext.MessageContext mc)
      • initRequest

        public static Task initRequest​(TaskManager taskManager)
      • finishRequest

        public static void finishRequest​(Task task,
                                         SecurityHelper securityHelper)
      • createAbortMessage

        public static void createAbortMessage​(javax.ws.rs.container.ContainerRequestContext requestCtx)
      • createSecurityQuestionAbortMessage

        public static void createSecurityQuestionAbortMessage​(javax.ws.rs.container.ContainerRequestContext requestCtx,
                                                              String secQChallenge)