public static class AbstractRestPublishService.MappingInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractRestPublishService.MappingInfo.HttpMethod |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
consumedtypes
The accepted media types for consumption.
|
protected AbstractRestPublishService.MappingInfo.HttpMethod |
httpmethod
The http method.
|
protected java.lang.reflect.Method |
method
The target method.
|
protected java.lang.String |
path
The url path.
|
protected java.util.List<java.lang.String> |
producedtypes
The accepted media types for the response.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
addConsumedMediaType(java.lang.String type) |
void |
addProducedMediaType(java.lang.String type) |
java.util.List<java.lang.String> |
getConsumedMediaTypes()
Get the consumedmediatypes.
|
AbstractRestPublishService.MappingInfo.HttpMethod |
getHttpMethod()
Get the httpMethod.
|
java.lang.reflect.Method |
getMethod()
Get the method.
|
java.lang.String |
getPath()
Get the path.
|
java.util.List<java.lang.String> |
getProducedMediaTypes()
Get the respmediatypes.
|
boolean |
isEmpty()
Test if has no settings.
|
void |
setConsumedMediaTypes(java.util.List<java.lang.String> respmediatypes)
Set the respmediatypes.
|
void |
setHttpMethod(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod)
Set the httpMethod.
|
void |
setMethod(java.lang.reflect.Method method)
Set the method.
|
void |
setPath(java.lang.String path)
Set the path.
|
void |
setProducedMediaTypes(java.util.List<java.lang.String> respmediatypes)
Set the response mediatypes.
|
protected AbstractRestPublishService.MappingInfo.HttpMethod httpmethod
protected java.lang.reflect.Method method
protected java.lang.String path
protected java.util.List<java.lang.String> producedtypes
protected java.util.List<java.lang.String> consumedtypes
public MappingInfo()
public MappingInfo(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod, java.lang.reflect.Method method, java.lang.String path)
public AbstractRestPublishService.MappingInfo.HttpMethod getHttpMethod()
public void setHttpMethod(AbstractRestPublishService.MappingInfo.HttpMethod httpMethod)
httpMethod
- The httpMethod to setpublic java.lang.reflect.Method getMethod()
public void setMethod(java.lang.reflect.Method method)
method
- The method to setpublic java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path to setpublic java.util.List<java.lang.String> getProducedMediaTypes()
public void setProducedMediaTypes(java.util.List<java.lang.String> respmediatypes)
respmediatypes
- The response mediatypes to setpublic void addProducedMediaType(java.lang.String type)
public java.util.List<java.lang.String> getConsumedMediaTypes()
public void setConsumedMediaTypes(java.util.List<java.lang.String> respmediatypes)
consumedtypes
- The consumedtypes to setpublic void addConsumedMediaType(java.lang.String type)
public boolean isEmpty()