org.ws4d.java.attachment
Class DefaultAttachmentStore

java.lang.Object
  extended by org.ws4d.java.attachment.AttachmentStore
      extended by org.ws4d.java.attachment.DefaultAttachmentStore

public class DefaultAttachmentStore
extends AttachmentStore


Field Summary
 
Fields inherited from class org.ws4d.java.attachment.AttachmentStore
POLICY_EXT_STORAGE, POLICY_MEM_BUFFER
 
Constructor Summary
DefaultAttachmentStore()
           
 
Method Summary
 void cleanup()
           
 boolean isAvailable(ContextID context, java.lang.String cid)
           
 IncomingAttachment resolve(ContextID context, java.lang.String cid)
           
 void store(ContextID context, java.lang.String cid, java.lang.String contentType, java.lang.String transferEncoding, java.io.InputStream from)
           
 
Methods inherited from class org.ws4d.java.attachment.AttachmentStore
addStreamingMediaType, exists, getInstance, getStorePolicy, getStreamingMediaTypes, isStreamingMediaType, removeStreamingMediaType, resetStreamingMediaTypes, setStorePolicy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAttachmentStore

public DefaultAttachmentStore()
Method Detail

store

public void store(ContextID context,
                  java.lang.String cid,
                  java.lang.String contentType,
                  java.lang.String transferEncoding,
                  java.io.InputStream from)
Specified by:
store in class AttachmentStore

isAvailable

public boolean isAvailable(ContextID context,
                           java.lang.String cid)
Specified by:
isAvailable in class AttachmentStore

resolve

public IncomingAttachment resolve(ContextID context,
                                  java.lang.String cid)
                           throws AttachmentException
Specified by:
resolve in class AttachmentStore
Throws:
AttachmentException

cleanup

public void cleanup()
Specified by:
cleanup in class AttachmentStore