public abstract class Http11AbstractProtocol extends Object implements ProtocolHandler, MBeanRegistration
Http11AbstractProtocol
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
Created on Dec 19, 2011 at 11:58:19 AMModifier and Type | Field and Description |
---|---|
protected Adapter |
adapter
The adapter, used to call the connector.
|
protected HashMap<String,Object> |
attributes |
protected boolean |
canDestroy |
protected String |
compressableMimeTypes |
protected String |
compression
Integrated compression support.
|
protected int |
compressionMinSize |
protected boolean |
disableUploadTimeout
If true, the regular socket timeout will be used for the full duration of
the connection.
|
protected String |
domain |
protected int |
maxHttpHeaderSize
Maximum size of the HTTP message header.
|
protected int |
maxKeepAliveRequests
Maximum number of requests which can be performed over a keepalive
connection.
|
protected int |
maxSavePostSize
Maximum size of the post which will be saved when processing certain
requests, such as a POST.
|
protected MBeanServer |
mserver |
protected String |
noCompressionUserAgents |
protected ObjectName |
oname |
protected int |
processorCache
Processor cache.
|
protected String |
protocol |
protected String |
restrictedUserAgents
User agents regular expressions which should be restricted to HTTP/1.0
support.
|
protected ObjectName |
rgOname |
protected boolean |
secure
This field indicates if the protocol is secure from the perspective of
the client (= https is used).
|
protected String |
server
Server header.
|
protected int |
socketBuffer |
protected SSLImplementation |
sslImplementation |
protected int |
timeout
This timeout represents the socket timeout which will be used while the
adapter execution is in progress, unless disableUploadTimeout is set to
true.
|
protected ObjectName |
tpOname |
Constructor and Description |
---|
Http11AbstractProtocol()
Create a new instance of
Http11AbstractProtocol |
Modifier and Type | Method and Description |
---|---|
Adapter |
getAdapter() |
String |
getAlgorithm() |
Object |
getAttribute(String key) |
Iterator<String> |
getAttributeNames() |
HashMap<String,Object> |
getAttributes()
Getter for attributes
|
boolean |
getCanDestroy()
Getter for canDestroy
|
String |
getCiphers() |
String |
getClientauth() |
String |
getCompressableMimeType()
Getter for compressableMimeTypes
|
String |
getCompression()
Getter for compression
|
int |
getCompressionMinSize()
Getter for compressionMinSize
|
boolean |
getDisableUploadTimeout()
Getter for disableUploadTimeout
|
String |
getDomain()
Getter for domain
|
String |
getKeyAlias() |
String |
getKeypass() |
String |
getKeystore() |
String |
getKeytype() |
int |
getMaxHttpHeaderSize()
Getter for maxHttpHeaderSize
|
int |
getMaxKeepAliveRequests()
Getter for maxKeepAliveRequests
|
int |
getMaxSavePostSize()
Getter for maxSavePostSize
|
MBeanServer |
getMserver()
Getter for mserver
|
abstract String |
getName() |
String |
getNoCompressionUserAgents()
Getter for noCompressionUserAgents
|
ObjectName |
getObjectName()
Getter for oname
|
int |
getProcessorCache()
Getter for processorCache
|
String |
getProtocol()
Getter for protocol
|
String |
getProtocols() |
String |
getRestrictedUserAgents()
Getter for restrictedUserAgents
|
ObjectName |
getRgOname()
Getter for rgOname
|
String |
getServer()
Getter for server
|
int |
getSocketBuffer()
Getter for socketBuffer
|
SSLContext |
getSSLContext() |
int |
getTimeout()
Getter for timeout
|
ObjectName |
getTpOname()
Getter for tpOname
|
boolean |
hasIoEvents() |
boolean |
isSecure()
Getter for secure
|
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector.
|
void |
setAlgorithm(String k) |
void |
setAttribute(String name,
Object value)
Pass config info.
|
void |
setAttributes(HashMap<String,Object> attributes)
Setter for the attributes
|
void |
setCanDestroy(boolean canDestroy)
Setter for the canDestroy
|
void |
setCiphers(String ciphers) |
void |
setClientauth(String k) |
void |
setCompressableMimeType(String compressableMimeTypes)
Setter for the compressableMimeTypes
|
void |
setCompression(String compression)
Setter for the compression
|
void |
setCompressionMinSize(int compressionMinSize)
Setter for the compressionMinSize
|
void |
setDisableUploadTimeout(boolean disableUploadTimeout)
Setter for the disableUploadTimeout
|
void |
setDomain(String domain)
Setter for the domain
|
void |
setKeyAlias(String keyAlias) |
void |
setKeypass(String keypass) |
void |
setKeystore(String keystore) |
void |
setKeytype(String keyType) |
void |
setMaxHttpHeaderSize(int maxHttpHeaderSize)
Setter for the maxHttpHeaderSize
|
void |
setMaxKeepAliveRequests(int maxKeepAliveRequests)
Setter for the maxKeepAliveRequests
|
void |
setMaxSavePostSize(int maxSavePostSize)
Setter for the maxSavePostSize
|
void |
setMserver(MBeanServer mserver)
Setter for the mserver
|
void |
setNoCompressionUserAgents(String noCompressionUserAgents)
Setter for the noCompressionUserAgents
|
void |
setObjectName(ObjectName oname)
Setter for the oname
|
void |
setProcessorCache(int processorCache)
Setter for the processorCache
|
void |
setProtocol(String protocol)
Setter for the protocol
|
void |
setProtocols(String protocols) |
void |
setRestrictedUserAgents(String restrictedUserAgents)
Setter for the restrictedUserAgents
|
void |
setRgOname(ObjectName rgOname)
Setter for the rgOname
|
void |
setSecure(boolean secure)
Setter for the secure
|
void |
setServer(String server)
Setter for the server
|
void |
setSocketBuffer(int socketBuffer)
Setter for the socketBuffer
|
void |
setSSLContext(SSLContext sslContext) |
void |
setTimeout(int timeout)
Setter for the timeout
|
void |
setTpOname(ObjectName tpOname)
Setter for the tpOname
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getRequestGroupInfo, init, pause, resume, start
protected ObjectName tpOname
protected ObjectName rgOname
protected SSLImplementation sslImplementation
protected Adapter adapter
protected int processorCache
protected boolean canDestroy
protected int socketBuffer
protected int maxSavePostSize
protected int maxHttpHeaderSize
protected boolean disableUploadTimeout
protected String compression
protected String noCompressionUserAgents
protected String compressableMimeTypes
protected int compressionMinSize
protected String protocol
protected String restrictedUserAgents
protected int maxKeepAliveRequests
protected String domain
protected ObjectName oname
protected MBeanServer mserver
protected String server
protected int timeout
protected boolean secure
public Http11AbstractProtocol()
Http11AbstractProtocol
public abstract String getName()
public void setAttribute(String name, Object value)
ProtocolHandler
setAttribute
in interface ProtocolHandler
public Object getAttribute(String key)
getAttribute
in interface ProtocolHandler
public Iterator<String> getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
ProtocolHandler
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public boolean hasIoEvents()
hasIoEvents
in interface ProtocolHandler
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
public HashMap<String,Object> getAttributes()
public void setAttributes(HashMap<String,Object> attributes)
attributes
- the attributes to setpublic ObjectName getTpOname()
public void setTpOname(ObjectName tpOname)
tpOname
- the tpOname to setpublic ObjectName getRgOname()
public void setRgOname(ObjectName rgOname)
rgOname
- the rgOname to setpublic int getProcessorCache()
public void setProcessorCache(int processorCache)
processorCache
- the processorCache to setpublic boolean getCanDestroy()
public void setCanDestroy(boolean canDestroy)
canDestroy
- the canDestroy to setpublic int getSocketBuffer()
public void setSocketBuffer(int socketBuffer)
socketBuffer
- the socketBuffer to setpublic int getMaxSavePostSize()
public void setMaxSavePostSize(int maxSavePostSize)
maxSavePostSize
- the maxSavePostSize to setpublic int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int maxHttpHeaderSize)
maxHttpHeaderSize
- the maxHttpHeaderSize to setpublic boolean getDisableUploadTimeout()
public void setDisableUploadTimeout(boolean disableUploadTimeout)
disableUploadTimeout
- the disableUploadTimeout to setpublic String getCompression()
public void setCompression(String compression)
compression
- the compression to setpublic String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(String noCompressionUserAgents)
noCompressionUserAgents
- the noCompressionUserAgents to setpublic String getCompressableMimeType()
public void setCompressableMimeType(String compressableMimeTypes)
compressableMimeTypes
- the compressableMimeTypes to setpublic int getCompressionMinSize()
public void setCompressionMinSize(int compressionMinSize)
compressionMinSize
- the compressionMinSize to setpublic String getProtocol()
public void setProtocol(String protocol)
protocol
- the protocol to setpublic String getRestrictedUserAgents()
public void setRestrictedUserAgents(String restrictedUserAgents)
restrictedUserAgents
- the restrictedUserAgents to setpublic int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int maxKeepAliveRequests)
maxKeepAliveRequests
- the maxKeepAliveRequests to setpublic String getDomain()
public void setDomain(String domain)
domain
- the domain to setpublic ObjectName getObjectName()
public void setObjectName(ObjectName oname)
oname
- the oname to setpublic MBeanServer getMserver()
public void setMserver(MBeanServer mserver)
mserver
- the mserver to setpublic String getServer()
public void setServer(String server)
server
- the server to setpublic int getTimeout()
public void setTimeout(int timeout)
timeout
- the timeout to setpublic boolean isSecure()
public void setSecure(boolean secure)
secure
- the secure to setpublic String getKeystore()
public void setKeystore(String keystore)
keystore
- public String getKeypass()
public void setKeypass(String keypass)
keypass
- public String getKeytype()
public void setKeytype(String keyType)
keyType
- public String getClientauth()
public void setClientauth(String k)
k
- public String getProtocols()
public void setProtocols(String protocols)
protocols
- the protocols to setpublic String getAlgorithm()
public void setAlgorithm(String k)
k
- public String getCiphers()
public void setCiphers(String ciphers)
ciphers
- public String getKeyAlias()
public void setKeyAlias(String keyAlias)
keyAlias
- public SSLContext getSSLContext()
public void setSSLContext(SSLContext sslContext)
sslContext
- Copyright © 2015 JBoss by Red Hat. All rights reserved.