Package jadex.extension.rs.publish
Class AbstractRestPublishService.MappingInfo
- java.lang.Object
- 
- jadex.extension.rs.publish.AbstractRestPublishService.MappingInfo
 
- 
- Enclosing class:
- AbstractRestPublishService
 
 public static class AbstractRestPublishService.MappingInfo extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAbstractRestPublishService.MappingInfo.HttpMethod
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.List<java.lang.String>consumedtypesThe accepted media types for consumption.protected AbstractRestPublishService.MappingInfo.HttpMethodhttpmethodThe http method.protected java.lang.reflect.MethodmethodThe target method.protected java.lang.StringpathThe url path.protected java.util.List<java.lang.String>producedtypesThe accepted media types for the response.
 - 
Constructor SummaryConstructors Constructor Description MappingInfo()Create a new mapping info.MappingInfo(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod, java.lang.reflect.Method method, java.lang.String path)Create a new mapping info.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConsumedMediaType(java.lang.String type)voidaddProducedMediaType(java.lang.String type)java.util.List<java.lang.String>getConsumedMediaTypes()Get the consumedmediatypes.AbstractRestPublishService.MappingInfo.HttpMethodgetHttpMethod()Get the httpMethod.java.lang.reflect.MethodgetMethod()Get the method.java.lang.StringgetPath()Get the path.java.util.List<java.lang.String>getProducedMediaTypes()Get the respmediatypes.booleanisEmpty()Test if has no settings.voidsetConsumedMediaTypes(java.util.List<java.lang.String> respmediatypes)Set the respmediatypes.voidsetHttpMethod(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod)Set the httpMethod.voidsetMethod(java.lang.reflect.Method method)Set the method.voidsetPath(java.lang.String path)Set the path.voidsetProducedMediaTypes(java.util.List<java.lang.String> respmediatypes)Set the response mediatypes.
 
- 
- 
- 
Field Detail- 
httpmethodprotected AbstractRestPublishService.MappingInfo.HttpMethod httpmethod The http method.
 - 
methodprotected java.lang.reflect.Method method The target method.
 - 
pathprotected java.lang.String path The url path.
 - 
producedtypesprotected java.util.List<java.lang.String> producedtypes The accepted media types for the response.
 - 
consumedtypesprotected java.util.List<java.lang.String> consumedtypes The accepted media types for consumption.
 
- 
 - 
Constructor Detail- 
MappingInfopublic MappingInfo() Create a new mapping info.
 - 
MappingInfopublic MappingInfo(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod, java.lang.reflect.Method method, java.lang.String path) Create a new mapping info.
 
- 
 - 
Method Detail- 
getHttpMethodpublic AbstractRestPublishService.MappingInfo.HttpMethod getHttpMethod() Get the httpMethod.- Returns:
- The httpMethod
 
 - 
setHttpMethodpublic void setHttpMethod(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod) Set the httpMethod.- Parameters:
- httpMethod- The httpMethod to set
 
 - 
getMethodpublic java.lang.reflect.Method getMethod() Get the method.- Returns:
- The method
 
 - 
setMethodpublic void setMethod(java.lang.reflect.Method method) Set the method.- Parameters:
- method- The method to set
 
 - 
getPathpublic java.lang.String getPath() Get the path.- Returns:
- The path
 
 - 
setPathpublic void setPath(java.lang.String path) Set the path.- Parameters:
- path- The path to set
 
 - 
getProducedMediaTypespublic java.util.List<java.lang.String> getProducedMediaTypes() Get the respmediatypes.- Returns:
- The respmediatypes
 
 - 
setProducedMediaTypespublic void setProducedMediaTypes(java.util.List<java.lang.String> respmediatypes) Set the response mediatypes.- Parameters:
- respmediatypes- The response mediatypes to set
 
 - 
addProducedMediaTypepublic void addProducedMediaType(java.lang.String type) 
 - 
getConsumedMediaTypespublic java.util.List<java.lang.String> getConsumedMediaTypes() Get the consumedmediatypes.- Returns:
- The consumedtypes
 
 - 
setConsumedMediaTypespublic void setConsumedMediaTypes(java.util.List<java.lang.String> respmediatypes) Set the respmediatypes.- Parameters:
- consumedtypes- The consumedtypes to set
 
 - 
addConsumedMediaTypepublic void addConsumedMediaType(java.lang.String type) 
 - 
isEmptypublic boolean isEmpty() Test if has no settings.
 
- 
 
-