Class ModelProcessorUtil.Method

  • Enclosing class:
    ModelProcessorUtil

    public static class ModelProcessorUtil.Method
    extends java.lang.Object
    Method bean containing basic information about enhancing resource method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<javax.ws.rs.core.MediaType> consumes  
      private java.lang.String httpMethod  
      private Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector  
      private java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflectorClass  
      private java.lang.String path  
      private java.util.List<javax.ws.rs.core.MediaType> produces  
    • Constructor Summary

      Constructors 
      Constructor Description
      Method​(java.lang.String path, java.lang.String httpMethod, java.util.List<javax.ws.rs.core.MediaType> consumes, java.util.List<javax.ws.rs.core.MediaType> produces, java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflectorClass)
      Create new method instance.
      Method​(java.lang.String path, java.lang.String httpMethod, java.util.List<javax.ws.rs.core.MediaType> consumes, java.util.List<javax.ws.rs.core.MediaType> produces, Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
      Create new method instance.
      Method​(java.lang.String path, java.lang.String httpMethod, javax.ws.rs.core.MediaType consumes, javax.ws.rs.core.MediaType produces, java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflector)
      Create new method instance.
      Method​(java.lang.String path, java.lang.String httpMethod, javax.ws.rs.core.MediaType consumes, javax.ws.rs.core.MediaType produces, Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
      Create new method instance.
      Method​(java.lang.String httpMethod, java.util.List<javax.ws.rs.core.MediaType> consumes, java.util.List<javax.ws.rs.core.MediaType> produces, java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflector)
      Create new method instance.
      Method​(java.lang.String httpMethod, java.util.List<javax.ws.rs.core.MediaType> consumes, java.util.List<javax.ws.rs.core.MediaType> produces, Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
      Create new method instance.
      Method​(java.lang.String httpMethod, javax.ws.rs.core.MediaType consumes, javax.ws.rs.core.MediaType produces, java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflector)
      Create new method instance.
      Method​(java.lang.String httpMethod, javax.ws.rs.core.MediaType consumes, javax.ws.rs.core.MediaType produces, Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
      Create new method instance.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • httpMethod

        private final java.lang.String httpMethod
      • path

        private final java.lang.String path
      • consumes

        private final java.util.List<javax.ws.rs.core.MediaType> consumes
      • produces

        private final java.util.List<javax.ws.rs.core.MediaType> produces
      • inflectorClass

        private final java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflectorClass
      • inflector

        private final Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector
    • Constructor Detail

      • Method

        public Method​(java.lang.String path,
                      java.lang.String httpMethod,
                      javax.ws.rs.core.MediaType consumes,
                      javax.ws.rs.core.MediaType produces,
                      java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflector)
        Create new method instance.
        Parameters:
        path - relative path of the method.
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media type.
        produces - Produces media type.
        inflector - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String path,
                      java.lang.String httpMethod,
                      java.util.List<javax.ws.rs.core.MediaType> consumes,
                      java.util.List<javax.ws.rs.core.MediaType> produces,
                      java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflectorClass)
        Create new method instance.
        Parameters:
        path - relative path of the method.
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media types.
        produces - Produces media types.
        inflectorClass - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String httpMethod,
                      javax.ws.rs.core.MediaType consumes,
                      javax.ws.rs.core.MediaType produces,
                      java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflector)
        Create new method instance.
        Parameters:
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media type.
        produces - Produces media type.
        inflector - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String httpMethod,
                      java.util.List<javax.ws.rs.core.MediaType> consumes,
                      java.util.List<javax.ws.rs.core.MediaType> produces,
                      java.lang.Class<? extends Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response>> inflector)
        Create new method instance.
        Parameters:
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media types.
        produces - Produces media types.
        inflector - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String path,
                      java.lang.String httpMethod,
                      java.util.List<javax.ws.rs.core.MediaType> consumes,
                      java.util.List<javax.ws.rs.core.MediaType> produces,
                      Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
        Create new method instance.
        Parameters:
        path - relative path of the method.
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media types.
        produces - Produces media types.
        inflector - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String path,
                      java.lang.String httpMethod,
                      javax.ws.rs.core.MediaType consumes,
                      javax.ws.rs.core.MediaType produces,
                      Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
        Create new method instance.
        Parameters:
        path - relative path of the method.
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media type.
        produces - Produces media type.
        inflector - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String httpMethod,
                      javax.ws.rs.core.MediaType consumes,
                      javax.ws.rs.core.MediaType produces,
                      Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
        Create new method instance.
        Parameters:
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media type.
        produces - Produces media type.
        inflector - Inflector handling the resource method.
      • Method

        public Method​(java.lang.String httpMethod,
                      java.util.List<javax.ws.rs.core.MediaType> consumes,
                      java.util.List<javax.ws.rs.core.MediaType> produces,
                      Inflector<javax.ws.rs.container.ContainerRequestContext,​javax.ws.rs.core.Response> inflector)
        Create new method instance.
        Parameters:
        httpMethod - HTTP method (eg. GET, POST, OPTIONS).
        consumes - Consumed media types.
        produces - Produces media types.
        inflector - Inflector handling the resource method.