com.ibm.websphere.samples.plantsbywebspherewar
Class ImageServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.ibm.websphere.samples.plantsbywebspherewar.ImageServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ImageServlet
extends javax.servlet.http.HttpServlet

Servlet to handle image actions.

See Also:
Serialized Form

Constructor Summary
ImageServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process incoming HTTP GET requests
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process incoming HTTP POST requests
 void init(javax.servlet.ServletConfig config)
          Servlet initialization.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageServlet

public ImageServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Servlet initialization.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Process incoming HTTP GET requests

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - Object that encapsulates the request to the servlet
response - Object that encapsulates the response from the servlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Process incoming HTTP POST requests

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - Object that encapsulates the request to the servlet
response - Object that encapsulates the response from the servlet
Throws:
javax.servlet.ServletException
java.io.IOException