public class ServicerMappingImpl extends Object implements ServicerMapping
ServicerMapping
implementation.Constructor and Description |
---|
ServicerMappingImpl(HttpServletServicer servicer,
String servletPath,
String pathInfo,
String queryString,
Map<String,String[]> parameters)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
String |
getParameter(String name)
Obtains the parameter value as per the query string.
|
Map<String,String[]> |
getParameterMap()
Obtains the parameter map.
|
Enumeration<String> |
getParameterNames()
Obtains the names of the parameters.
|
String[] |
getParameterValues(String name)
Obtains the values for the parameter name.
|
String |
getPathInfo()
Obtains the remaining of the path after the
HttpServletServicer
path. |
String |
getQueryString()
Query string after the path.
|
HttpServletServicer |
getServicer()
Mapped
HttpServletServicer . |
String |
getServletPath()
Obtains the path segment that mapped to the
HttpServletServicer . |
public ServicerMappingImpl(HttpServletServicer servicer, String servletPath, String pathInfo, String queryString, Map<String,String[]> parameters)
servicer
- HttpServletServicer
.servletPath
- HttpServlet
Path.pathInfo
- Path info.queryString
- Query string.parameters
- Parameters.public HttpServletServicer getServicer()
ServicerMapping
HttpServletServicer
.getServicer
in interface ServicerMapping
HttpServletServicer
.public String getServletPath()
ServicerMapping
HttpServletServicer
.getServletPath
in interface ServicerMapping
HttpServlet
path.HttpServletRequest.getServletPath()
public String getPathInfo()
ServicerMapping
HttpServletServicer
path.getPathInfo
in interface ServicerMapping
null
if exact mapping.HttpServletRequest.getPathInfo()
public String getQueryString()
ServicerMapping
getQueryString
in interface ServicerMapping
null
if no query
string.public String getParameter(String name)
ServicerMapping
getParameter
in interface ServicerMapping
name
- Name of parameter.null
if parameter not on
query string.public Map<String,String[]> getParameterMap()
ServicerMapping
getParameterMap
in interface ServicerMapping
public Enumeration<String> getParameterNames()
ServicerMapping
getParameterNames
in interface ServicerMapping
public String[] getParameterValues(String name)
ServicerMapping
getParameterValues
in interface ServicerMapping
name
- Name of the parameter.Copyright © 2005–2016. All rights reserved.