Java Doc for HttpConnector.java in  » Web-Server » Rimfaxe-Web-Server » org » apache » catalina » connector » http » 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 » Web Server » Rimfaxe Web Server » org.apache.catalina.connector.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.connector.http.HttpConnector

HttpConnector
final public class HttpConnector implements Connector,Lifecycle,Runnable(Code)
Implementation of an HTTP/1.1 connector.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 1.34 $ $Date: 2002/03/18 07:15:39 $


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


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  booleangetAllowChunking()
     Get the allow chunking flag.
public  intgetBufferSize()
     Return the input buffer size for this Connector.
public  intgetConnectionTimeout()
     Return the connection 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  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  intgetMaxProcessors()
     Return the maximum number of processors allowed, or <0 for unlimited.
public  intgetMinProcessors()
     Return the minimum number of processors to start at initialization.
public  intgetPort()
     Return the port number on which we listen for HTTP requests.
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  ServicegetService()
     Return the Service with which we are associated (if any).
public  booleangetTcpNoDelay()
     Return the TCP no delay flag value.
public  voidinitialize()
    
public  booleanisAvailable()
    
public  booleanisChunkingAllowed()
     Get the allow chunking flag.
 voidrecycle(HttpProcessor processor)
     Recycle the specified Processor so that it can be used again.
public  voidremoveLifecycleListener(LifecycleListener listener)
     Remove a lifecycle event listener from this component.
public  voidrun()
     The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor.
public  voidsetAcceptCount(int count)
     Set the accept count for this Connector.
public  voidsetAddress(String address)
     Set the bind IP address for this Connector.
public  voidsetAllowChunking(boolean allowChunking)
     Set the allow chunking flag.
public  voidsetBufferSize(int bufferSize)
     Set the input buffer size for this Connector.
public  voidsetConnectionTimeout(int connectionTimeout)
     Set the connection 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  voidsetEnableLookups(boolean enableLookups)
     Set the "enable DNS lookups" flag.
public  voidsetFactory(ServerSocketFactory factory)
     Set the server socket factory used by this Container.
public  voidsetMaxProcessors(int maxProcessors)
     Set the maximum number of processors allowed, or <0 for unlimited.
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 HTTP requests.
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  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  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.



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



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





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.



getAllowChunking
public boolean getAllowChunking()(Code)
Get the allow chunking flag.



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



getConnectionTimeout
public int getConnectionTimeout()(Code)
Return the connection 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.



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.



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



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



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



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".



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.



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?



isChunkingAllowed
public boolean isChunkingAllowed()(Code)
Get the allow chunking flag.



recycle
void recycle(HttpProcessor processor)(Code)
Recycle the specified Processor so that it can be used again.
Parameters:
  processor - The processor to be recycled



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



run
public void run()(Code)
The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor.



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



setAllowChunking
public void setAllowChunking(boolean allowChunking)(Code)
Set the allow chunking flag.
Parameters:
  allowChunking - Allow chunking flag



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



setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)(Code)
Set the connection timeout for this Connector.
Parameters:
  count - The new connection 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



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



setMaxProcessors
public void setMaxProcessors(int maxProcessors)(Code)
Set the maximum number of processors allowed, or <0 for unlimited.
Parameters:
  maxProcessors - The new maximum 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 HTTP requests.
Parameters:
  port - The new port number



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



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



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.