org.apache.ws.resource.webapp
Class WsrfServer

java.lang.Object
  extended byorg.apache.ws.resource.webapp.WsrfServer

public class WsrfServer
extends java.lang.Object

A standalone WSRF server that uses Jetty as the HTTP server and servlet container and uses Axis as the SOAP engine.

Author:
Ian Springer

Field Summary
protected static org.apache.commons.cli.Options CMD_LINE_OPTIONS
          DOCUMENT_ME
 
Constructor Summary
WsrfServer(java.io.File webappPath)
          Creates a WsrfServer for running the specified web application.
 
Method Summary
 int getPort()
          Gets the HTTP listen port.
 java.io.File getWebappPath()
          Gets the webapp path.
static void main(java.lang.String[] args)
          A main method for starting a server instance.
 void setPort(int port)
          Sets the HTTP listen port.
 void start()
          Starts the server.
 void stop()
          Stops the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_LINE_OPTIONS

protected static final org.apache.commons.cli.Options CMD_LINE_OPTIONS
DOCUMENT_ME

Constructor Detail

WsrfServer

public WsrfServer(java.io.File webappPath)
           throws java.io.IOException
Creates a WsrfServer for running the specified web application.

Parameters:
webappPath - the path to an Apache-WSRF-based webapp (directory or warfile)
Throws:
java.io.IOException - if the webapp path is invalid
Method Detail

setPort

public void setPort(int port)
Sets the HTTP listen port.

Parameters:
port - the port number

getPort

public int getPort()
Gets the HTTP listen port.


getWebappPath

public java.io.File getWebappPath()
Gets the webapp path.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
A main method for starting a server instance. Usage: org.apache.ws.resource.webapp.WsrfServer [-p port] webappPath

Parameters:
args - command-line arguments
Throws:
java.lang.Exception - on any error

start

public void start()
           throws org.mortbay.util.MultiException
Starts the server.

Throws:
org.mortbay.util.MultiException

stop

public void stop()
          throws java.lang.InterruptedException
Stops the server.

Throws:
java.lang.InterruptedException


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.