Package com.github.ambry.frontend
Class NamedBlobPath
- java.lang.Object
-
- com.github.ambry.frontend.NamedBlobPath
-
public class NamedBlobPath extends java.lang.Object
Represents the blob url parsing results for named blob.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccountName()
Get the account name.java.lang.String
getBlobName()
Get the blob name.java.lang.String
getContainerName()
Get the container name.static NamedBlobPath
parse(java.lang.String path)
Parse the input path if it's a named blob request.
-
-
-
Method Detail
-
parse
public static NamedBlobPath parse(java.lang.String path) throws RestServiceException
Parse the input path if it's a named blob request.- Parameters:
path
- the URI path that needs to be parsed. This path should already be URL decoded and have query paramaters removed. In the request handling path, this would be done by theRestRequest
implementation.- Returns:
- the
NamedBlobPath
that indicates the parsing result from blobUrl. - Throws:
RestServiceException
- on parsing errors.
-
getAccountName
public java.lang.String getAccountName()
Get the account name.- Returns:
- account name of the named blob.
-
getContainerName
public java.lang.String getContainerName()
Get the container name.- Returns:
- container name of the named blob.
-
getBlobName
public java.lang.String getBlobName()
Get the blob name.- Returns:
- blob name of named blob.
-
-