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


java.lang.Object
   org.apache.axis2.client.Options

Options
public class Options implements Externalizable(Code)
Holder for operation client options. This is used by the other classes in this package to configure various aspects of how a client communicates with a service. It exposes a number of predefined properties as part of the API (with specific getXXX and setXXX methods), and also allows for arbitrary named properties to be passed using a properties map with the property name as the key value. Instances of this class can be chained together for property inheritance, so that if a property is not set in one instance it will check its parent for a setting.


Field Summary
final public static  intDEFAULT_TIMEOUT_MILLISECONDS
     Default blocking timeout value.
protected  TransportOutDescriptiontransportOut
     This is used for sending and receiving messages.

Constructor Summary
public  Options()
    
public  Options(Options parent)
     In normal mode operation, this options will try to fulfil the request from its values.

Method Summary
public  voidactivate(ConfigurationContext cc)
     This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have a configurationContext from the active engine.
public  voidaddReferenceParameter(OMElement referenceParameter)
     Add WS-Addressing ReferenceParameter child element.
public  voidaddRelatesTo(RelatesTo relatesTo)
     Add WS-Addressing RelatesTo item.
public  StringgetAction()
     Get WS-Addressing Action / SOAP Action string.
public  EndpointReferencegetFaultTo()
     Get WS-Addressing FaultTo endpoint reference.
public  EndpointReferencegetFrom()
     Set WS-Addressing From endpoint reference.
public  TransportListenergetListener()
     Get listener used for incoming message.
public  StringgetLogCorrelationIDString()
     Get the ID associated with this object instance. A string that can be output to a log file as an identifierfor this object instance.
public  StringgetMessageId()
     Get WS-Addressing MessageId.
public  OptionsgetParent()
     Get parent instance providing default property values.
public  StringgetPassword()
    
public  MapgetProperties()
     Get a copy of the general option properties.
public  ObjectgetProperty(String key)
     Get named property value.
Parameters:
  key - the value related to this key.
public  RelatesTogetRelatesTo(String type)
     Get WS-Addressing RelatesTo item with a specified type.
public  RelatesTogetRelatesTo()
     Return a single instance of WS-Addressing RelatesTo that has a relationship type of either "http://www.w3.org/2005/08/addressing/reply" or "wsa:Reply".
public  RelatesTo[]getRelationships()
     Get all WS-Addressing RelatesTo items.
public  EndpointReferencegetReplyTo()
     Get WS-Addressing ReplyTo endpoint reference.
public  StringgetSoapVersionURI()
     Get SOAP version being used.
public  longgetTimeOutInMilliSeconds()
     Gets the wait time after which a client times out in a blocking scenario.
public  EndpointReferencegetTo()
     Get WS-Addressing To endpoint reference.
public  TransportInDescriptiongetTransportIn()
     Get transport used for incoming message.
public  StringgetTransportInProtocol()
     Get transport protocol used for incoming message.
public  TransportOutDescriptiongetTransportOut()
     Get outbound transport description.
public  StringgetUserName()
    
public  booleanisCallTransportCleanup()
    
public  booleanisEquivalent(Options obj)
     Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.
public  booleanisExceptionToBeThrownOnSOAPFault()
     If there is a SOAP Fault in the body of the incoming SOAP Message, system can be configured to throw an exception with the details extracted from the information from the fault message.
public  booleanisManageSession()
     Check if session management is enabled.
public  booleanisUseSeparateListener()
     Check whether the two SOAP Messages are be sent over same channel or over separate channels.
public  voidreadExternal(ObjectInput in)
     Restore the contents of the MessageContext that was previously saved.

NOTE: The field data must read back in the same order and type as it was written.

public  voidsetAction(String action)
     Set WS-Addressing Action / SOAP Action string.
public  voidsetCallTransportCleanup(boolean callTransportCleanup)
    
