Java Doc for HTTPConduit.java in  » Web-Services-apache-cxf-2.0.1 » transports » org » apache » cxf » transport » 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 Services apache cxf 2.0.1 » transports » org.apache.cxf.transport.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cxf.transport.http.HTTPConduit

HTTPConduit
public class HTTPConduit extends AbstractConduit implements Configurable,Assertor(Code)
This Conduit handles the "http" and "https" transport protocols. An instance is governed by policies either explicity set or by configuration.

Inner Class :protected class InterposedMessageObserver implements MessageObserver

Field Summary
final public static  StringKEY_HTTP_CONNECTION
     This constant is the Message(Map) key for the HttpURLConnection that is used to get the response.
protected  HttpURLConnectionFactoryconnectionFactory
     This field holds the connection factory, which primarily is used to factor out SSL specific code from this implementation.

This field is "protected" to facilitate some contrived UnitTesting so that an extended class may alter its value with an EasyMock URLConnection Factory.


Constructor Summary
public  HTTPConduit(Bus b, EndpointInfo ei)
    
public  HTTPConduit(Bus b, EndpointInfo ei, EndpointReferenceType t)
    

Method Summary
public  voidassertMessage(Message message)
    
public  booleancanAssert(QName type)
    
public  voidclose(Message msg)
    
public  voidclose()
    
 voidfinalizeConfig()
     This call gets called by the HTTPTransportFactory after it causes an injection of the Spring configuration properties of this Conduit.
protected  StringgetAddress()
    
public  AuthorizationPolicygetAuthorization()
     This method gets the Authorization Policy that was configured or explicitly set for this HTTPConduit.
public synchronized  DestinationgetBackChannel()
     Retreive the back-channel Destination.
public  HttpBasicAuthSuppliergetBasicAuthSupplier()
     This method gets the Basic Auth Supplier that was set/configured for this HTTPConduit.
public  StringgetBeanName()
     This is part of the Configurable interface which retrieves the configuration from spring injection.
public  HTTPClientPolicygetClient(Message message)
    
public  HTTPClientPolicygetClient()
     This method retrieves the Client Side Policy set/configured for this HTTPConduit.
final public  StringgetConduitName()
     This method returns the name of the conduit, which is based on the endpoint name plus the SC_HTTP_CONDUIT_SUFFIX.
protected  MessageObservergetDecoupledObserver()
    
protected  LoggergetLogger()
     This method returns the registered Logger for this conduit.
protected static  InputStreamgetPartialResponse(HttpURLConnection connection, int responseCode)
     Get an input stream containing the partial response if one is present.
public  ProxyAuthorizationPolicygetProxyAuthorization()
     This method retrieves the Proxy Authorization Policy for a proxy that is set/configured for this HTTPConduit.
public  TLSClientParametersgetTlsClientParameters()
     This method returns the TLS Client Parameters that is set/configured for this HTTPConduit.
public  MessageTrustDecidergetTrustDecider()
     This method gets the Trust Decider that was set/configured for this HTTPConduit.
protected synchronized  URLgetURL()
    
protected synchronized  URLgetURL(boolean createOnDemand)
    
public  voidprepare(Message message)
     Prepare to send an outbound HTTP message over this http conduit to a particular endpoint.

If the Message.PATH_INFO property is set it gets appended to the Conduit's endpoint URL.

protected  voidretrieveConnectionFactory()
     This method sets the connectionFactory field for this object.
public  voidsetAuthorization(AuthorizationPolicy authorization)
     This method is used to set the Authorization Policy for this conduit.
public  voidsetBasicAuthSupplier(HttpBasicAuthSupplier supplier)
     This method sets the Trust Decider for this HTTP Conduit.
public  voidsetClient(HTTPClientPolicy client)
     This method sets the Client Side Policy for this HTTPConduit.
public  voidsetProxyAuthorization(ProxyAuthorizationPolicy proxyAuthorization)
     This method sets the Proxy Authorization Policy for a specified proxy.
public  voidsetTlsClientParameters(TLSClientParameters params)
     This method sets the TLS Client Parameters for this HTTPConduit.
public  voidsetTrustDecider(MessageTrustDecider decider)
     This method sets the Trust Decider for this HTTP Conduit.

Field Detail
KEY_HTTP_CONNECTION
final public static String KEY_HTTP_CONNECTION(Code)
This constant is the Message(Map) key for the HttpURLConnection that is used to get the response.



connectionFactory
protected HttpURLConnectionFactory connectionFactory(Code)
This field holds the connection factory, which primarily is used to factor out SSL specific code from this implementation.

This field is "protected" to facilitate some contrived UnitTesting so that an extended class may alter its value with an EasyMock URLConnection Factory.





Constructor Detail
HTTPConduit
public HTTPConduit(Bus b, EndpointInfo ei) throws IOException(Code)
Constructor
Parameters:
  b - the associated Bus
Parameters:
  ei - the endpoint info of the initiator
throws:
  IOException -



HTTPConduit
public HTTPConduit(Bus b, EndpointInfo ei, EndpointReferenceType t) throws IOException(Code)
Constructor
Parameters:
  b - the associated Bus.
Parameters:
  endpoint - the endpoint info of the initiator.
