Class CoyoteConnectorLauncher
- java.lang.Object
-
- com.sun.enterprise.web.connector.grizzly.CoyoteConnectorLauncher
-
- All Implemented Interfaces:
ProtocolHandler
- Direct Known Subclasses:
DummyConnectorLauncher
public class CoyoteConnectorLauncher extends Object implements ProtocolHandler
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.- Author:
- Remy Maucherat, Costin Manolache
-
-
Field Summary
Fields Modifier and Type Field Description protected org.glassfish.grizzly.http.server.HttpHandleradapterprotected Map<String,Object>attributesprotected booleanblockingprotected StringcompressionCompression value.protected booleandisableUploadTimeoutprotected intmaxHttpHeaderSizeprotected intmaxPostSizeprotected intrequestBufferSizeThe input request buffer size.protected booleansecureprotected StringselectorThreadImplTheSelectorThreadimplementation class.protected intsocketCloseDelayprotected StringsocketFactoryNameprotected StringsslImplementationNameprotected inttimeout
-
Constructor Summary
Constructors Constructor Description CoyoteConnectorLauncher()CoyoteConnectorLauncher(boolean secure, boolean blocking, String selectorThreadImpl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()StringgetAlgorithm()ObjectgetAttribute(String key)booleangetBlocking()intgetBufferSize()Return the request input buffer sizeStringgetCiphers()StringgetClientauth()StringgetCompression()booleangetDisableUploadTimeout()org.glassfish.grizzly.http.server.HttpHandlergetHandler()StringgetKeyAlias()StringgetKeypass()StringgetKeystore()StringgetKeytype()intgetMaxHttpHeaderSize()intgetMaxKeepAliveRequests()intgetMaxPostSize()StringgetProperty(String name)Get a propertyStringgetProtocol()StringgetProtocols()StringgetReportedname()booleangetSecure()intgetSocketCloseDelay()StringgetSocketFactory()StringgetSSLImplementation()intgetTimeout()voidinit()Start the protocolvoidsetAlgorithm(String k)voidsetAttribute(String name, Object value)Pass config infovoidsetBlocking(boolean b)voidsetBufferSize(int requestBufferSize)Set the request input buffer sizevoidsetCiphers(String ciphers)voidsetClientauth(String k)voidsetCompression(String valueS)voidsetDisableUploadTimeout(boolean isDisabled)voidsetHandler(org.glassfish.grizzly.http.server.HttpHandler adapter)The adapter, used to call the connectorvoidsetKeyAlias(String keyAlias)voidsetKeypass(String k)voidsetKeystore(String k)voidsetKeytype(String k)voidsetMaxHttpHeaderSize(int valueI)voidsetMaxKeepAliveRequests(int mkar)Set the maximum number of Keep-Alive requests that we will honor.voidsetMaxPostSize(int valueI)voidsetProperty(String name, String value)Set a property.voidsetProtocol(String k)voidsetProtocols(String k)voidsetReportedname(String reportedName)voidsetSecure(boolean b)voidsetSocketCloseDelay(int d)voidsetSocketFactory(String valueS)voidsetSSLImplementation(String valueS)voidsetTimeout(int timeouts)voidsetTruststore(String truststore)voidsetTruststoreType(String truststoreType)voidstart()Start the protocol.protected static ServerSocketFactorystring2SocketFactory(String val)
-
-
-
Field Detail
-
blocking
protected boolean blocking
-
selectorThreadImpl
protected String selectorThreadImpl
TheSelectorThreadimplementation class. Not used when Coyote is used.
-
secure
protected boolean secure
-
socketFactoryName
protected String socketFactoryName
-
sslImplementationName
protected String sslImplementationName
-
timeout
protected int timeout
-
maxPostSize
protected int maxPostSize
-
maxHttpHeaderSize
protected int maxHttpHeaderSize
-
socketCloseDelay
protected int socketCloseDelay
-
disableUploadTimeout
protected boolean disableUploadTimeout
-
adapter
protected org.glassfish.grizzly.http.server.HttpHandler adapter
-
requestBufferSize
protected int requestBufferSize
The input request buffer size.
-
compression
protected String compression
Compression value.
-
-
Constructor Detail
-
CoyoteConnectorLauncher
public CoyoteConnectorLauncher()
-
CoyoteConnectorLauncher
public CoyoteConnectorLauncher(boolean secure, boolean blocking, String selectorThreadImpl)
-
-
Method Detail
-
getMaxHttpHeaderSize
public int getMaxHttpHeaderSize()
-
setMaxHttpHeaderSize
public void setMaxHttpHeaderSize(int valueI)
-
setAttribute
public void setAttribute(String name, Object value)
Pass config info- Specified by:
setAttributein interfaceProtocolHandler
-
getAttribute
public Object getAttribute(String key)
- Specified by:
getAttributein interfaceProtocolHandler
-
setHandler
public void setHandler(org.glassfish.grizzly.http.server.HttpHandler adapter)
The adapter, used to call the connector- Specified by:
setHandlerin interfaceProtocolHandler
-
getHandler
public org.glassfish.grizzly.http.server.HttpHandler getHandler()
- Specified by:
getHandlerin interfaceProtocolHandler
-
init
public void init() throws ExceptionStart the protocol- Specified by:
initin interfaceProtocolHandler- Throws:
Exception
-
start
public void start() throws ExceptionDescription copied from interface:ProtocolHandlerStart the protocol.- Specified by:
startin interfaceProtocolHandler- Throws:
Exception
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceProtocolHandler- Throws:
Exception
-
getSocketFactory
public String getSocketFactory()
-
setSocketFactory
public void setSocketFactory(String valueS)
-
getSSLImplementation
public String getSSLImplementation()
-
setSSLImplementation
public void setSSLImplementation(String valueS)
-
getDisableUploadTimeout
public boolean getDisableUploadTimeout()
-
setDisableUploadTimeout
public void setDisableUploadTimeout(boolean isDisabled)
-
getCompression
public String getCompression()
-
setCompression
public void setCompression(String valueS)
-
getMaxPostSize
public int getMaxPostSize()
-
setMaxPostSize
public void setMaxPostSize(int valueI)
-
getKeystore
public String getKeystore()
-
setKeystore
public void setKeystore(String k)
-
getKeypass
public String getKeypass()
-
setKeypass
public void setKeypass(String k)
-
getKeytype
public String getKeytype()
-
setKeytype
public void setKeytype(String k)
-
setTruststore
public void setTruststore(String truststore)
-
setTruststoreType
public void setTruststoreType(String truststoreType)
-
getClientauth
public String getClientauth()
-
setClientauth
public void setClientauth(String k)
-
getProtocol
public String getProtocol()
-
setProtocol
public void setProtocol(String k)
-
getProtocols
public String getProtocols()
-
setProtocols
public void setProtocols(String k)
-
getAlgorithm
public String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(String k)
-
getSecure
public boolean getSecure()
-
setSecure
public void setSecure(boolean b)
-
getBlocking
public boolean getBlocking()
-
setBlocking
public void setBlocking(boolean b)
-
getCiphers
public String getCiphers()
-
setCiphers
public void setCiphers(String ciphers)
-
getKeyAlias
public String getKeyAlias()
-
setKeyAlias
public void setKeyAlias(String keyAlias)
-
getMaxKeepAliveRequests
public int getMaxKeepAliveRequests()
-
setMaxKeepAliveRequests
public void setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor.
-
getSocketCloseDelay
public int getSocketCloseDelay()
-
setSocketCloseDelay
public void setSocketCloseDelay(int d)
-
string2SocketFactory
protected static ServerSocketFactory string2SocketFactory(String val) throws ClassNotFoundException, IllegalAccessException, InstantiationException
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeouts)
-
getReportedname
public String getReportedname()
-
setReportedname
public void setReportedname(String reportedName)
-
setBufferSize
public void setBufferSize(int requestBufferSize)
Set the request input buffer size
-
getBufferSize
public int getBufferSize()
Return the request input buffer size
-
-