Package com.adobe.testing.s3mock.dto
Class ObjectRef
- java.lang.Object
-
- com.adobe.testing.s3mock.dto.ObjectRef
-
public final class ObjectRef extends java.lang.ObjectRepresents a S3 Object referenced by Bucket and Key.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectReffrom(java.lang.String copySource)Creates aObjectRefexpecting the given String represents the source as/{bucket}/{key}.java.lang.StringgetBucket()java.lang.StringgetKey()java.lang.StringtoString()
-
-
-
Field Detail
-
DELIMITER
public static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public static ObjectRef from(java.lang.String copySource)
Creates aObjectRefexpecting the given String represents the source as/{bucket}/{key}.- Parameters:
copySource- The object references.- Returns:
- the
ObjectRef - Throws:
java.lang.IllegalArgumentException- IfcopySourcecould not be parsed.java.lang.NullPointerException- IfcopySourceis null.
-
getBucket
public java.lang.String getBucket()
-
getKey
public java.lang.String getKey()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-