Java Doc for CoyoteConnector.java in  » Sevlet-Container » tomcat-connectors » org » apache » coyote » tomcat4 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat connectors » org.apache.coyote.tomcat4 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.coyote.tomcat4.CoyoteConnector

CoyoteConnector
final public class CoyoteConnector implements Connector,Lifecycle,MBeanRegistration(Code)
Implementation of a Coyote connector for Tomcat 4.x.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 1.34 $ $Date: 2004/02/24 08:54:29 $


Field Summary
protected  Containercontainer
     The Container used for processing requests received by this Connector.
protected  Stringdomain
    
protected  LifecycleSupportlifecycle
     The lifecycle event support for this component.
protected  intmaxSpareProcessors
     The maximum amount of spare processors.
protected  intminProcessors
     The minimum number of processors to start at initialization time.
protected  MBeanServermserver
    
protected  ObjectNameoname
    


Method Summary
public  voidaddLifecycleListener(LifecycleListener listener)
     Add a lifecycle event listener to this component.
public  RequestcreateRequest()
     Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container.
public  ResponsecreateResponse()
     Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container.
public  LifecycleListener[]findLifecycleListeners()
     Get the lifecycle listeners associated with this lifecycle.
public  intgetAcceptCount()
     Return the accept count for this Connector.
public  StringgetAddress()
     Return the bind IP address for this Connector.
public  booleangetAllowTrace()
     True if the TRACE method is allowed.
public  intgetBufferSize()
     Return the input buffer size for this Connector.
public  StringgetCompression()
     Get the value of compression.
public  intgetConnectionLinger()
     Return the connection linger for this Connector.
public  intgetConnectionTimeout()
     Return the connection timeout for this Connector.
public  intgetConnectionUploadTimeout()
     Return the connection upload timeout for this Connector.
public  ContainergetContainer()
     Return the Container used for processing requests received by this Connector.
public  intgetCurProcessors()
     Return the current number of processors that have been created.
public  intgetDebug()
     Return the debugging detail level for this component.
public  booleangetDisableUploadTimeout()
     Return the flag that specifies upload time-out behavior.
public  StringgetDomain()
    
public  booleangetEnableLookups()
     Return the "enable DNS lookups" flag.
public  ServerSocketFactorygetFactory()
     Return the server socket factory used by this Container.
public  StringgetInfo()
     Return descriptive information about this Connector implementation.
public  intgetMaxKeepAliveRequests()
     Return the maximum number of Keep-Alive requests to honor per connection.
public  intgetMaxProcessors()
     Return the maximum number of processors allowed, or <0 for unlimited.
public  intgetMaxSpareProcessors()
     Return the maximum number of spare processors allowed.
public  intgetMinProcessors()
     Return the minimum number of processors to start at initialization.
public  ObjectNamegetObjectName()
    
public  intgetPort()
     Return the port number on which we listen for requests.
public  StringgetProtocolHandlerClassName()
     Return the class name of the Coyote protocol handler in use.
public  StringgetProxyName()
     Return the proxy server name for this Connector.
public  intgetProxyPort()
     Return the proxy server port for this Connector.
public  intgetRedirectPort()
     Return the port number to which a request should be redirected if it comes in on a non-SSL port and is subject to a security constraint with a transport guarantee that requires SSL.
public  StringgetScheme()
     Return the scheme that will be assigned to requests received through this connector.
public  booleangetSecure()
     Return the secure connection flag that will be assigned to requests received through this connector.
public  intgetServerSocketTimeout()
     Return the server socket timeout for this Connector.
public  ServicegetService()
     Return the Service with which we are associated (if any).
public  booleangetTcpNoDelay()
     Return the TCP no delay flag value.
public  booleangetTomcatAuthentication()
    
public  StringgetURIEncoding()
     Return the character encoding to be used for the URI.
public  booleangetUseBodyEncodingForURI()
     Return the true if the entity body encoding should be used for the URI.
public  booleangetUseURIValidationHack()
     Return the value of the Uri validation flag.
public  voidinitialize()
    
public  booleanisAvailable()
    
public  voidpostDeregister()
    
public  voidpostRegister(Boolean registrationDone)
    
public  voidpreDeregister()
    
public  ObjectNamepreRegister(MBeanServer server, ObjectName name)
    
public  voidremoveLifecycleListener(LifecycleListener listener)
     Remove a lifecycle event listener from this component.
public  voidsetAcceptCount(int count)
     Set the accept count for this Connector.
public  voidsetAddress(String address)
     Set the bind IP address for this Connector.
public  voidsetAllowTrace(boolean allowTrace)
     Set the allowTrace flag, to disable or enable the TRACE HTTP method.
