se.datadosen.net
Class JettyHttpServer

java.lang.Object
  extended by se.datadosen.net.JettyHttpServer
Direct Known Subclasses:
ShareBean

public class JettyHttpServer
extends java.lang.Object


Field Summary
protected  org.mortbay.http.SocketListener listener
           
static java.lang.String PING_SERVLET_URI
           
protected  org.mortbay.http.HttpServer server
           
 
Constructor Summary
JettyHttpServer()
           
 
Method Summary
 int getPort()
          getPort
 java.util.List getShares()
          getShares
 boolean isRunning()
          isRunning
 void setPort(int port)
          setPort
 void setShares(java.util.List shares)
          setShares
 void start()
          start
 void stop()
          stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PING_SERVLET_URI

public static final java.lang.String PING_SERVLET_URI
See Also:
Constant Field Values

server

protected org.mortbay.http.HttpServer server

listener

protected org.mortbay.http.SocketListener listener
Constructor Detail

JettyHttpServer

public JettyHttpServer()
Method Detail

setPort

public void setPort(int port)
setPort

Parameters:
port - int

getPort

public int getPort()
getPort

Returns:
int

setShares

public void setShares(java.util.List shares)
setShares

Parameters:
shares - List

getShares

public java.util.List getShares()
getShares

Returns:
List

start

public void start()
           throws java.lang.Exception
start

Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.InterruptedException
stop

Throws:
java.lang.InterruptedException

isRunning

public boolean isRunning()
isRunning

Returns:
boolean