Java Doc for Connector.java in  » Sevlet-Container » jetty-modules » org » mortbay » jetty » 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 » jetty modules » org.mortbay.jetty 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.jetty.Connector

All known Subclasses:   org.mortbay.jetty.AbstractConnector,
Connector
public interface Connector extends LifeCycle,Buffers(Code)
HTTP Connector. Implementations of this interface provide connectors for the HTTP protocol. A connector receives requests (normally from a socket) and calls the handle method of the Handler object. These operations are performed using threads from the ThreadPool set on the connector. When a connector is registered with an instance of Server, then the server will set itself as both the ThreadPool and the Handler. Note that a connector can be used without a Server if a thread pool and handler are directly provided.
author:
   gregw




Method Summary
 voidclose()
    
 voidcustomize(EndPoint endpoint, Request request)
     Customize a request for an endpoint.
 intgetConfidentialPort()
    
 StringgetConfidentialScheme()
    
 ObjectgetConnection()
     the underlying socket, channel, buffer etc.
public  intgetConnections()
     Number of connections accepted by the server sincestatsReset() called.
public  longgetConnectionsDurationAve()
     Average duration in milliseconds of open connectionssince statsReset() called.
public  longgetConnectionsDurationMax()
     Maximum duration in milliseconds of an open connectionsince statsReset() called.
public  longgetConnectionsDurationMin()
    
public  longgetConnectionsDurationTotal()
    
public  intgetConnectionsOpen()
     Number of connections currently open that were openedsince statsReset() called.
public  intgetConnectionsOpenMax()
     Maximum number of connections opened simultaneouslysince statsReset() called.
public  intgetConnectionsOpenMin()
    
public  intgetConnectionsRequestsAve()
     Average number of requests per connectionsince statsReset() called.
public  intgetConnectionsRequestsMax()
     Maximum number of requests per connectionsince statsReset() called.
public  intgetConnectionsRequestsMin()
    
 intgetHeaderBufferSize()
    
 StringgetHost()
    
 intgetIntegralPort()
    
 StringgetIntegralScheme()
    
 intgetLocalPort()
    
 intgetLowResourceMaxIdleTime()
    
 intgetMaxIdleTime()
    
 StringgetName()
     the name of the connector.
 intgetPort()
    
 intgetRequestBufferSize()
    
public  intgetRequests()
     Get the number of requests handled by this connectorsince last call of statsReset().
 booleangetResolveNames()
    
 intgetResponseBufferSize()
    
 ServergetServer()
    
public  booleangetStatsOn()
    
public  longgetStatsOnMs()
    
 booleanisConfidential(Request request)
    
 booleanisIntegral(Request request)
    
 ContinuationnewContinuation()
    
 voidopen()
    
 voidpersist(EndPoint endpoint)
     Persist an endpoint.
 voidsetHeaderBufferSize(int headerBufferSize)
     Set the size of the buffer to be used for request and response headers.
 voidsetHost(String hostname)
    
 voidsetLowResourceMaxIdleTime(int ms)
    
 voidsetMaxIdleTime(int ms)
    
 voidsetPort(int port)
    
 voidsetRequestBufferSize(int requestBufferSize)
     Set the size of the content buffer for receiving requests.
 voidsetResponseBufferSize(int responseBufferSize)
     Set the size of the content buffer for sending responses.
 voidsetServer(Server server)
    
public  voidsetStatsOn(boolean on)
    
public  voidstatsReset()
     Reset statistics.



Method Detail
close
void close() throws IOException(Code)



customize
void customize(EndPoint endpoint, Request request) throws IOException(Code)
Customize a request for an endpoint. Called on every request to allow customization of the request for the particular endpoint (eg security properties from a SSL connection).
Parameters:
  endpoint -
Parameters:
  request -
throws:
  IOException -



getConfidentialPort
int getConfidentialPort()(Code)



getConfidentialScheme
String getConfidentialScheme()(Code)



getConnection
Object getConnection()(Code)
the underlying socket, channel, buffer etc. for the connector.



getConnections
public int getConnections()(Code)
Number of connections accepted by the server sincestatsReset() called. Undefined if setStatsOn(false).



getConnectionsDurationAve
public long getConnectionsDurationAve()(Code)
Average duration in milliseconds of open connectionssince statsReset() called. Undefined if setStatsOn(false).



