net.officefloor.plugin.servlet.mapping
Class ServicerMappingImpl

java.lang.Object
  extended by net.officefloor.plugin.servlet.mapping.ServicerMappingImpl
All Implemented Interfaces:
ServicerMapping

public class ServicerMappingImpl
extends Object
implements ServicerMapping

ServicerMapping implementation.

Author:
Daniel Sagenschneider

Constructor Summary
ServicerMappingImpl(HttpServletServicer servicer, String servletPath, String pathInfo, String queryString, Map<String,String[]> parameters)
          Initiate.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicerMappingImpl

public ServicerMappingImpl(HttpServletServicer servicer,
                           String servletPath,
                           String pathInfo,
                           String queryString,
                           Map<String,String[]> parameters)
Initiate.

Parameters:
servicer - HttpServletServicer.
servletPath - HttpServlet Path.
pathInfo - Path info.
queryString - Query string.
parameters - Parameters.
Method Detail

getServicer

public HttpServletServicer getServicer()
Description copied from interface: ServicerMapping
Mapped HttpServletServicer.

Specified by:
getServicer in interface ServicerMapping
Returns:
Mapped HttpServletServicer.

getServletPath

public String getServletPath()
Description copied from interface: ServicerMapping
Obtains the path segment that mapped to the HttpServletServicer.

Specified by:
getServletPath in interface ServicerMapping
Returns:
HttpServlet path.
See Also:
HttpServletRequest.getServletPath()

getPathInfo

public String getPathInfo()
Description copied from interface: ServicerMapping
Obtains the remaining of the path after the HttpServletServicer path.

Specified by:
getPathInfo in interface ServicerMapping
Returns:
Remaining path or null if exact mapping.
See Also:
HttpServletRequest.getPathInfo()

getQueryString

public String getQueryString()
Description copied from interface: ServicerMapping
Query string after the path.

Specified by:
getQueryString in interface ServicerMapping
Returns:
Query string after the path or null if no query string.

getParameter

public String getParameter(String name)
Description copied from interface: ServicerMapping
Obtains the parameter value as per the query string.

Specified by:
getParameter in interface ServicerMapping
Parameters:
name - Name of parameter.
Returns:
Value for the parameter or null if parameter not on query string.

getParameterMap

public Map<String,String[]> getParameterMap()
Description copied from interface: ServicerMapping
Obtains the parameter map.

Specified by:
getParameterMap in interface ServicerMapping
Returns:
Parameter map.

getParameterNames

public Enumeration<String> getParameterNames()
Description copied from interface: ServicerMapping
Obtains the names of the parameters.

Specified by:
getParameterNames in interface ServicerMapping
Returns:
Names of the parameters.

getParameterValues

public String[] getParameterValues(String name)
Description copied from interface: ServicerMapping
Obtains the values for the parameter name.

Specified by:
getParameterValues in interface ServicerMapping
Parameters:
name - Name of the parameter.
Returns:
Values for the parameter.


Copyright © 2005-2011. All Rights Reserved.