Project 4

cscie259.project4.scamazon
Class Proxy

java.lang.Object
  extended bycscie259.project4.scamazon.Proxy

public final class Proxy
extends java.lang.Object

Helper methods for Scamazon.com.

You MAY modify this file.

Version:
6.0
Author:
Computer Science E-259, YOUR NAME GOES HERE

Constructor Summary
private Proxy()
          Default constructor is private so that this utility class cannot be instantiated.
 
Method Summary
static java.lang.String processPO(java.lang.String poXmlString, java.lang.String host, int port)
          A proxy for the web service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

private Proxy()
Default constructor is private so that this utility class cannot be instantiated.

Method Detail

processPO

public static java.lang.String processPO(java.lang.String poXmlString,
                                         java.lang.String host,
                                         int port)
                                  throws javax.servlet.ServletException
A proxy for the web service. Takes as input a PO element in the form of a String (as well as the warehouse's current host and port); returns as a String a PO-ACK element.

Parameters:
poXmlString - PO element
host - warehouse's host (e.g., "ice1.fas.harvard.edu")
port - warehouse's (i.e., servlet container's) current port
Returns:
PO-ACK element
Throws:
javax.servlet.ServletException - if a servlet-related error occurs

Project 4