    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.

##

XmlTransmitter(String, String, String)
  Constructs a new XmlTransmitter for purposes of HTTP posts not inhibited by a Proxy Server or FireWall.
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.

##

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

##

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

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

##

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

getXml

     public StringBuffer getXml()

  This method returns the xml response, from the XmlTransmitter's URL, to the caller of method.

  Returns:
    java.lang.StringBuffer

setXml

     public void setXml(StringBuffer input)

  Setter for purposes of giving the XmlTransmitter the request data.

  Parameters:
    input - java.lang.StringBuffer

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