Compoze Software, Inc.

com.compoze.examples
Class ContactImageServlet


java.lang.Object

  |

  +--javax.servlet.GenericServlet

        |

        +--javax.servlet.http.HttpServlet

              |

              +--com.compoze.util.ByteDataServlet

                    |

                    +--com.compoze.examples.ContactImageServlet

All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ContactImageServlet
extends ByteDataServlet
implements java.io.Serializable

This class is a servlet that writes the content-type and contents of a image (binary data) associated with a given contact. This class is provided for illustration purposes.

See Also:
Serialized Form

Constructor Summary
ContactImageServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles the GET method by responding with the data.
 
Methods inherited from class com.compoze.util.ByteDataServlet
processData
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactImageServlet


public ContactImageServlet()
Method Detail

doGet


public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Handles the GET method by responding with the data.
Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - the http servlet request. the http request must contain the IContactProperties.CONTACT_PK value.
response - the http servlet response
Throws:
javax.servlet.ServletException - thrown to wrap underlying exceptions
java.io.IOException - if an i/o exception occurred

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.