electric.server.http
Class HTTP

java.lang.Object
  extended byelectric.server.http.HTTP
All Implemented Interfaces:
IGLUEContextConstants, ILoggingConstants

public final class HTTP
extends java.lang.Object
implements IGLUEContextConstants, ILoggingConstants

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.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.glue.IGLUEContextConstants
ACTIVATION, APPLICATION, ATTACHMENT_STYLE, AUTH_METHOD, AUTH_PASSWORD, AUTH_SESSION_STATE, AUTH_USER, AUTHENTICATE, CLASS_LOADERS, CLASS_NAME, CLIENT_ID, CLIENT_SOCKET_READ_TIMEOUT, CONSTRUCTOR, CONTENT_TYPE, COOKIE_LISTENER, DATA_DIRECTORY, DATA_HANDLER, DATABASE, DATABASE_PERSISTENCE, DELETE, DESCRIPTION, DIME, DOC_BASE, DOCUMENT, DYNAMIC_OPERATIONS, ENCODED, ENDPOINT, FACTORY, FOLLOW_REDIRECTS, FORCE_ATTACHMENT_STYLE, FORWARD_INTERMEDIARY, GUARD, HTTP_REGISTRY_ROOT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_SERVLET_CONFIG, INBOUND_SOAP_REQUEST_INTERCEPTOR, INBOUND_SOAP_RESPONSE_INTERCEPTOR, INSTRUMENTATION_LISTENER, INSTRUMENTOR, INTERFACE, INVOCATION_LISTENER, JNDI_PROPERTIES, KEEP_ALIVE, LAZY, LITERAL, LOCAL_ADDRESS, MESSAGE_NAME, METHOD, MIME, NAMESPACE, NET_EVENT_REAPER_CYCLE, NET_EVENT_REAPER_EXPIRY_PERIOD, NET_EVENT_RETRY_PERIOD, OUTBOUND_SOAP_REQUEST_INTERCEPTOR, OUTBOUND_SOAP_RESPONSE_INTERCEPTOR, PERSISTENCE_TYPE, PRIORITY, PROXY_HOST, PROXY_PASSWORD, PROXY_PORT, PROXY_USER, PUBLISH, QUERY_STRING, REALM, REGISTRY_ROOT, RESPONSE_UNREFED_ATTACHMENTS, RETURN_NAME, ROLE, RP_NAMESPACE, RPC, SERVICE, SERVICE_CONTEXT, SERVLET_NAME, SERVLET_PATH, SIGNATURE, SMART_CONNECTIONS, SOAP_ACTION, SOAP_ENCODING_STYLE, SOAP_PERSONALITY, SOAP_REQUEST, SOAP_VERSION, SSL_KEY_MANAGER, SSL_TRUST_MANAGER, STYLE, TARGET_NAMESPACE, TRANSACTION, TRANSPORT_SOURCE, UNREFED_ATTACHMENTS, USE, WSDL_NAME, WSDL_PERSONALITY, WSS_CONTEXT, XML_ENCODING, XML_INCLUDE, XML_PERSISTENCE
 
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

HTTP

public HTTP()
Method Detail

addListener

public static void addListener(IHTTPListener listener)
Parameters:
listener -

startup

public static HTTPContext startup(java.lang.String url,
                                  Context context)
                           throws java.io.IOException
Start accepting inbound HTTP messages on the specified URL. If a web server is not already running on the specified port, start one automatically. Target addresses of inbound SOAP messages are interpreted relative to the specified root in the local registry.

Parameters:
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.
Returns:
The HTTP context that will receive the inbound requests.
Throws:
java.io.IOException - If the web server could not be started.

startup

public static HTTPContext startup(java.lang.String url)
                           throws java.io.IOException
Start accepting inbound HTTP messages on the specified URL. If a web server is not already running on the specified port, start one automatically. Target addresses of inbound SOAP messages are interpreted relative to the root node of the local registry.

Parameters:
url - The URL.
Returns:
The HTTP context that will receive the inbound requests.
Throws:
java.io.IOException - If the web server could not be started.

startup

public static HTTPContext startup(java.lang.String url,
                                  java.lang.String root)
                           throws java.io.IOException
Start accepting inbound HTTP messages on the specified URL. If a web server is not already running on the specified port, start one automatically. Target addresses of inbound SOAP messages are interpreted relative to the specified root in the local registry.

Parameters:
url - The URL.
root - The root from which to interpret target addresses.
Returns:
The HTTP context that will receive the inbound requests.
Throws:
java.io.IOException - If the web server could not be started.

shutdown

public static void shutdown(java.lang.String url)
                     throws java.io.IOException,
                            java.net.MalformedURLException
Parameters:
url -
Throws:
java.io.IOException
java.net.MalformedURLException

shutdown

public static void shutdown()
Shut down all of the web servers that were started using startup().


setDefaultBacklog

public static void setDefaultBacklog(int backlog)
Parameters:
backlog -

getDefaultBacklog

public static int getDefaultBacklog()

setMaxOutboundKeepAlive

public static void setMaxOutboundKeepAlive(int max)
Parameters:
max -

setMaxInboundKeepAlive

public static void setMaxInboundKeepAlive(int max)
Parameters:
max -

setMaxThreads

public static void setMaxThreads(int max)
Parameters:
max -

setSessionTimeout

public static void setSessionTimeout(int seconds)
Set the session timeout interval, in seconds.

Parameters:
seconds - The timeout.

getSessionTimeout

public static int getSessionTimeout()
Return the session timeout interval, in seconds.



copyright© 2001-2004 by webMethods All Rights Reserved.