net.sf.crispy.impl
Class MiniHttpServer

java.lang.Object
  extended bynet.sf.crispy.impl.MiniHttpServer
All Implemented Interfaces:
MiniServer

public class MiniHttpServer
extends java.lang.Object
implements MiniServer

This server is to set a web context and add servlets with mapping path.

Author:
Linke

Field Summary
static int DEFAULT_PORT
           
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
MiniHttpServer()
           
MiniHttpServer(int pvPort)
           
 
Method Summary
 void addService(java.lang.String pvServiceInterface, java.lang.String pvServiceObject)
          Add services to the server
 void addServlet(java.lang.String pvPath, java.lang.String pvServletClassName)
           
 void addServlet(java.lang.String pvPath, java.lang.String pvServletClassName, java.lang.String pvParam, java.lang.String pvParamValue)
           
 java.lang.String getContext()
           
 void setContext(java.lang.String pvContext)
           
 void start()
          Start the Server.
 void stop()
          Stop the Server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

MiniHttpServer

public MiniHttpServer()

MiniHttpServer

public MiniHttpServer(int pvPort)
Method Detail

addService

public void addService(java.lang.String pvServiceInterface,
                       java.lang.String pvServiceObject)
Description copied from interface: MiniServer
Add services to the server

Specified by:
addService in interface MiniServer
Parameters:
pvServiceInterface - Interface of the service.
pvServiceObject - Implementation of the service.

setContext

public void setContext(java.lang.String pvContext)

getContext

public java.lang.String getContext()

addServlet

public void addServlet(java.lang.String pvPath,
                       java.lang.String pvServletClassName)

addServlet

public void addServlet(java.lang.String pvPath,
                       java.lang.String pvServletClassName,
                       java.lang.String pvParam,
                       java.lang.String pvParamValue)

start

public void start()
Description copied from interface: MiniServer
Start the Server.

Specified by:
start in interface MiniServer

stop

public void stop()
Description copied from interface: MiniServer
Stop the Server.

Specified by:
stop in interface MiniServer


Copyright © 2005-2006 Crispy. All Rights Reserved.