org.systinet.wasp.attachments
Class AttachmentsReleaseMethod

java.lang.Object
  extended byorg.systinet.wasp.attachments.AttachmentsReleaseMethod

public final class AttachmentsReleaseMethod
extends java.lang.Object

An enumeration of possible attachment release methods.

It is necessary to reclaim allocated resources when the client code finished its work with attachments. On the service this is done when the invocation ends. On the client some of enumerated methods can be used.

On the service side, there is no need to use this class, since the message is automatically released when the invocation ends.

Since:
6.0
Component:
Core

Field Summary
static AttachmentsReleaseMethod ALL_ATTACHMENTS_USED
          To be used for structures orignally containing XML Schema type swaRef that are iterated in a loop.
static java.lang.String ATTACHMENTS_RELEASE_METHOD
          A key into CallContext map with attachments release method.
static AttachmentsReleaseMethod NO_OPEN_ATTACHMENT_STREAM
          Compatible with SSJ 5.5; default.
 
Method Summary
static void setReleaseAttachmentMethod(ServiceClient serviceClient, AttachmentsReleaseMethod method)
          A helper method for service client setup.
 java.lang.String toString()
          Provides a string value for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_OPEN_ATTACHMENT_STREAM

public static final AttachmentsReleaseMethod NO_OPEN_ATTACHMENT_STREAM
Compatible with SSJ 5.5; default. Attachment resources are released when no attachment input stream is open and at least one stream was used.


ALL_ATTACHMENTS_USED

public static final AttachmentsReleaseMethod ALL_ATTACHMENTS_USED
To be used for structures orignally containing XML Schema type swaRef that are iterated in a loop. All attachments' streams that were returned to the client must be closed to release the resources.


ATTACHMENTS_RELEASE_METHOD

public static final java.lang.String ATTACHMENTS_RELEASE_METHOD
A key into CallContext map with attachments release method. An associated value should be an instance of AttachmentsReleaseMethod. Used only on the client side.

See Also:
setReleaseAttachmentMethod(org.systinet.wasp.webservice.ServiceClient, org.systinet.wasp.attachments.AttachmentsReleaseMethod), Constant Field Values
Method Detail

toString

public java.lang.String toString()
Provides a string value for debugging.


setReleaseAttachmentMethod

public static void setReleaseAttachmentMethod(ServiceClient serviceClient,
                                              AttachmentsReleaseMethod method)
A helper method for service client setup.

Parameters:
serviceClient - service client setup, must not be null
method - method to choose, must not be null