com.google.appengine.api.images.dev
Class LocalBlobImageServlet
- java.lang.Object
-
- HttpServlet
-
- com.google.appengine.api.images.dev.LocalBlobImageServlet
-
public class LocalBlobImageServlet extends HttpServletStubs out dynamic image server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description protected static classLocalBlobImageServlet.ImageUtility wrapper to return image bytes and its mime type.protected static classLocalBlobImageServlet.ParsedUrlUtility class to parse a Local URL into its component parts.
-
Constructor Summary
Constructors Constructor and Description LocalBlobImageServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddoGet(HttpServletRequest req, HttpServletResponse resp)voidinit()protected LocalBlobImageServlet.ImagetransformImage(LocalBlobImageServlet.ParsedUrl request)Transforms the given image specified in theParseUrlargument.
-
-
-
Method Detail
-
init
public void init() throws ServletException- Throws:
ServletException
-
doGet
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws java.io.IOException- Throws:
java.io.IOException
-
transformImage
protected LocalBlobImageServlet.Image transformImage(LocalBlobImageServlet.ParsedUrl request)
Transforms the given image specified in theParseUrlargument. Applies all the requested resize and crop operations to a valid image.- Parameters:
request- a validParseUrlinstance- Returns:
- the transformed image in an Image class
- Throws:
ApiProxy.ApplicationException- If the image cannot be opened, encoded, or if the transform is malformed
-
-