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 class
AbstractRestPublishService.MappingInfo.HttpMethod
-
Field Summary
Fields Modifier and Type Field Description 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.
-
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 java.util.List<java.lang.String>
getConsumedMediaTypes()
Get the consumed media types.AbstractRestPublishService.MappingInfo.HttpMethod
getHttpMethod()
Get the httpMethod.java.lang.reflect.Method
getMethod()
Get the method.java.util.List<java.lang.String>
getParameterNames()
Get the declared parameter names (via annotation ParameterInfo).java.lang.String
getPath()
Get the path.java.util.List<java.lang.String>
getProducedMediaTypes()
Get the produced media types.boolean
isEmpty()
Test if has no settings.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.
-
-
-
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.
-
-
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
-
isEmpty
public boolean isEmpty()
Test if has no settings.
-
getParameterNames
public java.util.List<java.lang.String> getParameterNames()
Get the declared parameter names (via annotation ParameterInfo).- Returns:
- The parameter names.
-
getConsumedMediaTypes
public java.util.List<java.lang.String> getConsumedMediaTypes()
Get the consumed media types.- Returns:
- The types.
-
getProducedMediaTypes
public java.util.List<java.lang.String> getProducedMediaTypes()
Get the produced media types.- Returns:
- The types.
-
-