Package si.mazi.rescu
Class RestMethodMetadata
java.lang.Object
si.mazi.rescu.RestMethodMetadata
- All Implemented Interfaces:
Serializable
public class RestMethodMetadata extends Object implements Serializable
- Author:
- Matija Mazi This is the metadata about a rest-enabled method. The metadata is read by reflection from the interface.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RestMethodMetadata(Type returnType, HttpMethod httpMethod, String baseUrl, String intfacePath, String methodPathTemplate, Class<? extends RuntimeException> exceptionType, String reqContentType, String resContentType, String methodName, Map<Class<? extends Annotation>,Annotation> methodAnnotationMap, Annotation[][] parameterAnnotations)Deprecated.Usecreate(Method, String, String)instead. -
Method Summary
Modifier and Type Method Description static RestMethodMetadatacreate(Method method, String baseUrl, String intfacePath)StringgetBaseUrl()Class<? extends RuntimeException>getExceptionType()HttpMethodgetHttpMethod()StringgetIntfacePath()Map<Class<? extends Annotation>,Annotation>getMethodAnnotationMap()StringgetMethodName()StringgetMethodPathTemplate()Annotation[][]getParameterAnnotations()StringgetReqContentType()StringgetResContentType()TypegetReturnType()
-
Constructor Details
-
RestMethodMetadata
@Deprecated public RestMethodMetadata(Type returnType, HttpMethod httpMethod, String baseUrl, String intfacePath, String methodPathTemplate, Class<? extends RuntimeException> exceptionType, String reqContentType, String resContentType, String methodName, Map<Class<? extends Annotation>,Annotation> methodAnnotationMap, Annotation[][] parameterAnnotations)Deprecated.Usecreate(Method, String, String)instead.
-
-
Method Details
-
create
-
getReturnType
- Returns:
- the returnType
-
getHttpMethod
- Returns:
- the httpMethod
-
getBaseUrl
- Returns:
- the baseUrl
-
getIntfacePath
- Returns:
- the intfacePath
-
getMethodPathTemplate
- Returns:
- the methodPathTemplate
-
getExceptionType
- Returns:
- the exceptionType
-
getReqContentType
- Returns:
- the contentType
-
getResContentType
-
getMethodName
- Returns:
- the methodName
-
getMethodAnnotationMap
- Returns:
- the methodAnnotationMap
-
getParameterAnnotations
- Returns:
- the parameterAnnotations
-