Package cloud.piranha.webapp.impl
Class DefaultWebApplicationRequestMapping
- java.lang.Object
-
- cloud.piranha.webapp.impl.DefaultWebApplicationRequestMapping
-
- All Implemented Interfaces:
WebApplicationRequestMapping
public class DefaultWebApplicationRequestMapping extends Object implements WebApplicationRequestMapping
The default WebApplicationRequestMapping.- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description DefaultWebApplicationRequestMapping(String mapping)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(String mapping)
Set the mapping.
-
-
-
Constructor Detail
-
DefaultWebApplicationRequestMapping
public DefaultWebApplicationRequestMapping(String mapping)
Constructor.- Parameters:
mapping
- the mapping.
-
-
Method Detail
-
getPath
public 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(String mapping)
Set the mapping.- Parameters:
mapping
- the mapping.
-
-