com.worldpac.fulfillment
Class Fulfiller

java.lang.Object
  |
  +--com.worldpac.fulfillment.Fulfiller

public class Fulfiller
extends java.lang.Object

Creates a connection to Worldpac using host and authentication parameters. A Fulfiller must be created and initialized before other objects can be used.


Constructor Summary
Fulfiller()
           
 
Method Summary
 java.lang.String getID()
          Get ID.
 java.lang.String initialize(java.lang.String host, int port, java.lang.String user, java.lang.String password)
          Initialize the Fulfiller object.
 java.lang.String searchForProductID(java.lang.String brandID, java.lang.String productString)
          Search for Worldpac product ID.
 void shutdown()
          Shut down communications and end internal threads associated with this Fulfiller.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fulfiller

public Fulfiller()
Method Detail

initialize

public java.lang.String initialize(java.lang.String host,
                                   int port,
                                   java.lang.String user,
                                   java.lang.String password)
Initialize the Fulfiller object.

Parameters:
host - The name of the Worldpac server. Should be "dca.wpac.com" for testing, "fulfillment.wpac.com" for production.
port - 2009 for testing, 2010 for production. Prodcution connections must be routed over a preconfigured IPSec VPN.
user - Worldpac customer number.
password - Case-insensitive.
Returns:
Error text. null if successful.

getID

public java.lang.String getID()
Get ID.

Returns:
The ID of this Fulfiller object. null if uninitialized.

searchForProductID

public java.lang.String searchForProductID(java.lang.String brandID,
                                           java.lang.String productString)
Search for Worldpac product ID.

Parameters:
brandID - Worldpac brand identifier.
productString - Unformatted product number string.
Returns:
Worldpac product ID. null if no product ID found.

shutdown

public void shutdown()
Shut down communications and end internal threads associated with this Fulfiller.