net.officefloor.plugin.servlet.host
Class ServletServerImpl

java.lang.Object
  extended by net.officefloor.plugin.servlet.host.ServletServerImpl
All Implemented Interfaces:
ServletServer

public class ServletServerImpl
extends Object
implements ServletServer

ServletServer implementation.

Author:
Daniel Sagenschneider

Constructor Summary
ServletServerImpl(String serverName, int serverPort, String contextPath, ResourceLocator resourceLocator, Logger logger)
          Initiate.
 
Method Summary
 String getContextPath()
          Obtains the context path for the Servlet application.
 Logger getLogger()
          Obtains the Logger for the Servlet application.
 ResourceLocator getResourceLocator()
          Obtains the ResourceLocator for the Servlet application.
 String getServerName()
          Obtains the name of the Server.
 int getServerPort()
          Obtains the port the Server is listening for a HttpRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletServerImpl

public ServletServerImpl(String serverName,
                         int serverPort,
                         String contextPath,
                         ResourceLocator resourceLocator,
                         Logger logger)
Initiate.

Parameters:
serverName - Server name.
serverPort - Server port.
contextPath - Context path.
resourceLocator - ResourceLocator.
logger - Logger.
Method Detail

getServerName

public String getServerName()
Description copied from interface: ServletServer
Obtains the name of the Server.

Specified by:
getServerName in interface ServletServer
Returns:
Server name.

getServerPort

public int getServerPort()
Description copied from interface: ServletServer
Obtains the port the Server is listening for a HttpRequest.

Specified by:
getServerPort in interface ServletServer
Returns:
Server port.

getContextPath

public String getContextPath()
Description copied from interface: ServletServer
Obtains the context path for the Servlet application.

Specified by:
getContextPath in interface ServletServer
Returns:
Context path for the Servlet application.

getResourceLocator

public ResourceLocator getResourceLocator()
Description copied from interface: ServletServer
Obtains the ResourceLocator for the Servlet application.

Specified by:
getResourceLocator in interface ServletServer
Returns:
ResourceLocator for the Servlet application.

getLogger

public Logger getLogger()
Description copied from interface: ServletServer
Obtains the Logger for the Servlet application.

Specified by:
getLogger in interface ServletServer
Returns:
Logger for the Servlet application.


Copyright © 2005-2011. All Rights Reserved.