Java Doc for HttpFactory.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » transport » http » server » 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 Services AXIS2 » kernal » org.apache.axis2.transport.http.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.transport.http.server.HttpFactory

HttpFactory
public class HttpFactory (Code)
Factory used to configure and create the various instances required in http transports. Either configure this class in axis2.xml, or in code via the setters, or subclass it and specialize some factory methods to gain more control.
author:
   Chuck Williams


Field Summary
final public static  StringPARAMETER_HOST_ADDRESS
    
final public static  StringPARAMETER_ORIGIN_SERVER
    
final public static  StringPARAMETER_PORT
    
final public static  StringPARAMETER_REQUEST_CORE_THREAD_POOL_SIZE
    
final public static  StringPARAMETER_REQUEST_MAX_THREAD_POOL_SIZE
    
final public static  StringPARAMETER_REQUEST_SOCKET_TIMEOUT
    
final public static  StringPARAMETER_REQUEST_TCP_NO_DELAY
    
final public static  StringPARAMETER_THREAD_KEEP_ALIVE_TIME
    
final public static  StringPARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT
    

Constructor Summary
public  HttpFactory(ConfigurationContext configurationContext)
    
public  HttpFactory(ConfigurationContext configurationContext, int port)
    
public  HttpFactory(ConfigurationContext configurationContext, int port, WorkerFactory requestWorkerFactory)
    

Method Summary
public  ConfigurationContextgetConfigurationContext()
    
public  StringgetHostAddress()
    
public  TransportInDescriptiongetHttpConfiguration()
    
public  ListenerManagergetListenerManager()
    
public  StringgetOriginServer()
    
public  intgetPort()
    
public  intgetRequestCoreThreadPoolSize()
    
public  intgetRequestMaxThreadPoolSize()
    
public  intgetRequestSocketTimeout()
    
public  booleangetRequestTcpNoDelay()
     Getter for requestTcpNoDelay return false iff Nagle's algorithm should be used to conserve bandwidth by minimizing segments at the cost of latency and performance (default true, i.e.
public  longgetThreadKeepAliveTime()
    
public  TimeUnitgetThreadKeepAliveTimeUnit()
    
public  ConnectionReuseStrategynewConnStrategy()
    
public  HttpProcessornewHttpProcessor()
    
public  ExecutorServicenewListenerExecutor(int port)
    
public  BlockingQueuenewRequestBlockingQueue()
     Create the queue used to hold incoming requests when requestCoreThreadPoolSize threads are busy.
public  IOProcessornewRequestConnectionListener(int port, HttpConnectionManager manager, HttpParams params)
    
public  HttpConnectionManagernewRequestConnectionManager(ExecutorService requestExecutor, WorkerFactory workerFactory, HttpParams params)
    
public  HttpParamsnewRequestConnectionParams()
    
public  ExecutorServicenewRequestExecutor(int port)
    
public  WorkerFactorynewRequestWorkerFactory()
    
public  HttpResponseFactorynewResponseFactory()
    
public  voidsetHostAddress(String hostAddress)
    
public  voidsetOriginServer(String originServer)
    
public  voidsetPort(int port)
    
public  voidsetRequestCoreThreadPoolSize(int requestCoreThreadPoolSize)
    
public  voidsetRequestMaxThreadPoolSize(int requestMaxThreadPoolSize)
    
public  voidsetRequestSocketTimeout(int requestSocketTimeout)
    
public  voidsetRequestTcpNoDelay(boolean requestTcpNoDelay)
    
public  voidsetThreadKeepAliveTime(long threadKeepAliveTime)
    
public  voidsetThreadKeepAliveTimeUnit(TimeUnit threadKeepAliveTimeUnit)
    

Field Detail
PARAMETER_HOST_ADDRESS
final public static String PARAMETER_HOST_ADDRESS(Code)
Name of axis2.xml hostname parameter for SimpleHTTPServer configuration



PARAMETER_ORIGIN_SERVER
final public static String PARAMETER_ORIGIN_SERVER(Code)
Name of axis2.xml originServer parameter for SimpleHTTPServer configuration



PARAMETER_PORT
final public static String PARAMETER_PORT(Code)
Name of axis2.xml port parameter for SimpleHTTPServer configuration



PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE
final public static String PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE(Code)
Name of axis2.xml requestCoreThreadPoolSize parameter for SimpleHTTPServer configuration



PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE
final public static String PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE(Code)
Name of axis2.xml requestMaxThreadPoolSize parameter for SimpleHTTPServer configuration



PARAMETER_REQUEST_SOCKET_TIMEOUT
final public static String PARAMETER_REQUEST_SOCKET_TIMEOUT(Code)
Name of axis2.xml requestTimeout parameter for SimpleHTTPServer configuration



PARAMETER_REQUEST_TCP_NO_DELAY
final public static String PARAMETER_REQUEST_TCP_NO_DELAY(Code)
Name of axis2.xml requestTcpNoDelay parameter for SimpleHTTPServer configuration



PARAMETER_THREAD_KEEP_ALIVE_TIME
final public static String PARAMETER_THREAD_KEEP_ALIVE_TIME(Code)
Name of axis2.xml threadKeepAliveTime parameter for SimpleHTTPServer configuration



PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT
final public static String PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT(Code)
Name of axis2.xml threadKeepAliveTimeUnit parameter for SimpleHTTPServer configuration




