public class ParamSegment extends AbstractURLSegment
StringValue
subtype that represents a mounted segment containing a parameter's value (for
example '/{id}/').REGEXP_BODY, REGEXP_DECLARATION, SEGMENT_PARAMETER
Modifier and Type | Method and Description |
---|---|
int |
calculateScore(String actualSegment)
This method checks if a given string is compatible with the current segment.
|
String |
getParamName() |
protected org.apache.wicket.util.parse.metapattern.MetaPattern |
loadMetaPattern()
Method invoked to load the MetaPattern for the current segment.
|
void |
populatePathVariables(Map<String,String> variables,
String segment)
With this method every segment contributes to extract path parameters from the current
request URL.
|
getActualSegment, getMetaPattern, getSegmentMatrixParameters, newSegment
afterFirst, afterLast, beforeFirst, beforeLast, equals, hashCode, isEmpty, isNull, repeat, repeat, replaceAll, to, toBoolean, toBoolean, toBooleanObject, toChar, toChar, toCharacter, toDouble, toDouble, toDoubleObject, toDuration, toDuration, toEnum, toEnum, toEnum, toInt, toInt, toInteger, toLong, toLong, toLongObject, toOptional, toOptionalBoolean, toOptionalCharacter, toOptionalDouble, toOptionalDuration, toOptionalEnum, toOptionalInteger, toOptionalLong, toOptionalString, toOptionalTime, toString, toString, toTime, toTime, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
public int calculateScore(String actualSegment)
AbstractURLSegment
calculateScore
in class AbstractURLSegment
protected org.apache.wicket.util.parse.metapattern.MetaPattern loadMetaPattern()
AbstractURLSegment
loadMetaPattern
in class AbstractURLSegment
public void populatePathVariables(Map<String,String> variables, String segment)
AbstractURLSegment
populatePathVariables
in class AbstractURLSegment
variables
- the Map object containing the extracted parameters.segment
- the value of the current segment.public String getParamName()
Copyright © 2015. All rights reserved.