public  voidsetExceptionToBeThrownOnSOAPFault(boolean exceptionToBeThrownOnSOAPFault)
     If there is a SOAP Fault in the body of the incoming SOAP Message, system can be configured to throw an exception with the details extracted from the information from the fault message.
public  voidsetFaultTo(EndpointReference faultTo)
     Set WS-Addressing FaultTo endpoint reference.
public  voidsetFrom(EndpointReference from)
     Set WS-Addressing From endpoint reference.
public  voidsetListener(TransportListener listener)
     Set listener used for incoming message.
public  voidsetManageSession(boolean manageSession)
     Set session management enabled state.
public  voidsetMessageId(String messageId)
     Set WS-Addressing MessageId.
public  voidsetParent(Options parent)
     Set parent instance providing default property values.
public  voidsetPassword(String password)
    
public  voidsetProperties(Map properties)
     Set the general property definitions.
public  voidsetProperty(String propertyKey, Object property)
     General properties you need to pass in to the message context must be set via this method.
public  voidsetRelationships(RelatesTo[] list)
     Set WS-Addressing RelatesTo items.
public  voidsetReplyTo(EndpointReference replyTo)
     Set WS-Addressing ReplyTo endpoint.
public  voidsetSenderTransport(String senderTransport, AxisConfiguration axisConfiguration)
     Set transport used for outgoing message.
public  voidsetSoapVersionURI(String soapVersionURI)
     Set the SOAP version to be used.
public  voidsetTimeOutInMilliSeconds(long timeOutInMilliSeconds)
     This is used in blocking scenario.
public  voidsetTo(EndpointReference to)
     Set WS-Addressing To endpoint.
public  voidsetTransportIn(TransportInDescription transportIn)
     Set transport used for incoming message.
public  voidsetTransportInProtocol(String transportInProtocol)
     Set transport protocol used for incoming message.
public  voidsetTransportInfo(String senderTransport, String listenerTransport, boolean useSeparateListener)
     Sets transport information to the call.
public  voidsetTransportOut(TransportOutDescription transportOut)
     Set transport used for outgoing message.
public  voidsetUseSeparateListener(boolean useSeparateListener)
     Used to specify whether the two SOAP Messages are be sent over same channel or over separate channels.
public  voidsetUserName(String userName)
    
public  voidwriteExternal(ObjectOutput out)
     Save the contents of this object.

Field Detail
DEFAULT_TIMEOUT_MILLISECONDS
final public static int DEFAULT_TIMEOUT_MILLISECONDS(Code)
Default blocking timeout value.



transportOut
protected TransportOutDescription transportOut(Code)
This is used for sending and receiving messages.




Constructor Detail
Options
public Options()(Code)
Default constructor



Options
public Options(Options parent)(Code)
In normal mode operation, this options will try to fulfil the request from its values. If that is not possible, this options will request those information from its parent.
Parameters:
  parent -




Method Detail
activate
public void activate(ConfigurationContext cc)(Code)
This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have a configurationContext from the active engine. The configurationContext is used to help this object to plug back into the engine's configuration and deployment objects.
Parameters:
  cc - The configuration context object representing the active configuration



addReferenceParameter
public void addReferenceParameter(OMElement referenceParameter)(Code)
Add WS-Addressing ReferenceParameter child element. Multiple child may be used. TODO Add get method, implement handling.
Parameters:
  referenceParameter -



addRelatesTo
public void addRelatesTo(RelatesTo relatesTo)(Code)
Add WS-Addressing RelatesTo item.
Parameters:
  relatesTo -



getAction
public String getAction()(Code)
Get WS-Addressing Action / SOAP Action string. action



getFaultTo
public EndpointReference getFaultTo()(Code)
Get WS-Addressing FaultTo endpoint reference. endpoint



getFrom
public EndpointReference getFrom()(Code)
Set WS-Addressing From endpoint reference. endpoint



getListener
public TransportListener getListener()(Code)
Get listener used for incoming message. listener