Parameters:
  t - the endpoint reference of the target.
throws:
  IOException -




Method Detail
assertMessage
public void assertMessage(Message message)(Code)



canAssert
public boolean canAssert(QName type)(Code)



close
public void close(Message msg) throws IOException(Code)



close
public void close()(Code)
Close the conduit



finalizeConfig
void finalizeConfig()(Code)
This call gets called by the HTTPTransportFactory after it causes an injection of the Spring configuration properties of this Conduit.



getAddress
protected String getAddress() throws MalformedURLException(Code)
the default target address



getAuthorization
public AuthorizationPolicy getAuthorization()(Code)
This method gets the Authorization Policy that was configured or explicitly set for this HTTPConduit.



getBackChannel
public synchronized Destination getBackChannel()(Code)
Retreive the back-channel Destination. the backchannel Destination (or null if the backchannel isbuilt-in)



getBasicAuthSupplier
public HttpBasicAuthSupplier getBasicAuthSupplier()(Code)
This method gets the Basic Auth Supplier that was set/configured for this HTTPConduit. The Basic Auth Supplier or null.



getBeanName
public String getBeanName()(Code)
This is part of the Configurable interface which retrieves the configuration from spring injection.



getClient
public HTTPClientPolicy getClient(Message message)(Code)



getClient
public HTTPClientPolicy getClient()(Code)
This method retrieves the Client Side Policy set/configured for this HTTPConduit.



getConduitName
final public String getConduitName()(Code)
This method returns the name of the conduit, which is based on the endpoint name plus the SC_HTTP_CONDUIT_SUFFIX.



getDecoupledObserver
protected MessageObserver getDecoupledObserver()(Code)
the decoupled observer



getLogger
protected Logger getLogger()(Code)
This method returns the registered Logger for this conduit.



getPartialResponse
protected static InputStream getPartialResponse(HttpURLConnection connection, int responseCode) throws IOException(Code)
Get an input stream containing the partial response if one is present.
Parameters:
  connection - the connection in question
Parameters:
  responseCode - the response code an input stream if a partial response is pending on the connection



getProxyAuthorization
public ProxyAuthorizationPolicy getProxyAuthorization()(Code)
This method retrieves the Proxy Authorization Policy for a proxy that is set/configured for this HTTPConduit.



getTlsClientParameters
public TLSClientParameters getTlsClientParameters()(Code)
This method returns the TLS Client Parameters that is set/configured for this HTTPConduit.



getTrustDecider
public MessageTrustDecider getTrustDecider()(Code)
This method gets the Trust Decider that was set/configured for this HTTPConduit. The Message Trust Decider or null.



getURL
protected synchronized URL getURL() throws MalformedURLException(Code)
the default target URL



getURL
protected synchronized URL getURL(boolean createOnDemand) throws MalformedURLException(Code)

Parameters:
  createOnDemand - create URL on-demand if null the default target URL



prepare
public void prepare(Message message) throws IOException(Code)
Prepare to send an outbound HTTP message over this http conduit to a particular endpoint.

If the Message.PATH_INFO property is set it gets appended to the Conduit's endpoint URL. If the Message.QUERY_STRING property is set, it gets appended to the resultant URL following a "?".

If the Message.HTTP_REQUEST_METHOD property is NOT set, the Http request method defaults to "POST".

If the Message.PROTOCOL_HEADERS is not set on the message, it is initialized to an empty map.

This call creates the OutputStream for the content of the message. It also assigns the created Http(s)URLConnection to the Message Map.
Parameters:
  message - The message to be sent.




retrieveConnectionFactory
protected void retrieveConnectionFactory()(Code)
This method sets the connectionFactory field for this object. It is called after an SSL Client Policy is set or an HttpsHostnameVerifier because we need to reinitialize the connection factory.

This method is "protected" so that this class may be extended and override this method to put an EasyMock URL Connection factory for some contrived UnitTest that will of course break, should the calls to the URL Connection Factory get altered.




setAuthorization
public void setAuthorization(AuthorizationPolicy authorization)(Code)
This method is used to set the Authorization Policy for this conduit. Using this method will override any Authorization Policy set in configuration.



setBasicAuthSupplier
public void setBasicAuthSupplier(HttpBasicAuthSupplier supplier)(Code)
This method sets the Trust Decider for this HTTP Conduit. Using this method overrides any trust decider configured for this HTTPConduit.



setClient
public void setClient(HTTPClientPolicy client)(Code)
This method sets the Client Side Policy for this HTTPConduit. Using this method will override any HTTPClientPolicy set in configuration.



setProxyAuthorization
public void setProxyAuthorization(ProxyAuthorizationPolicy proxyAuthorization)(Code)
This method sets the Proxy Authorization Policy for a specified proxy. Using this method overrides any Authorization Policy for the proxy that is set in the configuration.



setTlsClientParameters
public void setTlsClientParameters(TLSClientParameters params)(Code)
This method sets the TLS Client Parameters for this HTTPConduit. Using this method overrides any TLS Client Parameters that is configured for this HTTPConduit.



setTrustDecider
public void setTrustDecider(MessageTrustDecider decider)(Code)
This method sets the Trust Decider for this HTTP Conduit. Using this method overrides any trust decider configured for this HTTPConduit.



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