|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.wrmf.delivery.StandardShippingService
Use the newStandardShippingService
static factory method(s),
not the StandardShippingService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
protected static boolean |
DELETE_DELIVERED_ITEM
|
private Object |
lock
|
private Hashtable |
outboxes
|
private static String |
RESOURCE
|
private boolean |
servDone
|
private TrackingNumberGenerator |
trackingNumGenerator
|
private static String |
trspOuboxName
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
private static boolean |
waitingDone
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardShippingService()
|
Method Summary | |
private void |
addItemsToQueue(DeliveryStatus status)
|
ActionPullItem |
createActionPullItem()
Supported API: false |
ActionShippingItem |
createActionShippingItem()
Supported API: false |
BLOB_IS |
createBLOB_IS(LobLocator lobloc)
Supported API: false |
ContentIS |
createContentIS(ObjectReference objRef)
Supported API: false |
FileIS |
createFileIS(String fileName)
Supported API: false |
void |
createOutbox(Class outBoxClass,
String name)
Supported API: false |
PayloadShippingItem |
createPayloadShippingItem()
Supported API: false |
Receipt |
createReceipt()
Supported API: false |
ShippingLabel |
createShippingLabel(int deliveryType,
String inboxID,
String outboxID,
String destination,
String transportType)
Supported API: false |
protected TrackingID |
createTrackingNumber()
Supported API: false |
static void |
deleteDeliveredItem(ConfirmableShippingItem csi)
|
(package private) void |
dispatchVetoableEvent(String eventType,
ShippingItem obj)
Supported API: false |
InputStream |
get(SiteAddress forAddress)
Supported API: false |
String |
getConceptualClassname()
Deprecated. |
(package private) Outbox |
getOutbox(String outboxName)
|
protected Hashtable |
getOutboxes()
Gets the object for the association that plays role: outboxes. |
protected TrackingNumberGenerator |
getTrackingNumGenerator()
Gets the object for the association that plays role: trackingNumGenerator. |
private void |
handleItemsUponStartup()
|
static void |
handleStatusUponStartup(ObjectReference objRef)
|
TrackingID |
iasPullContent(String iasUrl,
String transportType,
MethodInvocationDesc localAction,
String queryStr,
String pullMethod,
String outboxName,
String inboxName)
For I2W/W2I project only. |
InputStream |
iasPullContentImmediate(String iasUrl,
String transportType,
MethodInvocationDesc localAction,
String queryStr,
String pullMethod)
For I2W/W2I project only. |
DeliveryStatus |
inquireStatus(TrackingID id)
Supported API: false |
static StandardShippingService |
newStandardShippingService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
private void |
registerAsListener()
|
void |
registerEvents(ManagerService ms)
Register events with the passed ManagerService. |
InputStream |
sendImmediateItem(ShippingItem obj,
SiteAddress to,
TransportType transportType)
The return type is defaulted to "INDIRECT" mode, this means the InputStream from the remote site will be executed by the MethodInvocationDesc attached to the ShippingItem. |
InputStream |
sendImmediateItem(ShippingItem obj,
SiteAddress to,
TransportType transportType,
int returnType)
Delivery Type: IMMEDIATE is used by default in this invocation, and it is the only method for this delivery type. |
TrackingID |
sendItem(ShippingItem obj,
ShippingLabel toLabel)
All Delivery Type except IMMEDIATE mode use this invocation. |
TrackingID |
sendItem(ShippingItem obj,
ShippingLabel toLabel,
ShippingLabel receiptLabel)
All Delivery Type except IMMEDIATE mode use this invocation. |
protected void |
sendToOutbox(ShippingItem obj,
SiteAddress to,
TransportType transport,
DeliveryType deliveryType,
String inboxID)
Supported API: false |
protected void |
setOutboxes(Hashtable a_Outboxes)
Sets the object for the association that plays role: outboxes. |
protected void |
setTrackingNumGenerator(TrackingNumberGenerator a_TrackingNumGenerator)
Sets the object for the association that plays role: trackingNumGenerator. |
private void |
trackingNumGeneratorValidate(TrackingNumberGenerator a_TrackingNumGenerator)
|
private void |
waitInitComplete()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private TrackingNumberGenerator trackingNumGenerator
private Hashtable outboxes
private static final String versionID
private static final boolean VERBOSE
private static final String trspOuboxName
private Object lock
private boolean servDone
private static boolean waitingDone
protected static boolean DELETE_DELIVERED_ITEM
Constructor Detail |
public StandardShippingService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected TrackingNumberGenerator getTrackingNumGenerator()
protected void setTrackingNumGenerator(TrackingNumberGenerator a_TrackingNumGenerator) throws WTPropertyVetoException
a_TrackingNumGenerator
-
WTPropertyVetoException
private void trackingNumGeneratorValidate(TrackingNumberGenerator a_TrackingNumGenerator) throws WTPropertyVetoException
a_TrackingNumGenerator
-
WTPropertyVetoException
protected Hashtable getOutboxes()
protected void setOutboxes(Hashtable a_Outboxes) throws WTPropertyVetoException
a_Outboxes
-
WTPropertyVetoException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected TrackingID createTrackingNumber()
protected void sendToOutbox(ShippingItem obj, SiteAddress to, TransportType transport, DeliveryType deliveryType, String inboxID)
obj
- to
- transport
- deliveryType
- inboxID
- void dispatchVetoableEvent(String eventType, ShippingItem obj) throws WTException
eventType
- obj
-
WTException
public void registerEvents(ManagerService ms)
registerEvents
in interface Manager
registerEvents
in class StandardManager
ms
- public static StandardShippingService newStandardShippingService() throws WTException
WTException
public TrackingID sendItem(ShippingItem obj, ShippingLabel toLabel) throws WTDeliveryException
sendItem
in interface ShippingService
obj
- toLabel
-
WTDeliveryException
public TrackingID sendItem(ShippingItem obj, ShippingLabel toLabel, ShippingLabel receiptLabel) throws WTDeliveryException
sendItem
in interface ShippingService
obj
- toLabel
- receiptLabel
-
WTDeliveryException
public InputStream sendImmediateItem(ShippingItem obj, SiteAddress to, TransportType transportType) throws WTDeliveryException
sendImmediateItem
in interface ShippingService
obj
- to
- transportType
-
WTDeliveryException
public InputStream sendImmediateItem(ShippingItem obj, SiteAddress to, TransportType transportType, int returnType) throws WTDeliveryException
sendImmediateItem
in interface ShippingService
obj
- to
- transportType
- returnType
-
WTDeliveryException
public InputStream get(SiteAddress forAddress)
get
in interface ShippingService
forAddress
-
public DeliveryStatus inquireStatus(TrackingID id) throws WTDeliveryException
inquireStatus
in interface ShippingService
id
-
WTDeliveryException
public ShippingLabel createShippingLabel(int deliveryType, String inboxID, String outboxID, String destination, String transportType) throws WTPropertyVetoException
createShippingLabel
in interface ShippingService
deliveryType
- inboxID
- outboxID
- destination
- transportType
-
WTPropertyVetoException
public ActionShippingItem createActionShippingItem()
createActionShippingItem
in interface ShippingService
public PayloadShippingItem createPayloadShippingItem()
createPayloadShippingItem
in interface ShippingService
public Receipt createReceipt()
createReceipt
in interface ShippingService
public ContentIS createContentIS(ObjectReference objRef)
createContentIS
in interface ShippingService
objRef
-
public FileIS createFileIS(String fileName)
createFileIS
in interface ShippingService
fileName
-
public BLOB_IS createBLOB_IS(LobLocator lobloc)
createBLOB_IS
in interface ShippingService
lobloc
-
public void createOutbox(Class outBoxClass, String name) throws WTDeliveryException
createOutbox
in interface ShippingService
outBoxClass
- name
-
WTDeliveryException
public ActionPullItem createActionPullItem()
createActionPullItem
in interface ShippingService
public InputStream iasPullContentImmediate(String iasUrl, String transportType, MethodInvocationDesc localAction, String queryStr, String pullMethod) throws WTDeliveryException
iasPullContentImmediate
in interface ShippingService
iasUrl
- The site address of the IAS servlettransportType
- By default this is "GZIPHttpPipe" which can be overwrite by
system configurationlocalAction
- To specify how to handle the input stream downloadedqueryStr
- Query information to locate the source stream at remote sitepullMethod
- The method how to retrieve the stream. By default the signatures are HttpServletRequest and HttpServletResponse, otherwise the signature types and values must be included in the "queryStr"
WTDeliveryException
public TrackingID iasPullContent(String iasUrl, String transportType, MethodInvocationDesc localAction, String queryStr, String pullMethod, String outboxName, String inboxName) throws WTDeliveryException
iasPullContent
in interface ShippingService
iasUrl
- The site address of the IAS servlettransportType
- By default this is "GZIPHttpPipe" which can be overwrite by system configurationlocalAction
- To specify how to handle the input stream downloadedqueryStr
- Query information to locate the source stream at remote sitepullMethod
- The method how to retrieve the stream. By default the Signatures are HttpServletRequest and HttpServletResponse, otherwise the signature types and values must be included in the "queryStr"outboxName
- Name of the OutBox. Should be unique for all IAS delivery requestsinboxName
- Name of the InBox. Should be unique for all IAS delivery requests
WTDeliveryException
Outbox getOutbox(String outboxName)
private void waitInitComplete()
private void handleItemsUponStartup()
private void addItemsToQueue(DeliveryStatus status)
public static void handleStatusUponStartup(ObjectReference objRef)
public static void deleteDeliveredItem(ConfirmableShippingItem csi)
private void registerAsListener() throws ManagerException
ManagerException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |