net.officefloor.plugin.servlet.mapping
Class ServicerMapperImpl

java.lang.Object
  extended by net.officefloor.plugin.servlet.mapping.ServicerMapperImpl
All Implemented Interfaces:
ServicerMapper

public class ServicerMapperImpl
extends Object
implements ServicerMapper

ServicerMapper implementation.

Author:
Daniel Sagenschneider

Constructor Summary
ServicerMapperImpl(HttpServletServicer... servicers)
          Initiate.
 
Method Summary
 HttpServletServicer mapName(String name)
          Obtains the HttpServletServicer by its name.
 ServicerMapping mapPath(String path)
          Matches the best ServicerMapping for the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicerMapperImpl

public ServicerMapperImpl(HttpServletServicer... servicers)
Initiate.

Parameters:
servicers - HttpServletServicer instances for this ServicerMapper.
Throws:
javax.servlet.ServletException - If fails to create the mappings.
Method Detail

mapPath

public ServicerMapping mapPath(String path)
Description copied from interface: ServicerMapper
Matches the best ServicerMapping for the path.

Specified by:
mapPath in interface ServicerMapper
Parameters:
path - Path for mapping.
Returns:
Best ServicerMapping or null if no appropriate HttpServletServicer.

mapName

public HttpServletServicer mapName(String name)
Description copied from interface: ServicerMapper
Obtains the HttpServletServicer by its name.

Specified by:
mapName in interface ServicerMapper
Parameters:
name - Name of the HttpServletServicer.
Returns:
HttpServletServicer or null if no HttpServletServicer by name.


Copyright © 2005-2011. All Rights Reserved.