public class HttpServerConnection
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
HttpServerConnection(HttpConnectionHandler handler,
int port) |
HttpServerConnection(HttpConnectionHandler handler,
int port,
boolean ssl) |
HttpServerConnection(HttpConnectionHandler handler,
int port,
boolean ssl,
SessionProperties properties)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the server
|
java.lang.String |
getHostIP()
Returns the host ip
|
int |
getPort()
Returns the port
|
boolean |
isSSL()
Returns if SSL is enanbled
|
void |
run() |
void |
setName(java.lang.String name)
Set the name of the thread
|
void |
start()
Starts the server thread
|
public HttpServerConnection(HttpConnectionHandler handler, int port, boolean ssl, SessionProperties properties) throws java.io.IOException
handler
- The handler for incoming connectionsport
- The port to listen onssl
- If true
SSL is enabledproperties
- The configuration to usejava.io.IOException
- On failure to create the server socketpublic HttpServerConnection(HttpConnectionHandler handler, int port, boolean ssl) throws java.io.IOException
java.io.IOException
public HttpServerConnection(HttpConnectionHandler handler, int port) throws java.io.IOException
java.io.IOException
public void setName(java.lang.String name)
name
- The namepublic int getPort()
public java.lang.String getHostIP() throws java.net.UnknownHostException
java.net.UnknownHostException
public boolean isSSL()
true
if SSL is enabledpublic void start()
public void run()
run
in interface java.lang.Runnable
public void close()
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.