|
AdroitLogic UltraESB v1.7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.adroitlogic.ultraesb.core.config.AbstractConfigurationElement
org.adroitlogic.ultraesb.transport.base.AbstractTransportListener
org.adroitlogic.ultraesb.transport.http.HttpNIOListener
public class HttpNIOListener
The HTTP transport listener
Sets the following message properties in addition to setting the request URI as the destination
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.adroitlogic.ultraesb.api.ConfigurationElement |
|---|
ConfigurationElement.State |
| Field Summary |
|---|
| Fields inherited from class org.adroitlogic.ultraesb.transport.base.AbstractTransportListener |
|---|
logger, metrics, properties, transportName |
| Fields inherited from class org.adroitlogic.ultraesb.core.config.AbstractConfigurationElement |
|---|
config, ctx, debugOn, derivedName, id, outdated, state |
| Constructor Summary | |
|---|---|
HttpNIOListener(FileCache fileCache)
Default constructor, with a reference to the FileCache to use |
|
| Method Summary | |
|---|---|
void |
setBindAddress(java.lang.String bindAddress)
The bind address to use, on a multiple network interface node |
void |
setCompressionMinSize(long compressionMinSize)
Set the minimum size of the response entity to enable compression when supported by the client (default 2Kbytes) |
void |
setConnectionDebugHeaders(java.util.Set connectionDebugHeaders)
Sets the list of HTTP headers to be dumped on a connection failure, when connection debugging is enabled |
void |
setContinueOnCheckedExceptions(boolean continueOnCheckedExceptions)
Control behavior of engine on checked exceptions |
void |
setContinueOnRuntimeExceptions(boolean continueOnRuntimeExceptions)
Control behavior of engine on runtime exceptions (WARNING: It maybe dangerous to ignore runtime exceptions) |
void |
setDefaultContextPath(java.lang.String defaultContextPath)
Set the default context path for services exposed over HTTP |
void |
setEnableConnectionDebug(boolean enableConnectionDebug)
Debug connection information on errors |
void |
setMaxPayloadSize(long maxPayloadSize)
The maximum payload size to accept - defaults to 1M |
void |
setNoCompression(boolean noCompression)
Turn off use of Gzip compression even if the request contains an Accept-Encoding header |
void |
setPort(int port)
The HTTP transport listen port - default is 80 |
void |
setReplaceOriginServer(boolean replaceOriginServer)
Replace the origin server header for proxied requests, to UltraESB |
void |
setRequestFilters(java.util.List requestFilters)
One or more request filters - to support ?wsdl, ?xsd etc on service endpoints |
void |
setResumeNewConnectionsAt(int resumeNewConnectionsAt)
Bound at which to resume normal operations from maintenance mode when open connections increased |
void |
setStopNewConnectionsAt(int stopNewConnectionsAt)
Set the upper bound on the open connections at a given time, after which the transport will reject new connections |
void |
setZeroCopyEnabled(boolean zeroCopyEnabled)
Use Zero-Copy when reading requests |
void |
toDetailedViewExt(org.adroitlogic.ultraesb.jmx.view.TransportView view)
Extension point for additional attributes |
| Methods inherited from class org.adroitlogic.ultraesb.transport.base.AbstractTransportListener |
|---|
getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getDetails, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getReceiveErrorCodeTable, getSendErrorCodeTable, getTimeoutsReceiving, getTimeoutsSending, init, resetStatistics, setProperties, toBasicView, toDetailedView |
| Methods inherited from class org.adroitlogic.ultraesb.core.config.AbstractConfigurationElement |
|---|
equals, getAppCtx, getDerivedName, getId, getState, hashCode, isDebugOn, isStarted, maintenanceShutdown, markAsOutdated, pause, resume, setApplicationContext, setBeanName, setConfig, setDebugOn, setDerivedName, setId, setState, start, stop, throwIllegalStateException, undeploy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.adroitlogic.ultraesb.transport.base.ManagementSupport |
|---|
getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getReceiveErrorCodeTable, getSendErrorCodeTable, getTimeoutsReceiving, getTimeoutsSending, maintenanceShutdown, pause, resetStatistics, resume |
| Constructor Detail |
|---|
public HttpNIOListener(FileCache fileCache)
fileCache - the file cache to use| Method Detail |
|---|
public void setPort(int port)
port - HTTP listen portpublic void setBindAddress(java.lang.String bindAddress)
bindAddress - bind address to listenpublic void setRequestFilters(java.util.List requestFilters)
requestFilters - a list of service filters to attach to this listenerRequestFilterpublic void setConnectionDebugHeaders(java.util.Set connectionDebugHeaders)
connectionDebugHeaders - a set of HTTP header names, or a single entry 'none' or 'all'public void setReplaceOriginServer(boolean replaceOriginServer)
replaceOriginServer - false disables the replacing (Default is true)public void setEnableConnectionDebug(boolean enableConnectionDebug)
enableConnectionDebug - enable when truepublic void setZeroCopyEnabled(boolean zeroCopyEnabled)
zeroCopyEnabled - true uses Zero-Copy reads (default)public void setStopNewConnectionsAt(int stopNewConnectionsAt)
stopNewConnectionsAt - maximum open connectionspublic void setResumeNewConnectionsAt(int resumeNewConnectionsAt)
resumeNewConnectionsAt - bound at which to resume normal operations after hitting stopNewConnectionsAtpublic void setMaxPayloadSize(long maxPayloadSize)
maxPayloadSize - maximum payload size to acceptpublic void setDefaultContextPath(java.lang.String defaultContextPath)
defaultContextPath - the context path to use (default '/service/')public void setNoCompression(boolean noCompression)
noCompression - true fully disables all use of response compressionpublic void setCompressionMinSize(long compressionMinSize)
compressionMinSize - size in bytespublic void setContinueOnRuntimeExceptions(boolean continueOnRuntimeExceptions)
continueOnRuntimeExceptions - if true, ignores runtime exceptionspublic void setContinueOnCheckedExceptions(boolean continueOnCheckedExceptions)
continueOnCheckedExceptions - if true, ignores checked exceptionspublic void toDetailedViewExt(org.adroitlogic.ultraesb.jmx.view.TransportView view)
toDetailedViewExt in class org.adroitlogic.ultraesb.transport.base.AbstractTransportListener
|
Copyright (c) 2010-2012 AdroitLogic Private Ltd. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||