public class LocalBlobImageServlet
extends HttpServlet
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LocalBlobImageServlet.Image
Utility wrapper to return image bytes and its mime type.
|
protected static class |
LocalBlobImageServlet.ParsedUrl
Utility class to parse a Local URL into its component parts.
|
| Constructor and Description |
|---|
LocalBlobImageServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(HttpServletRequest req,
HttpServletResponse resp) |
void |
init() |
protected LocalBlobImageServlet.Image |
transformImage(LocalBlobImageServlet.ParsedUrl request)
Transforms the given image specified in the
ParseUrl argument. |
public void init()
throws ServletException
ServletExceptionpublic void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws java.io.IOException
java.io.IOExceptionprotected LocalBlobImageServlet.Image transformImage(LocalBlobImageServlet.ParsedUrl request)
ParseUrl argument.
Applies all the requested resize and crop operations to a valid image.request - a valid ParseUrl instanceApiProxy.ApplicationException - If the image cannot be opened,
encoded, or if the transform is malformed