com.dotmarketing.util.ups
Class UPSConnections

java.lang.Object
  extended by com.dotmarketing.util.ups.UPSConnections

public class UPSConnections
extends java.lang.Object

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


Constructor Summary
UPSConnections()
           
 
Method Summary
static java.lang.StringBuffer accessXMLRequest()
          This xml is obligatory to use.
 java.lang.String contactService(java.lang.String service, java.lang.StringBuffer xmlRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPSConnections

public UPSConnections()
Method Detail

contactService

public java.lang.String contactService(java.lang.String service,
                                       java.lang.StringBuffer xmlRequest)
                                throws java.lang.Exception
Parameters:
service - This field indicate the url page tools to acces in this case "Rate" is the value to use
xmlRequest - is the XML Request
Returns:
the XML Response String of the UPS SERVER
Throws:
java.lang.Exception

accessXMLRequest

public static java.lang.StringBuffer accessXMLRequest()
This xml is obligatory to use. Appended with the xml request to get a result

Returns:


Copyright © 2013 dotCMS Inc. All Rights Reserved.