All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ups.xmlsdk.util.XmlTransmitter

java.lang.Object
   |
   +----com.ups.xmlsdk.util.XmlTransmitter

public class XmlTransmitter
extends Object
The XmlTransmitter will transmit an HTTP/HTTPS post with the StringBuffer provided as the data of the post message. The XmlTransmitter must be constructed with a URL or IP address and a protocol to use for transmitting the message.


Constructor Index

 o XmlTransmitter(String, String, String)
Constructs a new XmlTransmitter for purposes of HTTP posts not inhibited by a Proxy Server or FireWall.
 o XmlTransmitter(String, String, String, String, String, String, String)
Constructs a new XmlTransmitter for purposes of HTTP posts and allows the addition of Proxy information for access through a Proxy Server or FireWall.

Method Index

 o contactService(String, String)
This method is used to send the XmlTransmitter information to a designated service.
 o getXml()
This method returns the xml response, from the XmlTransmitter's URL, to the caller of method.
 o setXml(StringBuffer)
Setter for purposes of giving the XmlTransmitter the request data.
 o toString()
toString() returns a String containing the values of the XmlTransmitter's instance variables.

Constructors

 o XmlTransmitter
 public XmlTransmitter(String hostname,
                       String protocol,
                       String keyring)
Constructs a new XmlTransmitter for purposes of HTTP posts not inhibited by a Proxy Server or FireWall.

Parameters:
hostname - java.lang.String
protocol - java.lang.String
keyring - java.lang.String
 o XmlTransmitter
 public XmlTransmitter(String hostname,
                       String protocol,
                       String keyring,
                       String proxy,
                       String port,
                       String username,
                       String password)
Constructs a new XmlTransmitter for purposes of HTTP posts and allows the addition of Proxy information for access through a Proxy Server or FireWall. The software assumes Basic Authentication is used by 99% of Proxy Servers and Firewalls.

Parameters:
hostname - java.lang.String
protocol - java.lang.String
proxy - java.lang.String
port - java.lang.String
keyring - java.lang.String

Methods

 o contactService
 public void contactService(String service,
                            String prefix) throws Exception
This method is used to send the XmlTransmitter information to a designated service.

Parameters:
service - java.lang.String
prefix - java.lang.String
 o getXml
 public StringBuffer getXml()
This method returns the xml response, from the XmlTransmitter's URL, to the caller of method.

Returns:
java.lang.StringBuffer
 o setXml
 public void setXml(StringBuffer input)
Setter for purposes of giving the XmlTransmitter the request data.

Parameters:
input - java.lang.StringBuffer
 o toString
 public String toString()
toString() returns a String containing the values of the XmlTransmitter's instance variables.

Returns:
java.lang.String
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index