public  voidsetBufferSize(int bufferSize)
     Set the input buffer size for this Connector.
public  voidsetCompression(String compression)
     Set the value of compression.
public  voidsetConnectionLinger(int connectionLinger)
     Set the connection linger for this Connector.
public  voidsetConnectionTimeout(int connectionTimeout)
     Set the connection timeout for this Connector.
public  voidsetConnectionUploadTimeout(int connectionUploadTimeout)
     Set the connection upload timeout for this Connector.
public  voidsetContainer(Container container)
     Set the Container used for processing requests received by this Connector.
public  voidsetDebug(int debug)
     Set the debugging detail level for this component.
public  voidsetDisableUploadTimeout(boolean isDisabled)
     Set the flag to specify upload time-out behavior.
Parameters:
  isDisabled - If true, then the timeoutparameter is ignored.
public  voidsetEnableLookups(boolean enableLookups)
     Set the "enable DNS lookups" flag.
public  voidsetFactory(ServerSocketFactory factory)
     Set the server socket factory used by this Container.
public  voidsetMaxKeepAliveRequests(int mkar)
     Set the maximum number of Keep-Alive requests to honor per connection.
public  voidsetMaxProcessors(int maxProcessors)
     Set the maximum number of processors allowed, or <0 for unlimited.
public  voidsetMaxSpareProcessors(int maxSpareProcessors)
     Set the maximum number of spare processors allowed.
public  voidsetMinProcessors(int minProcessors)
     Set the minimum number of processors to start at initialization.
public  voidsetPort(int port)
     Set the port number on which we listen for requests.
public  voidsetProtocolHandlerClassName(String protocolHandlerClassName)
     Set the class name of the Coyote protocol handler which will be used by the connector.
public  voidsetProxyName(String proxyName)
     Set the proxy server name for this Connector.
public  voidsetProxyPort(int proxyPort)
     Set the proxy server port for this Connector.
public  voidsetRedirectPort(int redirectPort)
     Set the redirect port number.
public  voidsetScheme(String scheme)
     Set the scheme that will be assigned to requests received through this connector.
public  voidsetSecure(boolean secure)
     Set the secure connection flag that will be assigned to requests received through this connector.
public  voidsetServerSocketTimeout(int serverSocketTimeout)
     Set the server socket timeout for this Connector.
public  voidsetService(Service service)
     Set the Service with which we are associated (if any).
public  voidsetTcpNoDelay(boolean tcpNoDelay)
     Set the TCP no delay flag which will be set on the socket after accepting a connection.
public  voidsetTomcatAuthentication(boolean tomcatAuthentication)
    
public  voidsetURIEncoding(String URIEncoding)
     Set the URI encoding to be used for the URI.
public  voidsetUseBodyEncodingForURI(boolean useBodyEncodingForURI)
     Set if the entity body encoding should be used for the URI.
public  voidsetUseURIValidationHack(boolean useURIValidationHack)
     Set the value of the Uri validation flag.
public  voidstart()
     Begin processing requests via this Connector.
public  voidstop()
     Terminate processing requests via this Connector.

Field Detail
container
protected Container container(Code)
The Container used for processing requests received by this Connector.



domain
protected String domain(Code)



lifecycle
protected LifecycleSupport lifecycle(Code)
The lifecycle event support for this component.



maxSpareProcessors
protected int maxSpareProcessors(Code)
The maximum amount of spare processors.



minProcessors
protected int minProcessors(Code)
The minimum number of processors to start at initialization time.



mserver
protected MBeanServer mserver(Code)



oname
protected ObjectName oname(Code)





Method Detail
addLifecycleListener
public void addLifecycleListener(LifecycleListener listener)(Code)
Add a lifecycle event listener to this component.
Parameters:
  listener - The listener to add



createRequest
public Request createRequest()(Code)
Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container.



createResponse
public Response createResponse()(Code)
Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container.



findLifecycleListeners
public LifecycleListener[] findLifecycleListeners()(Code)
Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners registered, a zero-length array is returned.



getAcceptCount
public int getAcceptCount()(Code)
Return the accept count for this Connector.



getAddress
public String getAddress()(Code)
Return the bind IP address for this Connector.



getAllowTrace
public boolean getAllowTrace()(Code)
True if the TRACE method is allowed. Default value is "false".



getBufferSize
public int getBufferSize()(Code)
Return the input buffer size for this Connector.



getCompression
public String getCompression()(Code)
Get the value of compression.



getConnectionLinger
public int getConnectionLinger()(Code)
Return the connection linger for this Connector.



getConnectionTimeout
public int getConnectionTimeout()(Code)
Return the connection timeout for this Connector.



getConnectionUploadTimeout
public int getConnectionUploadTimeout()(Code)
Return the connection upload timeout for this Connector.



getContainer
public Container getContainer()(Code)
Return the Container used for processing requests received by this Connector.



getCurProcessors
public int getCurProcessors()(Code)
Return the current number of processors that have been created.



getDebug
public int getDebug()(Code)
Return the debugging detail level for this component.



getDisableUploadTimeout
public boolean getDisableUploadTimeout()(Code)
Return the flag that specifies upload time-out behavior.



getDomain
public String getDomain()(Code)



getEnableLookups
public boolean getEnableLookups()(Code)
Return the "enable DNS lookups" flag.



getFactory
public ServerSocketFactory getFactory()(Code)
Return the server socket factory used by this Container.



getInfo
public String getInfo()(Code)
Return descriptive information about this Connector implementation.



getMaxKeepAliveRequests
public int getMaxKeepAliveRequests()(Code)
Return the maximum number of Keep-Alive requests to honor per connection.



getMaxProcessors
public int getMaxProcessors()(Code)
Return the maximum number of processors allowed, or <0 for unlimited.



getMaxSpareProcessors
public int getMaxSpareProcessors()(Code)
Return the maximum number of spare processors allowed.



getMinProcessors
public int getMinProcessors()(Code)
Return the minimum number of processors to start at initialization.



getObjectName
public ObjectName getObjectName()(Code)



getPort
public int getPort()(Code)
Return the port number on which we listen for requests.



getProtocolHandlerClassName
public String getProtocolHandlerClassName()(Code)
Return the class name of the Coyote protocol handler in use.



getProxyName
public String getProxyName()(Code)
Return the proxy server name for this Connector.



getProxyPort
public int getProxyPort()(Code)
Return the proxy server port for this Connector.



getRedirectPort
public int getRedirectPort()(Code)
Return the port number to which a request should be redirected if it comes in on a non-SSL port and is subject to a security constraint with a transport guarantee that requires SSL.



getScheme
public String getScheme()(Code)
Return the scheme that will be assigned to requests received through this connector. Default value is "http".



getSecure
public boolean getSecure()(Code)
Return the secure connection flag that will be assigned to requests received through this connector. Default value is "false".



getServerSocketTimeout
public int getServerSocketTimeout()(Code)
Return the server socket timeout for this Connector.



getService
public Service getService()(Code)
Return the Service with which we are associated (if any).



getTcpNoDelay
public boolean getTcpNoDelay()(Code)
Return the TCP no delay flag value.



getTomcatAuthentication
public boolean getTomcatAuthentication()(Code)



getURIEncoding
public String getURIEncoding()(Code)
Return the character encoding to be used for the URI.



getUseBodyEncodingForURI
public boolean getUseBodyEncodingForURI()(Code)
Return the true if the entity body encoding should be used for the URI.



getUseURIValidationHack
public boolean getUseURIValidationHack()(Code)
Return the value of the Uri validation flag.



initialize
public void initialize() throws LifecycleException(Code)
Initialize this connector (create ServerSocket here!)



isAvailable
public boolean isAvailable()(Code)
Is this connector available for processing requests?



postDeregister
public void postDeregister()(Code)



postRegister
public void postRegister(Boolean registrationDone)(Code)



preDeregister
public void preDeregister() throws Exception(Code)



preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)



removeLifecycleListener
public void removeLifecycleListener(LifecycleListener listener)(Code)
Remove a lifecycle event listener from this component.
Parameters:
  listener - The listener to add



setAcceptCount
public void setAcceptCount(int count)(Code)
Set the accept count for this Connector.
Parameters:
  count - The new accept count



setAddress
public void setAddress(String address)(Code)
Set the bind IP address for this Connector.
Parameters:
  address - The bind IP address



setAllowTrace
public void setAllowTrace(boolean allowTrace)(Code)
Set the allowTrace flag, to disable or enable the TRACE HTTP method.
Parameters:
  allowTrace - The new allowTrace flag



setBufferSize
public void setBufferSize(int bufferSize)(Code)
Set the input buffer size for this Connector.
Parameters:
  bufferSize - The new input buffer size.



setCompression
public void setCompression(String compression)(Code)
Set the value of compression.
Parameters:
  compression - The new compression value, which can be "on", "off"or "force"



setConnectionLinger
public void setConnectionLinger(int connectionLinger)(Code)
Set the connection linger for this Connector.
Parameters:
  count - The new connection linge



setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)(Code)
Set the connection timeout for this Connector.
Parameters:
  count - The new connection timeout



