org.javaswift.joss.client.mock
Class ContainerMock

java.lang.Object
  extended by org.javaswift.joss.client.core.AbstractObjectStoreEntity<ContainerInformation>
      extended by org.javaswift.joss.client.core.AbstractContainer
          extended by org.javaswift.joss.client.mock.ContainerMock
All Implemented Interfaces:
Comparable<Container>, Container, ListHolder<StoredObject>, ListSubject, ObjectStoreEntity

public class ContainerMock
extends AbstractContainer


Field Summary
 
Fields inherited from class org.javaswift.joss.client.core.AbstractContainer
LOG, name
 
Fields inherited from class org.javaswift.joss.client.core.AbstractObjectStoreEntity
ALLOW_CACHING, info, staleHeaders
 
Constructor Summary
ContainerMock(AccountMock account, String name)
           
 
Method Summary
 StoredObject getObject(String objectName)
          Returns a handle for an object.
 
Methods inherited from class org.javaswift.joss.client.core.AbstractContainer
compareTo, create, createMetadataEntry, delete, equals, getAccount, getBytesUsed, getContainerReadPermission, getcontainerWritePermission, getCount, getFactory, getFormPost, getInfo, getMaxPageSize, getName, getObjectSegment, getPaginationMap, getPaginationMap, getPathForEntity, hashCode, isPublic, list, list, list, makePrivate, makePublic, metadataSetFromHeaders, saveSpecificMetadata, setBytesUsed, setContainerRights, setContainerRights, setCount, uploadSegmentedObjects
 
Methods inherited from class org.javaswift.joss.client.core.AbstractObjectStoreEntity
checkForInfo, checkForInfo, checkForInfoAndAllowHeaderSet, checkForInfoDisallowErrorLog, exists, getMetadata, getMetadata, getPath, invalidate, isAllowCaching, isInfoRetrieved, isStale, reload, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setInfoRetrieved, setMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.javaswift.joss.model.Container
exists, isInfoRetrieved, reload
 
Methods inherited from interface org.javaswift.joss.model.ObjectStoreEntity
getMetadata, getMetadata, getPath, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setMetadata
 

Constructor Detail

ContainerMock

public ContainerMock(AccountMock account,
                     String name)
Method Detail

getObject

public StoredObject getObject(String objectName)
Description copied from interface: Container
Returns a handle for an object. Note that this method DOES NOT create an object in the Object Store

Parameters:
objectName - name of the object to create a handle for
Returns:
the object handle


Copyright © 2012-2014 42 BV. All Rights Reserved.