public class RestInvocation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static List<Class<? extends Annotation>> |
PARAM_ANNOTATION_CLASSES |
Constructor and Description |
---|
RestInvocation(Map<Class<? extends Annotation>,Params> paramsMap,
List<Object> unannanotatedParams,
RestMethodMetadata methodMetadata,
String methodPath,
String invocationUrl,
String queryString,
String path,
RequestWriterResolver requestWriterResolver) |
Modifier and Type | Method and Description |
---|---|
static HashMap<Class<? extends Annotation>,Params> |
createEmptyParamsMap(Map<Class<? extends Annotation>,Params> defaultParamsMap) |
Map<String,String> |
getAllHttpHeaders()
Deprecated.
this method will be made package local very soon.
Use
getHttpHeadersFromParams() instead. |
String |
getBaseUrl() |
Map<String,String> |
getHttpHeadersFromParams() |
String |
getHttpMethod() |
String |
getInvocationUrl() |
RestMethodMetadata |
getMethodMetadata() |
String |
getMethodPath() |
Map<Class<? extends Annotation>,Params> |
getParamsMap() |
Object |
getParamValue(Class<? extends Annotation> paramAnnotation,
String paramName) |
String |
getPath() |
String |
getQueryString() |
String |
getReqContentType() |
String |
getRequestBody() |
List<Object> |
getUnannanotatedParams() |
protected static final List<Class<? extends Annotation>> PARAM_ANNOTATION_CLASSES
public RestInvocation(Map<Class<? extends Annotation>,Params> paramsMap, List<Object> unannanotatedParams, RestMethodMetadata methodMetadata, String methodPath, String invocationUrl, String queryString, String path, RequestWriterResolver requestWriterResolver)
public static HashMap<Class<? extends Annotation>,Params> createEmptyParamsMap(Map<Class<? extends Annotation>,Params> defaultParamsMap)
public String getRequestBody()
@Deprecated public Map<String,String> getAllHttpHeaders()
getHttpHeadersFromParams()
instead.public String getReqContentType()
public String getInvocationUrl()
public String getMethodPath()
public String getPath()
public String getBaseUrl()
public String getQueryString()
public String getHttpMethod()
public RestMethodMetadata getMethodMetadata()
public Object getParamValue(Class<? extends Annotation> paramAnnotation, String paramName)
paramAnnotation
- One of QueryParam
.class, PathParam
.class,
FormParam
.class, HeaderParam
.classparamName
- The name of the parameter, ie. the value of the value() element in the annotation.public Map<Class<? extends Annotation>,Params> getParamsMap()
Copyright © 2012–2016. All rights reserved.