public final class UriMapping extends Object
Mappings are based on (all optional) :
Default (all values set to null) mappings are allowed.
Modifier and Type | Method and Description |
---|---|
static UriMapping |
create(String mapping)
Creates a UriMapping instance based on the mapping definition given as parameter.
|
String |
getExtension()
Get the extension of this URI matching.
|
String |
getHost()
Get the host of this URI matching.
|
String |
getPath()
Get the path of this URI matching.
|
int |
getWeight()
The weight of this URI matching.
|
boolean |
matches(String schemeParam,
String hostParam,
String uriParam)
Check this matching rule against a request.
|
String |
toString() |
public static UriMapping create(String mapping)
Mapping is split in 3 parts :
mapping
- the mapping expression as stringConfigurationException
public boolean matches(String schemeParam, String hostParam, String uriParam)
schemeParam
- hostParam
- uriParam
- public int getWeight()
public String getExtension()
public String getPath()
public String getHost()
Copyright © 2008–2018. All rights reserved.