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 Summary
Nested Classes Modifier and Type Class Description static classAbstractRestPublishService.MappingInfo.HttpMethod
-
Field Summary
Fields 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 Summary
Constructors 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 Summary
All 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
-
httpmethod
protected AbstractRestPublishService.MappingInfo.HttpMethod httpmethod
The http method.
-
method
protected java.lang.reflect.Method method
The target method.
-
path
protected java.lang.String path
The url path.
-
producedtypes
protected java.util.List<java.lang.String> producedtypes
The accepted media types for the response.
-
consumedtypes
protected java.util.List<java.lang.String> consumedtypes
The accepted media types for consumption.
-
-
Constructor Detail
-
MappingInfo
public MappingInfo()
Create a new mapping info.
-
MappingInfo
public MappingInfo(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod, java.lang.reflect.Method method, java.lang.String path)
Create a new mapping info.
-
-
Method Detail
-
getHttpMethod
public AbstractRestPublishService.MappingInfo.HttpMethod getHttpMethod()
Get the httpMethod.- Returns:
- The httpMethod
-
setHttpMethod
public void setHttpMethod(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod)
Set the httpMethod.- Parameters:
httpMethod- The httpMethod to set
-
getMethod
public java.lang.reflect.Method getMethod()
Get the method.- Returns:
- The method
-
setMethod
public void setMethod(java.lang.reflect.Method method)
Set the method.- Parameters:
method- The method to set
-
getPath
public java.lang.String getPath()
Get the path.- Returns:
- The path
-
setPath
public void setPath(java.lang.String path)
Set the path.- Parameters:
path- The path to set
-
getProducedMediaTypes
public java.util.List<java.lang.String> getProducedMediaTypes()
Get the respmediatypes.- Returns:
- The respmediatypes
-
setProducedMediaTypes
public void setProducedMediaTypes(java.util.List<java.lang.String> respmediatypes)
Set the response mediatypes.- Parameters:
respmediatypes- The response mediatypes to set
-
addProducedMediaType
public void addProducedMediaType(java.lang.String type)
-
getConsumedMediaTypes
public java.util.List<java.lang.String> getConsumedMediaTypes()
Get the consumedmediatypes.- Returns:
- The consumedtypes
-
setConsumedMediaTypes
public void setConsumedMediaTypes(java.util.List<java.lang.String> respmediatypes)
Set the respmediatypes.- Parameters:
consumedtypes- The consumedtypes to set
-
addConsumedMediaType
public void addConsumedMediaType(java.lang.String type)
-
isEmpty
public boolean isEmpty()
Test if has no settings.
-
-