public class RestMethodMetadata extends Object
| Constructor and Description |
|---|
RestMethodMetadata(OptionsCapable context,
Method method,
Annotation designator) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpMethod() |
boolean |
getIsCollection() |
List<ParamMetadata> |
getQueryParameters() |
Type |
getRequestPayload() |
Type |
getReturnPayload() |
protected String |
getTypeString(Type clazz) |
void |
setHttpMethod(String httpMethod) |
void |
setIsCollection(boolean isCollection) |
void |
setQueryParameters(List<ParamMetadata> queryParameters) |
void |
setRequestPayload(Type requestPayload) |
void |
setReturnPayload(Type returnPayload) |
org.codehaus.jettison.json.JSONObject |
toJson()
Build and return a JSON object representing the metadata for the resource method
|
String |
toString() |
public RestMethodMetadata(OptionsCapable context, Method method, Annotation designator)
public String getHttpMethod()
public void setHttpMethod(String httpMethod)
public List<ParamMetadata> getQueryParameters()
public void setQueryParameters(List<ParamMetadata> queryParameters)
public Type getRequestPayload()
public void setRequestPayload(Type requestPayload)
public Type getReturnPayload()
public void setReturnPayload(Type returnPayload)
public boolean getIsCollection()
public void setIsCollection(boolean isCollection)
public org.codehaus.jettison.json.JSONObject toJson()
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionCopyright © 2017. All rights reserved.