Package se.fortnox.reactivewizard.jaxrs
Class JaxRsMeta
java.lang.Object
se.fortnox.reactivewizard.jaxrs.JaxRsMeta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconcatPaths(javax.ws.rs.Path path1, javax.ws.rs.Path path2) Concatenate paths.javax.ws.rs.Consumesio.netty.handler.codec.http.HttpMethodgetJaxRsClass(Class<?> cls) Finds the JAX-RS class of a class, which may be the same class or an interface that it implements.static javax.ws.rs.PathReturn the path.voidsetMethod(io.netty.handler.codec.http.HttpMethod method)
-
Constructor Details
-
JaxRsMeta
-
JaxRsMeta
-
-
Method Details
-
getPath
Return the path.- Parameters:
cls- the class- Returns:
- the path
-
concatPaths
Concatenate paths.- Parameters:
path1- the first pathpath2- 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
-
getConsumes
public javax.ws.rs.Consumes getConsumes() -
getFullPath
-
getJaxRsClass
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.
-