Module cloud.piranha.webapp.impl
Package cloud.piranha.webapp.impl
Class DefaultWebApplicationRequestMapping
java.lang.Object
cloud.piranha.webapp.impl.DefaultWebApplicationRequestMapping
- All Implemented Interfaces:
WebApplicationRequestMapping
public class DefaultWebApplicationRequestMapping extends java.lang.Object implements WebApplicationRequestMapping
The default WebApplicationRequestMapping.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
Constructors Constructor Description DefaultWebApplicationRequestMapping(java.lang.String mapping)
Constructor. -
Method Summary
Modifier and Type Method Description java.lang.String
getPath()
Get the mapping.boolean
isExact()
Is this an exact match.boolean
isExtension()
Is this an extension match.void
setExact(boolean exact)
Set the exact flag.void
setExtension(boolean extension)
Set the extension flag.void
setMapping(java.lang.String mapping)
Set the mapping.
-
Constructor Details
-
DefaultWebApplicationRequestMapping
public DefaultWebApplicationRequestMapping(java.lang.String mapping)Constructor.- Parameters:
mapping
- the mapping.
-
-
Method Details
-
getPath
public java.lang.String getPath()Get the mapping.- Specified by:
getPath
in interfaceWebApplicationRequestMapping
- Returns:
- the mapping.
-
isExact
public boolean isExact()Is this an exact match.- Specified by:
isExact
in interfaceWebApplicationRequestMapping
- Returns:
- true it it is, false otherwise.
-
isExtension
public boolean isExtension()Is this an extension match.- Specified by:
isExtension
in interfaceWebApplicationRequestMapping
- Returns:
- true if it is, false otherwise.
-
setExact
public void setExact(boolean exact)Set the exact flag.- Parameters:
exact
- the exact flag.
-
setExtension
public void setExtension(boolean extension)Set the extension flag.- Parameters:
extension
- the extension flag.
-
setMapping
public void setMapping(java.lang.String mapping)Set the mapping.- Parameters:
mapping
- the mapping.
-