Java Doc for Connector.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » connector » 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 » apache tomcat 6.0.14 » org.apache.catalina.connector 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.connector.Connector

Connector
public class Connector implements Lifecycle,MBeanRegistration(Code)
Implementation of a Coyote connector for Tomcat 5.x.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 480000 $ $Date: 2006-11-28 12:31:04 +0100 (mar., 28 nov. 2006) $


Field Summary
final public static  booleanRECYCLE_FACADES
     Alternate flag to enable recycling of facades.
protected  StringURIEncoding
     URI encoding.
protected  Adapteradapter
     Coyote adapter.
protected  booleanallowTrace
    
protected  Containercontainer
     The Container used for processing requests received by this Connector.
 ObjectNamecontroller
    
protected  Stringdomain
    
protected  booleanemptySessionPath
    
protected  booleanenableLookups
     The "enable DNS lookups" flag for this Connector.
final protected static  Stringinfo
     Descriptive information about this Connector implementation.
protected  booleaninitialized
    
protected  LifecycleSupportlifecycle
     The lifecycle event support for this component.
protected  Mappermapper
     Mapper.
protected  MapperListenermapperListener
     Mapper listener.
protected  intmaxPostSize
     Maximum size of a POST which will be automatically parsed by the container.
protected  intmaxSavePostSize
     Maximum size of a POST which will be saved by the container during authentication.
protected  MBeanServermserver
    
protected  ObjectNameoname
    
protected  intport
     The port number on which we listen for requests.
protected  ProtocolHandlerprotocolHandler
     Coyote protocol handler.
protected  StringprotocolHandlerClassName
     Coyote Protocol handler class name.
protected  StringproxyName
     The server name to which we should pretend requests to this Connector were directed.
protected  intproxyPort
     The server port to which we should pretent requests to this Connector were directed.
protected  intredirectPort
     The redirect port for non-SSL to SSL redirects.
protected static  HashMapreplacements
    
protected  Stringscheme
     The request scheme that will be set on all requests received through this connector.
protected  booleansecure
     The secure connection flag that will be set on all requests received through this connector.
protected  Serviceservice
     The Service we are associated with (if any).
protected  StringManagersm
     The string manager for this package.
protected  booleanstarted
    
protected  booleanstopped
    
protected  Threadthread
     The background thread.
protected  booleanuseBodyEncodingForURI
     URI encoding as body.
protected  booleanuseIPVHosts
     Flag to use IP-based virtual hosting.
protected  booleanxpoweredBy
    

Constructor Summary
public  Connector()
    
public  Connector(String protocol)
    

Method Summary
public  voidaddLifecycleListener(LifecycleListener listener)
     Add a lifecycle event listener to this component.
protected  ObjectNamecreateObjectName(String domain, String type)
    
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  voiddestroy()
    
protected  voidfindContainer()
    
public  LifecycleListener[]findLifecycleListeners()
     Get the lifecycle listeners associated with this lifecycle.
public  booleangetAllowTrace()
     True if the TRACE method is allowed.
public  ObjectgetAttribute(String name)
     Return a configured property.
public  intgetBufferSize()
     Return the input buffer size for this Connector.
public  ContainergetContainer()
     Return the Container used for processing requests received by this Connector.
public  ObjectNamegetController()
    
public  StringgetDomain()
    
public  booleangetEmptySessionPath()
     Return the "empty session path" flag.
public  booleangetEnableLookups()
     Return the "enable DNS lookups" flag.
public  StringgetInfo()
     Return descriptive information about this Connector implementation.
public  MappergetMapper()
     Return the mapper.
public  intgetMaxPostSize()
     Return the maximum size of a POST which will be automatically parsed by the container.
public  intgetMaxSavePostSize()
     Return the maximum size of a POST which will be saved by the container during authentication.
public  ObjectNamegetObjectName()
    
public  intgetPort()
     Return the port number on which we listen for requests.
public  ObjectgetProperty(String name)
     Return a configured property.
public  StringgetProtocol()
     Return the Coyote protocol handler in use.
public  ProtocolHandlergetProtocolHandler()
     Return the protocol handler associated with the connector.
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  ServicegetService()
     Return the Service with which we are associated (if any).
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  booleangetUseIPVHosts()
     Test if IP-based virtual hosting is enabled.
