|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface RouterModule.RoutingContext
| Method Summary | |
|---|---|
javax.ws.rs.core.MediaType |
getEffectiveAcceptableType()
Get the effective content type of the response calculated from the request Accept header values and @Consumes
value of the matched resource method. |
String |
getFinalMatchingGroup()
Get the final matching group of the last successful request URI routing pattern match result. |
List<MatchResult> |
getMatchedResults()
Get a read-only list of match results for matched
request URI routing patterns. |
Annotation[] |
getResponseMethodAnnotations()
Get the annotations on the method ultimately used to process the request. |
Type |
getResponseMethodType()
Get the response type of the method ultimately used to process the request. |
Object |
peekMatchedResource()
Peek the last resource object that successfully matched the request URI. |
MatchResult |
peekMatchResult()
Peek at the last successful request URI routing pattern match result. |
void |
pushLeftHandPath()
Add currently matched left-hand side part of request path to the list of matched paths returned by UriInfo.getMatchedURIs(). |
void |
pushMatchedResource(Object resource)
Push the resource that matched the request URI. |
void |
pushMatchResult(MatchResult matchResult)
Push the result of the successful request URI routing pattern match. |
void |
pushTemplate(UriTemplate template)
Push matched request URI routing pattern URI template. |
void |
setEffectiveAcceptableType(javax.ws.rs.core.MediaType type)
Set the effective content type of the response calculated from the request Accept header values and @Consumes
value of the matched resource method. |
void |
setResponseMethodAnnotations(Annotation[] annotations)
Set the annotations on the method ultimately used to process the request. |
void |
setResponseMethodType(Type responseType)
Set the response type of the method ultimately used to process the request. |
| Method Detail |
|---|
void pushMatchResult(MatchResult matchResult)
matchResult - successful request URI routing pattern
match result.void pushMatchedResource(Object resource)
resource - instance of the resource that matched the request URI.Object peekMatchedResource()
pushMatchedResource(java.lang.Object)MatchResult peekMatchResult()
match result.
void pushTemplate(UriTemplate template)
URI template.
template - URI template of the matched request URI routing pattern.String getFinalMatchingGroup()
match result. Also known as right-hand path.
List<MatchResult> getMatchedResults()
match results for matched
request URI routing patterns. Entries are ordered in reverse request URI
matching order, with the root request URI routing pattern match result
last.
void pushLeftHandPath()
UriInfo.getMatchedURIs().
Left-hand side request path is the request path excluding the suffix
part of the path matched by the final
matching group of the last successful request URI routing pattern.
@Nullable javax.ws.rs.core.MediaType getEffectiveAcceptableType()
Accept header values and @Consumes
value of the matched resource method. May return null if no
method was yet matched.
null if no
resource method was yet matched.
void setEffectiveAcceptableType(@Nonnull
javax.ws.rs.core.MediaType type)
throws NullPointerException
Accept header values and @Consumes
value of the matched resource method. The input value must not be
null otherwise a NullPointerException is thrown.
type - new effective accepted media type.
NullPointerException - in case the input parameter is null.
void setResponseMethodType(Type responseType)
throws NullPointerException
responseType -
NullPointerException - in case the input parameter is null.Type getResponseMethodType()
void setResponseMethodAnnotations(Annotation[] annotations)
throws NullPointerException
annotations -
NullPointerException - in case the input parameter is null.Annotation[] getResponseMethodAnnotations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||