|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.attachments.AttachmentsReleaseMethod
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.
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 |
public static final AttachmentsReleaseMethod NO_OPEN_ATTACHMENT_STREAM
public static final AttachmentsReleaseMethod ALL_ATTACHMENTS_USED
swaRef
that are iterated in a loop.
All attachments' streams that were returned to the client must be closed
to release the resources.
public static final java.lang.String ATTACHMENTS_RELEASE_METHOD
CallContext
map with attachments release method.
An associated value should be an instance of AttachmentsReleaseMethod
.
Used only on the client side.
setReleaseAttachmentMethod(org.systinet.wasp.webservice.ServiceClient, org.systinet.wasp.attachments.AttachmentsReleaseMethod)
,
Constant Field ValuesMethod Detail |
public java.lang.String toString()
public static void setReleaseAttachmentMethod(ServiceClient serviceClient, AttachmentsReleaseMethod method)
serviceClient
- service client setup, must not be null
method
- method to choose, must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |