|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.server.http.HTTP
HTTP declares static methods that allow you to specify the paths on which GLUE should accept inbound HTTP messages. If a web server is not already running on a specified port, it is started automatically.
Field Summary |
Fields inherited from interface electric.util.log.ILoggingConstants |
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT |
Constructor Summary | |
HTTP()
|
Method Summary | |
static void |
addListener(IHTTPListener listener)
|
static int |
getDefaultBacklog()
|
static int |
getSessionTimeout()
Return the session timeout interval, in seconds. |
static void |
setDefaultBacklog(int backlog)
|
static void |
setMaxInboundKeepAlive(int max)
|
static void |
setMaxOutboundKeepAlive(int max)
|
static void |
setMaxThreads(int max)
|
static void |
setSessionTimeout(int seconds)
Set the session timeout interval, in seconds. |
static void |
shutdown()
Shut down all of the web servers that were started using startup(). |
static void |
shutdown(java.lang.String url)
|
static HTTPContext |
startup(java.lang.String url)
Start accepting inbound HTTP messages on the specified URL. |
static HTTPContext |
startup(java.lang.String url,
Context context)
Start accepting inbound HTTP messages on the specified URL. |
static HTTPContext |
startup(java.lang.String url,
java.lang.String root)
Start accepting inbound HTTP messages on the specified URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTTP()
Method Detail |
public static void addListener(IHTTPListener listener)
listener
- public static HTTPContext startup(java.lang.String url, Context context) throws java.io.IOException
url
- The URL.context
- can contain any of:
registryRoot The root from which to interpret target addresses.
docBase The document base for incoming HTTP GETs.
servletName The name to associate with the GLUE servlet.
authMethod The HTTP authentication method (basic/digest)
realm The realm to use for authentication. This should be an
IRealm object and not the name of a realm.
java.io.IOException
- If the web server could not be started.public static HTTPContext startup(java.lang.String url) throws java.io.IOException
url
- The URL.
java.io.IOException
- If the web server could not be started.public static HTTPContext startup(java.lang.String url, java.lang.String root) throws java.io.IOException
url
- The URL.root
- The root from which to interpret target addresses.
java.io.IOException
- If the web server could not be started.public static void shutdown(java.lang.String url) throws java.io.IOException, java.net.MalformedURLException
url
-
java.io.IOException
java.net.MalformedURLException
public static void shutdown()
public static void setDefaultBacklog(int backlog)
backlog
- public static int getDefaultBacklog()
public static void setMaxOutboundKeepAlive(int max)
max
- public static void setMaxInboundKeepAlive(int max)
max
- public static void setMaxThreads(int max)
max
- public static void setSessionTimeout(int seconds)
seconds
- The timeout.public static int getSessionTimeout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |