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 <T> 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 <T> 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)
      • finishRequest

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

        public static javax.ws.rs.core.Response.ResponseBuilder createResultHeaders​(javax.ws.rs.core.Response.ResponseBuilder builder,
                                                                                    OperationResult result)
      • createAbortMessage

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

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