getConnectionsDurationMax
public long getConnectionsDurationMax()(Code)
Maximum duration in milliseconds of an open connectionsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsDurationMin
public long getConnectionsDurationMin()(Code)
Returns the connectionsDurationMin.



getConnectionsDurationTotal
public long getConnectionsDurationTotal()(Code)
Returns the connectionsDurationTotal.



getConnectionsOpen
public int getConnectionsOpen()(Code)
Number of connections currently open that were openedsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsOpenMax
public int getConnectionsOpenMax()(Code)
Maximum number of connections opened simultaneouslysince statsReset() called. Undefined if setStatsOn(false).



getConnectionsOpenMin
public int getConnectionsOpenMin()(Code)
Returns the connectionsOpenMin.



getConnectionsRequestsAve
public int getConnectionsRequestsAve()(Code)
Average number of requests per connectionsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsRequestsMax
public int getConnectionsRequestsMax()(Code)
Maximum number of requests per connectionsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsRequestsMin
public int getConnectionsRequestsMin()(Code)
Returns the connectionsRequestsMin.



getHeaderBufferSize
int getHeaderBufferSize()(Code)
Returns the headerBufferSize.



getHost
String getHost()(Code)



getIntegralPort
int getIntegralPort()(Code)



getIntegralScheme
String getIntegralScheme()(Code)



getLocalPort
int getLocalPort()(Code)
The actual port the connector is listening on or -1 if there is no port or the connector is not open.



getLowResourceMaxIdleTime
int getLowResourceMaxIdleTime()(Code)



getMaxIdleTime
int getMaxIdleTime()(Code)



getName
String getName()(Code)
the name of the connector. Defaults to the HostName:port



getPort
int getPort()(Code)
The configured port for the connector or 0 if any availableport may be used.



getRequestBufferSize
int getRequestBufferSize()(Code)
Returns the requestBufferSize.



getRequests
public int getRequests()(Code)
Get the number of requests handled by this connectorsince last call of statsReset(). If setStatsOn(false) then thisis undefined.



getResolveNames
boolean getResolveNames()(Code)
true if names resolution should be done.



getResponseBufferSize
int getResponseBufferSize()(Code)
Returns the responseBufferSize.



getServer
Server getServer()(Code)



getStatsOn
public boolean getStatsOn()(Code)
True if statistics collection is turned on.



getStatsOnMs
public long getStatsOnMs()(Code)
Timestamp stats were started at.



isConfidential
boolean isConfidential(Request request)(Code)



isIntegral
boolean isIntegral(Request request)(Code)



newContinuation
Continuation newContinuation()(Code)



open
void open() throws IOException(Code)
Opens the connector
throws:
  IOException -



persist
void persist(EndPoint endpoint) throws IOException(Code)
Persist an endpoint. Called after every request if the connection is to remain open.
Parameters:
  endpoint -
Parameters:
  request -
throws:
  IOException -



setHeaderBufferSize
void setHeaderBufferSize(int headerBufferSize)(Code)
Set the size of the buffer to be used for request and response headers. An idle connection will at most have one buffer of this size allocated.
Parameters:
  headerBufferSize - The headerBufferSize to set.



setHost
void setHost(String hostname)(Code)



setLowResourceMaxIdleTime
void setLowResourceMaxIdleTime(int ms)(Code)



setMaxIdleTime
void setMaxIdleTime(int ms)(Code)



setPort
void setPort(int port)(Code)

Parameters:
  port - The port fto listen of for connections or 0 if any availableport may be used.



setRequestBufferSize
void setRequestBufferSize(int requestBufferSize)(Code)
Set the size of the content buffer for receiving requests. These buffers are only used for active connections that have requests with bodies that will not fit within the header buffer.
Parameters:
  requestBufferSize - The requestBufferSize to set.



setResponseBufferSize
void setResponseBufferSize(int responseBufferSize)(Code)
Set the size of the content buffer for sending responses. These buffers are only used for active connections that are sending responses with bodies that will not fit within the header buffer.
Parameters:
  responseBufferSize - The responseBufferSize to set.



setServer
void setServer(Server server)(Code)



setStatsOn
public void setStatsOn(boolean on)(Code)



statsReset
public void statsReset()(Code)
Reset statistics.



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