getLogCorrelationIDString
public String getLogCorrelationIDString()(Code)
Get the ID associated with this object instance. A string that can be output to a log file as an identifierfor this object instance. It is suitable for matching related logentries.



getMessageId
public String getMessageId()(Code)
Get WS-Addressing MessageId. uri string



getParent
public Options getParent()(Code)
Get parent instance providing default property values. parent (null if none)



getPassword
public String getPassword()(Code)



getProperties
public Map getProperties()(Code)
Get a copy of the general option properties. Because of the way options are stored this does not include properties with specific get/set methods, only the general properties identified by a text string. The returned map merges properties inherited from parent options, if any, to give a complete set of property definitions as seen by users of this options instance. The returned copy is not "live", so changes you make to the copy are not reflected in the actual option settings. However, you can make the modified values take effect with a call to Options.setProperties(Map) , copy of general properties



getProperty
public Object getProperty(String key)(Code)
Get named property value.
Parameters:
  key - the value related to this key. null, if not found.



getRelatesTo
public RelatesTo getRelatesTo(String type)(Code)
Get WS-Addressing RelatesTo item with a specified type. If there are multiple RelatesTo items defined with the same type, the one returned by this method is arbitrary - if you need to handle this case, you can instead use the Options.getRelationships() to retrieve all the items and check for multiple matches.
Parameters:
  type - relationship type (URI) item of specified type



getRelatesTo
public RelatesTo getRelatesTo()(Code)
Return a single instance of WS-Addressing RelatesTo that has a relationship type of either "http://www.w3.org/2005/08/addressing/reply" or "wsa:Reply". If no such instance of RelatesTo can be found then return null. an instance of RelatesTo



getRelationships
public RelatesTo[] getRelationships()(Code)
Get all WS-Addressing RelatesTo items. array of items



getReplyTo
public EndpointReference getReplyTo()(Code)
Get WS-Addressing ReplyTo endpoint reference. endpoint



getSoapVersionURI
public String getSoapVersionURI()(Code)
Get SOAP version being used. version



getTimeOutInMilliSeconds
public long getTimeOutInMilliSeconds()(Code)
Gets the wait time after which a client times out in a blocking scenario. The default is Options#DEFAULT_TIMEOUT_MILLISECONDS timeOutInMilliSeconds



getTo
public EndpointReference getTo()(Code)
Get WS-Addressing To endpoint reference. endpoint



getTransportIn
public TransportInDescription getTransportIn()(Code)
Get transport used for incoming message. transport information



getTransportInProtocol
public String getTransportInProtocol()(Code)
Get transport protocol used for incoming message. name protocol name ("http", "tcp", etc.)



getTransportOut
public TransportOutDescription getTransportOut()(Code)
Get outbound transport description. description



getUserName
public String getUserName()(Code)



isCallTransportCleanup
public boolean isCallTransportCleanup()(Code)



isEquivalent
public boolean isEquivalent(Options obj)(Code)
Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.

This differs from the java.lang.Object.equals() method in that the equals() method generally looks at both the object identity (location in memory) and the object state (data).


Parameters:
  obj - The object to compare with TRUE if this object is equivalent with the specified objectthat is, key fields matchFALSE, otherwise




isExceptionToBeThrownOnSOAPFault
public boolean isExceptionToBeThrownOnSOAPFault()(Code)
If there is a SOAP Fault in the body of the incoming SOAP Message, system can be configured to throw an exception with the details extracted from the information from the fault message. This boolean variable will enable that facility. If this is false, the response message will just be returned to the application, irrespective of whether it has a Fault or not. true if exception to be thrown



isManageSession
public boolean isManageSession()(Code)
Check if session management is enabled. true if enabled



isUseSeparateListener
public boolean isUseSeparateListener()(Code)
Check whether the two SOAP Messages are be sent over same channel or over separate channels. Only duplex transports such as http and tcp support a false value. separate channel flag



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)
Restore the contents of the MessageContext that was previously saved.

