Class JaxRsMeta

java.lang.Object
se.fortnox.reactivewizard.jaxrs.JaxRsMeta

public class JaxRsMeta extends Object
  • Constructor Details

    • JaxRsMeta

      public JaxRsMeta(Method method)
    • JaxRsMeta

      public JaxRsMeta(Method method, javax.ws.rs.Path classPath)
  • Method Details

    • getPath

      public static javax.ws.rs.Path getPath(Class<? extends Object> cls)
      Return the path.
      Parameters:
      cls - the class
      Returns:
      the path
    • concatPaths

      public static String concatPaths(javax.ws.rs.Path path1, javax.ws.rs.Path path2)
      Concatenate paths.
      Parameters:
      path1 - the first path
      path2 - the second path
      Returns:
      the concatenated path
    • getHttpMethod

      public io.netty.handler.codec.http.HttpMethod getHttpMethod()
    • setMethod

      public void setMethod(io.netty.handler.codec.http.HttpMethod method)
    • getProduces

      public String getProduces()
    • getConsumes

      public javax.ws.rs.Consumes getConsumes()
    • getFullPath

      public String getFullPath()
    • getJaxRsClass

      public static Optional<Class<?>> getJaxRsClass(Class<?> cls)
      Finds the JAX-RS class of a class, which may be the same class or an interface that it implements.
      Parameters:
      cls - is a class that might be a JaxRs resource
      Returns:
      the JaxRs-annotated class, which might be the sent in class, or an interface implemented by it.