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.HttpHandler
adapter
protected Map<String,Object>
attributes
protected boolean
blocking
protected String
compression
Compression value.protected boolean
disableUploadTimeout
protected int
maxHttpHeaderSize
protected int
maxPostSize
protected int
requestBufferSize
The input request buffer size.protected boolean
secure
protected String
selectorThreadImpl
TheSelectorThread
implementation class.protected int
socketCloseDelay
protected String
socketFactoryName
protected String
sslImplementationName
protected int
timeout
-
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 void
destroy()
String
getAlgorithm()
Object
getAttribute(String key)
boolean
getBlocking()
int
getBufferSize()
Return the request input buffer sizeString
getCiphers()
String
getClientauth()
String
getCompression()
boolean
getDisableUploadTimeout()
org.glassfish.grizzly.http.server.HttpHandler
getHandler()
String
getKeyAlias()
String
getKeypass()
String
getKeystore()
String
getKeytype()
int
getMaxHttpHeaderSize()
int
getMaxKeepAliveRequests()
int
getMaxPostSize()
String
getProperty(String name)
Get a propertyString
getProtocol()
String
getProtocols()
String
getReportedname()
boolean
getSecure()
int
getSocketCloseDelay()
String
getSocketFactory()
String
getSSLImplementation()
int
getTimeout()
void
init()
Start the protocolvoid
setAlgorithm(String k)
void
setAttribute(String name, Object value)
Pass config infovoid
setBlocking(boolean b)
void
setBufferSize(int requestBufferSize)
Set the request input buffer sizevoid
setCiphers(String ciphers)
void
setClientauth(String k)
void
setCompression(String valueS)
void
setDisableUploadTimeout(boolean isDisabled)
void
setHandler(org.glassfish.grizzly.http.server.HttpHandler adapter)
The adapter, used to call the connectorvoid
setKeyAlias(String keyAlias)
void
setKeypass(String k)
void
setKeystore(String k)
void
setKeytype(String k)
void
setMaxHttpHeaderSize(int valueI)
void
setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor.void
setMaxPostSize(int valueI)
void
setProperty(String name, String value)
Set a property.void
setProtocol(String k)
void
setProtocols(String k)
void
setReportedname(String reportedName)
void
setSecure(boolean b)
void
setSocketCloseDelay(int d)
void
setSocketFactory(String valueS)
void
setSSLImplementation(String valueS)
void
setTimeout(int timeouts)
void
setTruststore(String truststore)
void
setTruststoreType(String truststoreType)
void
start()
Start the protocol.protected static ServerSocketFactory
string2SocketFactory(String val)
-
-
-
Field Detail
-
blocking
protected boolean blocking
-
selectorThreadImpl
protected String selectorThreadImpl
TheSelectorThread
implementation 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:
setAttribute
in interfaceProtocolHandler
-
getAttribute
public Object getAttribute(String key)
- Specified by:
getAttribute
in interfaceProtocolHandler
-
setHandler
public void setHandler(org.glassfish.grizzly.http.server.HttpHandler adapter)
The adapter, used to call the connector- Specified by:
setHandler
in interfaceProtocolHandler
-
getHandler
public org.glassfish.grizzly.http.server.HttpHandler getHandler()
- Specified by:
getHandler
in interfaceProtocolHandler
-
init
public void init() throws Exception
Start the protocol- Specified by:
init
in interfaceProtocolHandler
- Throws:
Exception
-
start
public void start() throws Exception
Description copied from interface:ProtocolHandler
Start the protocol.- Specified by:
start
in interfaceProtocolHandler
- Throws:
Exception
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in 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
-
-