public  booleangetXpoweredBy()
     Indicates whether the generation of an X-Powered-By response header for servlet-generated responses is enabled or disabled for this Connector.
public  voidinit()
    
public  voidinitialize()
    
public  booleanisAvailable()
    
public  voidpause()
     Pause the connector.
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  voidremoveProperty(String name)
     remove a configured property.
public  voidresume()
     Pause the connector.
public  voidsetAllowTrace(boolean allowTrace)
     Set the allowTrace flag, to disable or enable the TRACE HTTP method.
public  voidsetAttribute(String name, Object value)
     Set a configured property.
public  voidsetBufferSize(int bufferSize)
     Set the input buffer size for this Connector.
public  voidsetContainer(Container container)
     Set the Container used for processing requests received by this Connector.
public  voidsetController(ObjectName controller)
    
public  voidsetEmptySessionPath(boolean emptySessionPath)
     Set the "empty session path" flag.
public  voidsetEnableLookups(boolean enableLookups)
     Set the "enable DNS lookups" flag.
public  voidsetMaxPostSize(int maxPostSize)
     Set the maximum size of a POST which will be automatically parsed by the container.
public  voidsetMaxSavePostSize(int maxSavePostSize)
     Set the maximum size of a POST which will be saved by the container during authentication.
public  voidsetPort(int port)
     Set the port number on which we listen for requests.
public  voidsetProperty(String name, String value)
     Set a configured property.
public  voidsetProtocol(String protocol)
     Set the Coyote protocol which will be used by the connector.
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  voidsetService(Service service)
     Set the Service with which we are associated (if any).
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  voidsetUseIPVHosts(boolean useIPVHosts)
     Enable the use of IP-based virtual hosting.
public  voidsetXpoweredBy(boolean xpoweredBy)
     Enables or disables the generation of an X-Powered-By header (with value Servlet/2.4) for all servlet-generated responses returned by this Connector.
public  voidstart()
     Begin processing requests via this Connector.
public  voidstop()
     Terminate processing requests via this Connector.

Field Detail
RECYCLE_FACADES
final public static boolean RECYCLE_FACADES(Code)
Alternate flag to enable recycling of facades.



URIEncoding
protected String URIEncoding(Code)
URI encoding.



adapter
protected Adapter adapter(Code)
Coyote adapter.



allowTrace
protected boolean allowTrace(Code)
Do we allow TRACE ?



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



controller
ObjectName controller(Code)



domain
protected String domain(Code)



emptySessionPath
protected boolean emptySessionPath(Code)
Use "/" as path for session cookies ?



enableLookups
protected boolean enableLookups(Code)
The "enable DNS lookups" flag for this Connector.



info
final protected static String info(Code)
Descriptive information about this Connector implementation.



initialized
protected boolean initialized(Code)
Has this component been initialized yet?



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



mapper
protected Mapper mapper(Code)
Mapper.



mapperListener
protected MapperListener mapperListener(Code)
Mapper listener.



maxPostSize
protected int maxPostSize(Code)
Maximum size of a POST which will be automatically parsed by the container. 2MB by default.



maxSavePostSize
protected int maxSavePostSize(Code)
Maximum size of a POST which will be saved by the container during authentication. 4kB by default



mserver
protected MBeanServer mserver(Code)



oname
protected ObjectName oname(Code)



port
protected int port(Code)
The port number on which we listen for requests.



protocolHandler
protected ProtocolHandler protocolHandler(Code)
Coyote protocol handler.



protocolHandlerClassName
protected String protocolHandlerClassName(Code)
Coyote Protocol handler class name. Defaults to the Coyote HTTP/1.1 protocolHandler.



proxyName
protected String proxyName(Code)
The server name to which we should pretend requests to this Connector were directed. This is useful when operating Tomcat behind a proxy server, so that redirects get constructed accurately. If not specified, the server name included in the Host header is used.



proxyPort
protected int proxyPort(Code)
The server port to which we should pretent requests to this Connector were directed. This is useful when operating Tomcat behind a proxy server, so that redirects get constructed accurately. If not specified, the port number specified by the port property is used.



redirectPort
protected int redirectPort(Code)
The redirect port for non-SSL to SSL redirects.



replacements
protected static HashMap replacements(Code)



scheme
protected String scheme(Code)
The request scheme that will be set on all requests received through this connector.



secure
protected boolean secure(Code)
The secure connection flag that will be set on all requests received through this connector.