Constructor Detail
HttpFactory
public HttpFactory(ConfigurationContext configurationContext) throws AxisFault(Code)
Create and configure a new HttpFactory



HttpFactory
public HttpFactory(ConfigurationContext configurationContext, int port) throws AxisFault(Code)
Create and configure a new HttpFactory



HttpFactory
public HttpFactory(ConfigurationContext configurationContext, int port, WorkerFactory requestWorkerFactory) throws AxisFault(Code)
Create and configure a new HttpFactory




Method Detail
getConfigurationContext
public ConfigurationContext getConfigurationContext()(Code)
Getter for configurationContext



getHostAddress
public String getHostAddress()(Code)
Getter for hostAddress the host address (or name) to be use in reply-to endpoint references, or null if not specified (default = null)



getHttpConfiguration
public TransportInDescription getHttpConfiguration()(Code)
Getter for httpConfiguration



getListenerManager
public ListenerManager getListenerManager()(Code)
Return the configured listener manager or create and configure one with configurationContext



getOriginServer
public String getOriginServer()(Code)
Getter for originServer the Server header string for outgoing messages (default "Simple-Server/1.1")



getPort
public int getPort()(Code)
Getter for port return the port on which to listen for http connections (default = 6060)



getRequestCoreThreadPoolSize
public int getRequestCoreThreadPoolSize()(Code)
Getter for RequestCoreThreadPoolSize the size of the thread pool use to process requests assuming there is adequate queue space (default 25)



getRequestMaxThreadPoolSize
public int getRequestMaxThreadPoolSize()(Code)
Getter for requestMaxThreadPoolSize the maximum size of the thread pool used to process requests if the queue fills up (default 150).Since the default queue is unbounded this parameter is meaningless unless you override newRequestBlockingQueue()



getRequestSocketTimeout
public int getRequestSocketTimeout()(Code)
Getter for requestSocketTimeout the maximum time in millis to wait for data on a request socket (default 20000)



getRequestTcpNoDelay
public boolean getRequestTcpNoDelay()(Code)
Getter for requestTcpNoDelay return false iff Nagle's algorithm should be used to conserve bandwidth by minimizing segments at the cost of latency and performance (default true, i.e. maximize performance at the cost of bandwidth)



getThreadKeepAliveTime
public long getThreadKeepAliveTime()(Code)
Getter for threadKeepAliveTime how long a request processing thread in excess of the core pool size will be kept alive it if is inactive(default with threadKeepAliveTimeUnit to 180 seconds)



getThreadKeepAliveTimeUnit
public TimeUnit getThreadKeepAliveTimeUnit()(Code)
Getter for threadKeepAliveTimeUnit return the time unit for threadKeepAliveTime (default SECONDS)



newConnStrategy
public ConnectionReuseStrategy newConnStrategy()(Code)



newHttpProcessor
public HttpProcessor newHttpProcessor()(Code)



newListenerExecutor
public ExecutorService newListenerExecutor(int port)(Code)
Create the executor used to launch the single requestConnectionListener



newRequestBlockingQueue
public BlockingQueue newRequestBlockingQueue()(Code)
Create the queue used to hold incoming requests when requestCoreThreadPoolSize threads are busy. Default is an unbounded queue.



newRequestConnectionListener
public IOProcessor newRequestConnectionListener(int port, HttpConnectionManager manager, HttpParams params) throws IOException(Code)
Create the listener for request connections



newRequestConnectionManager
public HttpConnectionManager newRequestConnectionManager(ExecutorService requestExecutor, WorkerFactory workerFactory, HttpParams params)(Code)
Create the connection manager used to launch request threads



newRequestConnectionParams
public HttpParams newRequestConnectionParams()(Code)
Create and set the parameters applied to incoming request connections



newRequestExecutor
public ExecutorService newRequestExecutor(int port)(Code)
Create the executor use the manage request processing threads



newRequestWorkerFactory
public WorkerFactory newRequestWorkerFactory()(Code)
Create the factory for request workers



newResponseFactory
public HttpResponseFactory newResponseFactory()(Code)



setHostAddress
public void setHostAddress(String hostAddress)(Code)
Setter for hostAddress



setOriginServer
public void setOriginServer(String originServer)(Code)
Setter for originServer



setPort
public void setPort(int port)(Code)
Setter for port



setRequestCoreThreadPoolSize
public void setRequestCoreThreadPoolSize(int requestCoreThreadPoolSize)(Code)
Setter for RequestCoreThreadPoolSize



setRequestMaxThreadPoolSize
public void setRequestMaxThreadPoolSize(int requestMaxThreadPoolSize)(Code)
Setter for requestMaxThreadPoolSize



setRequestSocketTimeout
public void setRequestSocketTimeout(int requestSocketTimeout)(Code)
Setter for requestSocketTimeout



setRequestTcpNoDelay
public void setRequestTcpNoDelay(boolean requestTcpNoDelay)(Code)
Setter for requestTcpNoDelay



setThreadKeepAliveTime
public void setThreadKeepAliveTime(long threadKeepAliveTime)(Code)
Setter for threadKeepAliveTime



setThreadKeepAliveTimeUnit
public void setThreadKeepAliveTimeUnit(TimeUnit threadKeepAliveTimeUnit)(Code)
Setter for threadKeepAliveTimeUnit



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.