|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wicketstuff.rest.resource.MethodMappingInfo
public class MethodMappingInfo
This class contains the informations of a resource mapped method (i.e. a method annotated with
MethodMapping
). These informations are used at runtime to select the most suited method
to serve the current request.
Constructor Summary | |
---|---|
MethodMappingInfo(MethodMapping methodMapped,
Method method)
Class constructor. |
Method Summary | |
---|---|
HttpMethod |
getHttpMethod()
Gets the HTTP method. |
String |
getInputFormat()
Gets the mime input format. |
Method |
getMethod()
Gets the relative class method. |
List<MethodParameter> |
getMethodParameters()
Gets the method parameters. |
String |
getOutputFormat()
Gets the mime output format. |
Roles |
getRoles()
Gets the optional authorization roles for this method. |
List<AbstractURLSegment> |
getSegments()
Gets the segments of the mapped URL. |
int |
getSegmentsCount()
Gets the segments count. |
LinkedHashMap<String,String> |
populatePathParameters(PageParameters pageParameters)
This method is invoked to populate the path parameters found in the mapped URL with the values obtained from the current request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodMappingInfo(MethodMapping methodMapped, Method method)
methodMapped
- the method mappedmethod
- the resource's method mapped.Method Detail |
---|
public LinkedHashMap<String,String> populatePathParameters(PageParameters pageParameters)
pageParameters
- the current PageParameters.
public List<AbstractURLSegment> getSegments()
public int getSegmentsCount()
public HttpMethod getHttpMethod()
public Method getMethod()
public Roles getRoles()
public String getInputFormat()
getInputFormat
in interface IMimeTypeResolver
public String getOutputFormat()
getOutputFormat
in interface IMimeTypeResolver
public List<MethodParameter> getMethodParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |