站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jaxrpc API Documentation 英文版文档

SimpleAxisServer (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.transport.http
Class SimpleAxisServer

java.lang.Object
  extended byorg.apache.axis.transport.http.SimpleAxisServer
All Implemented Interfaces:
Runnable

public class SimpleAxisServer
extends Object
implements Runnable

This is a simple implementation of an HTTP server for processing SOAP requests via Apache's xml-axis. This is not intended for production use. Its intended uses are for demos, debugging, and performance profiling.

Author:
Sam Ruby (ruby@us.ibm.com), Rob Jellinghaus (robj@unrealities.com)

Field Summary
static int sessionIndex
           
 
Constructor Summary
SimpleAxisServer()
           
 
Method Summary
protected  Session createSession(String cooky)
           
protected static AxisServer getAxisServer()
           
 boolean getDoThreads()
           
 ServerSocket getServerSocket()
          Obtain the serverSocket that that SimpleAxisServer is listening on.
protected  boolean isSessionUsed()
           
static void main(String[] args)
          Server process.
 void run()
          Accept requests from a given TCP port and send them through the Axis engine for processing.
 void setDoThreads(boolean value)
           
 void setServerSocket(ServerSocket serverSocket)
          Set the serverSocket this server should listen on.
 void start()
          Start this server as a NON-daemon.
 void start(boolean daemon)
          Start this server.
 void stop()
          Stop this server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionIndex

public static int sessionIndex
Constructor Detail

SimpleAxisServer

public SimpleAxisServer()
Method Detail

isSessionUsed

protected boolean isSessionUsed()

setDoThreads

public void setDoThreads(boolean value)

getDoThreads

public boolean getDoThreads()

createSession

protected Session createSession(String cooky)

getAxisServer

protected static AxisServer getAxisServer()

run

public void run()
Accept requests from a given TCP port and send them through the Axis engine for processing.

Specified by:
run in interface Runnable

getServerSocket

public ServerSocket getServerSocket()
Obtain the serverSocket that that SimpleAxisServer is listening on.


setServerSocket

public void setServerSocket(ServerSocket serverSocket)
Set the serverSocket this server should listen on. (note : changing this will not affect a running server, but if you stop() and then start() the server, the new socket will be used).


start

public void start(boolean daemon)
           throws Exception
Start this server.

Spawns a worker thread to listen for HTTP requests.

Parameters:
daemon - a boolean indicating if the thread should be a daemon.
Throws:
Exception

start

public void start()
           throws Exception
Start this server as a NON-daemon.

Throws:
Exception

stop

public void stop()
          throws Exception
Stop this server.

This will interrupt any pending accept().

Throws:
Exception

main

public static void main(String[] args)
Server process.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.