setConnectionUploadTimeout
public void setConnectionUploadTimeout(int connectionUploadTimeout)(Code)
Set the connection upload timeout for this Connector.
Parameters:
  connectionUploadTimeout - The new connection upload timeout



setContainer
public void setContainer(Container container)(Code)
Set the Container used for processing requests received by this Connector.
Parameters:
  container - The new Container to use



setDebug
public void setDebug(int debug)(Code)
Set the debugging detail level for this component.
Parameters:
  debug - The new debugging detail level



setDisableUploadTimeout
public void setDisableUploadTimeout(boolean isDisabled)(Code)
Set the flag to specify upload time-out behavior.
Parameters:
  isDisabled - If true, then the timeoutparameter is ignored. If false, then thetimeout parameter is used to control uploads.



setEnableLookups
public void setEnableLookups(boolean enableLookups)(Code)
Set the "enable DNS lookups" flag.
Parameters:
  enableLookups - The new "enable DNS lookups" flag value



setFactory
public void setFactory(ServerSocketFactory factory)(Code)
Set the server socket factory used by this Container.
Parameters:
  factory - The new server socket factory



setMaxKeepAliveRequests
public void setMaxKeepAliveRequests(int mkar)(Code)
Set the maximum number of Keep-Alive requests to honor per connection.



setMaxProcessors
public void setMaxProcessors(int maxProcessors)(Code)
Set the maximum number of processors allowed, or <0 for unlimited.
Parameters:
  maxProcessors - The new maximum processors



setMaxSpareProcessors
public void setMaxSpareProcessors(int maxSpareProcessors)(Code)
Set the maximum number of spare processors allowed.
Parameters:
  maxSpareProcessors - The new maximum of spare processors



setMinProcessors
public void setMinProcessors(int minProcessors)(Code)
Set the minimum number of processors to start at initialization.
Parameters:
  minProcessors - The new minimum processors



setPort
public void setPort(int port)(Code)
Set the port number on which we listen for requests.
Parameters:
  port - The new port number



setProtocolHandlerClassName
public void setProtocolHandlerClassName(String protocolHandlerClassName)(Code)
Set the class name of the Coyote protocol handler which will be used by the connector.
Parameters:
  protocolHandlerClassName - The new class name



setProxyName
public void setProxyName(String proxyName)(Code)
Set the proxy server name for this Connector.
Parameters:
  proxyName - The new proxy server name



setProxyPort
public void setProxyPort(int proxyPort)(Code)
Set the proxy server port for this Connector.
Parameters:
  proxyPort - The new proxy server port



setRedirectPort
public void setRedirectPort(int redirectPort)(Code)
Set the redirect port number.
Parameters:
  redirectPort - The redirect port number (non-SSL to SSL)



setScheme
public void setScheme(String scheme)(Code)
Set the scheme that will be assigned to requests received through this connector.
Parameters:
  scheme - The new scheme



setSecure
public void setSecure(boolean secure)(Code)
Set the secure connection flag that will be assigned to requests received through this connector.
Parameters:
  secure - The new secure connection flag



setServerSocketTimeout
public void setServerSocketTimeout(int serverSocketTimeout)(Code)
Set the server socket timeout for this Connector.
Parameters:
  connectionUploadTimeout - The new server socket timeout



setService
public void setService(Service service)(Code)
Set the Service with which we are associated (if any).
Parameters:
  service - The service that owns this Engine



setTcpNoDelay
public void setTcpNoDelay(boolean tcpNoDelay)(Code)
Set the TCP no delay flag which will be set on the socket after accepting a connection.
Parameters:
  tcpNoDelay - The new TCP no delay flag



setTomcatAuthentication
public void setTomcatAuthentication(boolean tomcatAuthentication)(Code)



setURIEncoding
public void setURIEncoding(String URIEncoding)(Code)
Set the URI encoding to be used for the URI.
Parameters:
  URIEncoding - The new URI character encoding.



setUseBodyEncodingForURI
public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI)(Code)
Set if the entity body encoding should be used for the URI.
Parameters:
  useBodyEncodingForURI - The new value for the flag.



setUseURIValidationHack
public void setUseURIValidationHack(boolean useURIValidationHack)(Code)
Set the value of the Uri validation flag.
Parameters:
  useURIValidationHack - The new flag value



start
public void start() throws LifecycleException(Code)
Begin processing requests via this Connector.
exception:
  LifecycleException - if a fatal startup error occurs



stop
public void stop() throws LifecycleException(Code)
Terminate processing requests via this Connector.
exception:
  LifecycleException - if a fatal shutdown error occurs



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.