net.sf.crispy.impl.xmlrpc
Class MiniXmlRpcServer

java.lang.Object
  extended byorg.apache.xmlrpc.WebServer
      extended bynet.sf.crispy.impl.xmlrpc.MiniXmlRpcServer
All Implemented Interfaces:
MiniServer, java.lang.Runnable

public class MiniXmlRpcServer
extends org.apache.xmlrpc.WebServer
implements MiniServer

Mini web server for XML-RPC to answer to XML-RPC client requests.

Author:
Linke Mini_WebServer

Field Summary
static int DEFAULT_PORT
           
protected static org.apache.commons.logging.Log log
           
protected  java.lang.Integer port
           
 
Fields inherited from class org.apache.xmlrpc.WebServer
accept, clength, conclose, conkeep, ctype, deny, doubleNewline, listener, newline, ok, runners, server, serverSocket, threadpool, wwwAuthenticate, xmlrpc
 
Constructor Summary
MiniXmlRpcServer()
           
MiniXmlRpcServer(int pvPort)
           
MiniXmlRpcServer(int pvPort, java.lang.String pvNullValue)
           
MiniXmlRpcServer(java.lang.String pvNullValue)
           
 
Method Summary
 void addService(java.lang.String pvServiceInterface, java.lang.Object pvServiceImpl)
           
 void addService(java.lang.String pvServiceInterface, java.lang.String pvServiceObject)
          Add services to the server
 java.lang.String getNullValue()
           
 java.lang.Integer getPort()
           
static void main(java.lang.String[] argv)
           
 void setNullValue(java.lang.String pvNullValue)
           
 void start()
          Start the Server.
 void stop()
          Stop the Server.
 
Methods inherited from class org.apache.xmlrpc.WebServer
acceptClient, addDefaultHandlers, addHandler, allowConnection, checkSocket, createServerSocket, denyClient, determinePort, getRunner, removeHandler, run, setParanoid, shutdown, toHTTPBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

log

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

port

protected java.lang.Integer port
Constructor Detail

MiniXmlRpcServer

public MiniXmlRpcServer()

MiniXmlRpcServer

public MiniXmlRpcServer(java.lang.String pvNullValue)

MiniXmlRpcServer

public MiniXmlRpcServer(int pvPort)

MiniXmlRpcServer

public MiniXmlRpcServer(int pvPort,
                        java.lang.String pvNullValue)
Method Detail

setNullValue

public final void setNullValue(java.lang.String pvNullValue)

getNullValue

public final java.lang.String getNullValue()

getPort

public java.lang.Integer getPort()

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.

addService

public void addService(java.lang.String pvServiceInterface,
                       java.lang.Object pvServiceImpl)

start

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

Specified by:
start in interface MiniServer
See Also:
WebServer.start()

stop

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

Specified by:
stop in interface MiniServer
See Also:
WebServer.shutdown()

main

public static void main(java.lang.String[] argv)


Copyright © 2005-2006 Crispy. All Rights Reserved.