service
protected Service service(Code)
The Service we are associated with (if any).



sm
protected StringManager sm(Code)
The string manager for this package.



started
protected boolean started(Code)
Has this component been started yet?



stopped
protected boolean stopped(Code)
The shutdown signal to our background thread



thread
protected Thread thread(Code)
The background thread.



useBodyEncodingForURI
protected boolean useBodyEncodingForURI(Code)
URI encoding as body.



useIPVHosts
protected boolean useIPVHosts(Code)
Flag to use IP-based virtual hosting.



xpoweredBy
protected boolean xpoweredBy(Code)




Constructor Detail
Connector
public Connector() throws Exception(Code)



Connector
public Connector(String protocol) throws Exception(Code)




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



createObjectName
protected ObjectName createObjectName(String domain, String type) throws MalformedObjectNameException(Code)



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.



destroy
public void destroy() throws Exception(Code)



findContainer
protected void findContainer()(Code)



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.



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



getAttribute
public Object getAttribute(String name)(Code)
Return a configured property.



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



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



getController
public ObjectName getController()(Code)



getDomain
public String getDomain()(Code)



getEmptySessionPath
public boolean getEmptySessionPath()(Code)
Return the "empty session path" flag.



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



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



getMapper
public Mapper getMapper()(Code)
Return the mapper.



getMaxPostSize
public int getMaxPostSize()(Code)
Return the maximum size of a POST which will be automatically parsed by the container.



getMaxSavePostSize
public int getMaxSavePostSize()(Code)
Return the maximum size of a POST which will be saved by the container during authentication.



getObjectName
public ObjectName getObjectName()(Code)



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



getProperty
public Object getProperty(String name)(Code)
Return a configured property.



getProtocol
public String getProtocol()(Code)
Return the Coyote protocol handler in use.



getProtocolHandler
public ProtocolHandler getProtocolHandler()(Code)
Return the protocol handler associated with the connector.



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



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



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.



getUseIPVHosts
public boolean getUseIPVHosts()(Code)
Test if IP-based virtual hosting is enabled.



getXpoweredBy
public boolean getXpoweredBy()(Code)
Indicates whether the generation of an X-Powered-By response header for servlet-generated responses is enabled or disabled for this Connector. true if generation of X-Powered-By response header is enabled,false otherwise



init
public void init() throws Exception(Code)



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?



pause
public void pause() throws LifecycleException(Code)
Pause the connector.



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



removeProperty
public void removeProperty(String name)(Code)
remove a configured property.



resume
public void resume() throws LifecycleException(Code)
Pause the connector.



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



setAttribute
public void setAttribute(String name, Object value)(Code)
Set a configured property.



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



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



setController
public void setController(ObjectName controller)(Code)



setEmptySessionPath
public void setEmptySessionPath(boolean emptySessionPath)(Code)
Set the "empty session path" flag.
Parameters:
  emptySessionPath - The new "empty session path" flag value



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



setMaxPostSize
public void setMaxPostSize(int maxPostSize)(Code)
Set the maximum size of a POST which will be automatically parsed by the container.
Parameters:
  maxPostSize - The new maximum size in bytes of a POST which willbe automatically parsed by the container



setMaxSavePostSize
public void setMaxSavePostSize(int maxSavePostSize)(Code)
Set the maximum size of a POST which will be saved by the container during authentication.
Parameters:
  maxSavePostSize - The new maximum size in bytes of a POST which willbe saved by the container during authentication.



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



setProperty
public void setProperty(String name, String value)(Code)
Set a configured property.



setProtocol
public void setProtocol(String protocol)(Code)
Set the Coyote protocol which will be used by the connector.
Parameters:
  protocol - The Coyote protocol name



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



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



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.



setUseIPVHosts
public void setUseIPVHosts(boolean useIPVHosts)(Code)
Enable the use of IP-based virtual hosting.
Parameters:
  useIPVHosts - true if Hosts are identified by IP,false/code> if Hosts are identified by name.



setXpoweredBy
public void setXpoweredBy(boolean xpoweredBy)(Code)
Enables or disables the generation of an X-Powered-By header (with value Servlet/2.4) for all servlet-generated responses returned by this Connector.
Parameters:
  xpoweredBy - true if generation of X-Powered-By response header isto be enabled, false otherwise



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.