@MappedSuperclass public class MappedStorageLocator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_NAME_SIZE_MAX
The maximum size of containerName.
|
static int |
CONTAINER_NAME_SIZE_MIN
The minimum size of containerName.
|
static long |
CONTENT_LENGTH_MIN
The minimum value of contentLength.
|
static int |
CONTENT_TYPE_SIZE_MAX
The maximum size of contentType.
|
static int |
CONTENT_TYPE_SIZE_MIN
The minimum size of contentType.
|
static long |
LAST_MODIFIED_MIN
The minimum value of contentLength.
|
static int |
OBJECT_NAME_SIZE_MAX
The maximum size of objectName.
|
static int |
OBJECT_NAME_SIZE_MIN
The minimum size of objectName.
|
static long |
UNKNOWN_CONTENT_LENGTH
Constant for an unknown content length.
|
static String |
UNKNOWN_CONTENT_TYPE
Constant for an unknown content type.
|
static long |
UNKNOWN_LAST_MODIFIED
Constant for an unknown content length.
|
| Constructor and Description |
|---|
MappedStorageLocator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContainerName()
Returns container name.
|
long |
getContentLength()
Returns content length.
|
String |
getContentType()
Returns content type.
|
long |
getLastModified()
Returns lastModified.
|
String |
getObjectName()
Returns object name.
|
static <L extends MappedStorageLocator> |
newInstance(Class<L> storageLocatorType,
String containerNamePrefix,
String objectNamePrefix,
long sequenceNumber)
Creates a new instance of given
storageLocatorType. |
void |
setContainerName(String containerName)
Sets containerName.
|
void |
setContainerName(String containerNamePrefix,
long sequenceNumber)
Sets containerName with given
containerNamePrefix and
sequenceNumber. |
void |
setContentLength(long contentLength)
Sets content length.
|
void |
setContentType(String contentType)
Sets content type.
|
void |
setLastModified(long lastModified)
Sets lastModified.
|
void |
setObjectName(String objectName)
Sets objectName.
|
void |
setObjectName(String objectNamePrefix,
long sequenceNumber)
Sets objectName with given
objectNamePrefix and
sequenceNumber. |
String |
toString() |
public static final String UNKNOWN_CONTENT_TYPE
public static final int CONTENT_TYPE_SIZE_MIN
public static final int CONTENT_TYPE_SIZE_MAX
public static final long UNKNOWN_CONTENT_LENGTH
public static final long CONTENT_LENGTH_MIN
public static final long UNKNOWN_LAST_MODIFIED
public static final long LAST_MODIFIED_MIN
public static final int CONTAINER_NAME_SIZE_MIN
public static final int CONTAINER_NAME_SIZE_MAX
public static final int OBJECT_NAME_SIZE_MIN
public static final int OBJECT_NAME_SIZE_MAX
public static <L extends MappedStorageLocator> L newInstance(Class<L> storageLocatorType, String containerNamePrefix, String objectNamePrefix, long sequenceNumber)
storageLocatorType.L - storage locator type parameterstorageLocatorType - storage locator typecontainerNamePrefix - container name prefixobjectNamePrefix - object name prefixsequenceNumber - sequence numberstorageLocatorType.public String getContainerName()
public void setContainerName(String containerName)
containerName - containerNamepublic void setContainerName(String containerNamePrefix, long sequenceNumber)
containerNamePrefix and
sequenceNumber.containerNamePrefix - container name prefixsequenceNumber - sequence numberpublic String getObjectName()
public void setObjectName(String objectName)
objectName - objectNamepublic void setObjectName(String objectNamePrefix, long sequenceNumber)
objectNamePrefix and
sequenceNumber.objectNamePrefix - object name prefixsequenceNumber - sequence numberpublic String getContentType()
public void setContentType(String contentType)
contentType - content typepublic long getContentLength()
public void setContentLength(long contentLength)
contentLength - content lengthpublic long getLastModified()
public void setLastModified(long lastModified)
lastModified - lastModifiedCopyright © 2011-2012. All Rights Reserved.