NOTE: The field data must read back in the same order and type as it was written. Some data will need to be validated when resurrected.
Parameters:
  in - The stream to read the object contents from
throws:
  IOException -
throws:
  ClassNotFoundException -




setAction
public void setAction(String action)(Code)
Set WS-Addressing Action / SOAP Action string.
Parameters:
  action -



setCallTransportCleanup
public void setCallTransportCleanup(boolean callTransportCleanup)(Code)



setExceptionToBeThrownOnSOAPFault
public void setExceptionToBeThrownOnSOAPFault(boolean exceptionToBeThrownOnSOAPFault)(Code)
If there is a SOAP Fault in the body of the incoming SOAP Message, system can be configured to throw an exception with the details extracted from the information from the fault message. This boolean variable will enable that facility. If this is false, the response message will just be returned to the application, irrespective of whether it has a Fault or not.
Parameters:
  exceptionToBeThrownOnSOAPFault -



setFaultTo
public void setFaultTo(EndpointReference faultTo)(Code)
Set WS-Addressing FaultTo endpoint reference.
Parameters:
  faultTo - endpoint



setFrom
public void setFrom(EndpointReference from)(Code)
Set WS-Addressing From endpoint reference.
Parameters:
  from - endpoint



setListener
public void setListener(TransportListener listener)(Code)
Set listener used for incoming message.
Parameters:
  listener -



setManageSession
public void setManageSession(boolean manageSession)(Code)
Set session management enabled state. When session management is enabled, the engine will automatically send session data (such as the service group id, or HTTP cookies) as part of requests.
Parameters:
  manageSession - true if enabling sessions



setMessageId
public void setMessageId(String messageId)(Code)
Set WS-Addressing MessageId.
Parameters:
  messageId - URI string



setParent
public void setParent(Options parent)(Code)
Set parent instance providing default property values.
Parameters:
  parent - (null if none)



setPassword
public void setPassword(String password)(Code)



setProperties
public void setProperties(Map properties)(Code)
Set the general property definitions. Due to the way properties are stored, this will not effect the values of predefined properties with specific get/set methods.
Parameters:
  properties -



setProperty
public void setProperty(String propertyKey, Object property)(Code)
General properties you need to pass in to the message context must be set via this method. This method can only be used for properties which do not have specific get/set methods.

Here are some of the properties supported in Axis2.

Generic Constants

  • org.apache.axis2.Constants.Configuration.TRANSPORT_URL

    Sometimes you want to send your SOAP message through a node, before it reaches to its destination. This means you want to give transport URL different from the URL of the ultimate destination. A typical example would be wanting to send this SOAP (or REST)message through a transparent proxy or through a message monitoring applet. How can that be done using the ServiceClient API?

     options.setTo("http://destination.org");
     options.setProperty(MessageContextConstants.TRANSPORT_URL, "http://myProxy.org");
     

    This will send your SOAP message to "http://myProxy.org", but if WS-Addressing is enabled, wsa:To will contain "http://destination.org" as To address.

  • org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING

    This will enable user to set the character set encoding scheme to be used when sending the message. Default is set to "UTF-8"

  • org.apache.axis2.Constants.Configuration.ENABLE_MTOM

    This will enable/disable MTOM support for outgoing messages.

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE

WS-Addressing Module Specific Constants

  • org.apache.axis2.addressing.AddressingConstants.WS_ADDRESSING_VERSION

    This will enable to select one of the two WS-Addressing versions available, if WS-Addressing is engaged.

    Possible values are:

     org.apache.axis2.addressing.AddressingConstants.Final.WSA_NAMESPACE
     and
     org.apache.axis2.addressing.AddressingConstants.Submission.WSA_NAMESPACE
  • org.apache.axis2.addressing.AddressingConstants.REPLACE_ADDRESSING_HEADERS

    AddressingOutHandler picks up the addressing information from the message context and set them to the outgoing message. But someone may have already put some addressing headers, before the AddressingOutHandler. This flag will notify the handler whether to override them or not.

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE
  • org.apache.axis2.addressing.AddressingConstants.
    DISABLE_ADDRESSING_FOR_OUT_MESSAGES

    If WS-Addressing is engaged globally or some how in effect for this particular invocation, this will disable Axis2 from putting WS-Addressing headers in to the out going SOAP message. (Note that Axis2 will not put addressing headers to the outgoing message, irrespective of the above flag, if the incoming message did not contain addressing headers).

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE

HTTP Constants

  • org.apache.axis2.transport.http.HTTPConstants.CHUNKED

    This will enable/disable chunking support.

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE
  • org.apache.axis2.transport.http.HTTPConstants.NTLM_AUTHENTICATION

    This enables the user to pass in NTLM authentication information, such as host, port, realm, username, password to be used with HTTP transport sender.

    The value should always be an instance of:

    org.apache.axis2.transport.http.HttpTransportProperties.
     NTLMAuthentication
  • org.apache.axis2.transport.http.HTTPConstants.PROXY

    This enables the user to pass in proxy information, such as proxy host name, port, domain, username, password to be used with HTTP transport sender.

    The value should always be an instance of:

    org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties
  • The value should always be an instance of:

    org.apache.axis2.transport.http.HttpTransportProperties.BasicAuthentication

  • org.apache.axis2.transport.http.HTTPConstants.SO_TIMEOUT

    This enables the user to pass in socket timeout value as an Integer. If nothing is set, the default value is 60000 milliseconds.

  • org.apache.axis2.transport.http.HTTPConstants.CONNECTION_TIMEOUT

    This enables the user to pass in connection timeout value as an Integer. If nothing is set, the default value is 60000 milliseconds.

  • org.apache.axis2.transport.http.HTTPConstants.USER_AGENT

    This enables the user to set the user agent header in the outgoing HTTP request. Default value is "Axis2"

  • org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST

    If set this will GZip your request and send over to the destination. Before doing this, you must make sure that the receiving end supports GZip compressed streams.

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE
  • org.apache.axis2.transport.http.HTTPConstants.MC_ACCEPT_GZIP

    Whether or not you send a gzip-ped request, you can choose to receive GZIP back from the server using this flag.

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE
  • org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING

    This enables the user to set the cookie string header in the outgoing HTTP request.

  • org.apache.axis2.transport.http.HTTPConstants.HTTP_PROTOCOL_VERSION

    This will set the HTTP protocol version to be used in sending the SOAP requests.

    Possible values are :

     

    HTTP/1.1 - HTTPConstants.HEADER_PROTOCOL_11 HTTP/1.0 - HTTPConstants.HEADER_PROTOCOL_10

    Default is to use HTTP/1.1.

  • org.apache.axis2.transport.http.HTTPConstants.HTTP_HEADERS

    You might sometimes want to send your own custom HTTP headers. You can set an ArrayList filled with

    org.apache.commons.httpclient.Header

    objects using the above property. You must not try to override the Headers the Axis2 engine is setting to the outgoing message.

  • org.apache.axis2.transport.http.HTTPConstants.REUSE_HTTP_CLIENT

    You might want to use the same HTTPClient instance for multiple invocations. This flag will notify the engine to use the same HTTPClient between invocations.

  • org.apache.axis2.transport.http.HTTPConstants.CACHED_HTTP_CLIENT

    If user had requested to re-use an HTTPClient using the above property, this property can be used to set a custom HTTPClient to be re-used.

Constants to be used in a REST Invocation

  • org.apache.axis2.transport.http.Constants.Configuration.ENABLE_REST

    Enabling REST using the above flag will send your request as a REST invocation.

    Possible values are:

    "true"/"false" or Boolean.TRUE/Boolean.FALSE
  • org.apache.axis2.transport.http.Constants.Configuration.HTTP_METHOD

    This will help the user to pick the HTTP method to be used during a REST invocation.

    Possible values are :

     org.apache.axis2.Constants.Configuration.HTTP_METHOD_GET
     and
     org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST
     

    Default is to use POST method.

  • org.apache.axis2.transport.http.Constants.Configuration.CONTENT_TYPE

    This will help the user to pick the content type to be used during a REST

    invocation.

    Possible values are :

    • application/xml -
      HTTPConstants.MEDIA_TYPE_APPLICATION_XML
    • application/x-www-form-urlencoded -
      HTTPConstants.MEDIA_TYPE_X_WWW_FORM
    • text/xml -
      MEDIA_TYPE_TEXT_XML
    • multipart/related -
      MEDIA_TYPE_MULTIPART_RELATED

Parameters:
  propertyKey -
Parameters:
  property -



setRelationships
public void setRelationships(RelatesTo[] list)(Code)
Set WS-Addressing RelatesTo items.
Parameters:
  list -



setReplyTo
public void setReplyTo(EndpointReference replyTo)(Code)
Set WS-Addressing ReplyTo endpoint.
Parameters:
  replyTo - endpoint



setSenderTransport
public void setSenderTransport(String senderTransport, AxisConfiguration axisConfiguration) throws AxisFault(Code)
Set transport used for outgoing message.
Parameters:
  senderTransport - transport name in Axis2 configuration("http", "tcp", etc.)
Parameters:
  axisConfiguration -
throws:
  AxisFault - if the transport is not found



setSoapVersionURI
public void setSoapVersionURI(String soapVersionURI)(Code)
Set the SOAP version to be used.
Parameters:
  soapVersionURI -
See Also:   org.apache.axis2.namespace.Constants.URI_SOAP11_ENV
See Also:   org.apache.axis2.namespace.Constants.URI_SOAP12_ENV



setTimeOutInMilliSeconds
public void setTimeOutInMilliSeconds(long timeOutInMilliSeconds)(Code)
This is used in blocking scenario. Client will time out after waiting this amount of time. The default is 2000 and must be provided in multiples of 100.
Parameters:
  timeOutInMilliSeconds -



setTo
public void setTo(EndpointReference to)(Code)
Set WS-Addressing To endpoint.
Parameters:
  to - endpoint



setTransportIn
public void setTransportIn(TransportInDescription transportIn)(Code)
Set transport used for incoming message.
Parameters:
  transportIn -



setTransportInProtocol
public void setTransportInProtocol(String transportInProtocol)(Code)
Set transport protocol used for incoming message.
Parameters:
  transportInProtocol - ("http", "tcp", etc.)



setTransportInfo
public void setTransportInfo(String senderTransport, String listenerTransport, boolean useSeparateListener) throws AxisFault(Code)
Sets transport information to the call. The scenarios supported are as follows:

 [senderTransport, listenerTransport, useSeparateListener]
 http, http, true
 http, http, false
 http, smtp, true
 smtp, http, true
 smtp, smtp, true
 tcp,  tcp,  true
 tcp,  tcp,  false
 etc.
 


Parameters:
  senderTransport -
Parameters:
  listenerTransport -
Parameters:
  useSeparateListener -
throws:
  AxisFault -



setTransportOut
public void setTransportOut(TransportOutDescription transportOut)(Code)
Set transport used for outgoing message.
Parameters:
  transportOut -



setUseSeparateListener
public void setUseSeparateListener(boolean useSeparateListener)(Code)
Used to specify whether the two SOAP Messages are be sent over same channel or over separate channels. The value of this variable depends on the transport specified. For e.g., if the transports are different this is true by default. HTTP transport supports both cases while SMTP transport supports only two channel case.
Parameters:
  useSeparateListener -



setUserName
public void setUserName(String userName)(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
Save the contents of this object.

NOTE: Transient fields and static fields are not saved.
Parameters:
  out - The stream to write the object contents to
throws:
  IOException -




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.