|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.images.dev.LocalBlobImageServlet.ParsedUrl
protected static class LocalBlobImageServlet.ParsedUrl
Utility class to parse a Local URL into its component parts. The Local url format is as follows: /_ah/img/SomeValidBlobKey[=options] where options is either "sX" where X is from ParsedUrl.uncroppedSizes or "sX-c" where X is from ParsedUrl.croppedSizes.
Method Summary | |
---|---|
protected static LocalBlobImageServlet.ParsedUrl |
createParsedUrl(java.lang.String requestUri)
Creates a ParsedUrl instance from the given URL. |
java.lang.String |
getBlobKey()
Returns the parsed BlobKey. |
boolean |
getCrop()
Returns the crop option. |
int |
getResize()
Returns the resize option. |
boolean |
hasOptions()
Checks if the parsed url has options. |
protected void |
parse(java.lang.String requestUri)
Parses a Local URL to its component parts. |
protected void |
parseOptions()
Parses URL options to its component parts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasOptions()
public java.lang.String getBlobKey()
public int getResize()
true
.
public boolean getCrop()
true
.
protected static LocalBlobImageServlet.ParsedUrl createParsedUrl(java.lang.String requestUri)
ParsedUrl
instance from the given URL.
requestUri
- the requested URL
protected void parse(java.lang.String requestUri)
requestUri
- the Local request URL
java.lang.IllegalArgumentException
- for malformed URLsprotected void parseOptions()
java.lang.IllegalArgumentException
- for malformed options
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |