at.knowcenter.wag.egov.egiz.web
Class Verify

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by at.knowcenter.wag.egov.egiz.web.Verify
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class Verify
extends HttpServlet

This method is the verify servlet for the pdf-as web application. It takes get and post requests fill out jsp templates and give the user feedback about the results of the verify process.

Author:
wlackner, wprinz
See Also:
Serialized Form

Constructor Summary
Verify()
           
 
Method Summary
protected  void dispatch(HttpServletRequest request, HttpServletResponse response, String resource)
           
protected  void dispatchToResults(List results, HttpServletRequest request, HttpServletResponse response)
           
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void doPost(HttpServletRequest request, HttpServletResponse response)
           
static String extractExtension(String file_name)
          Extracts the extension from a file name string.
 
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, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Verify

public Verify()
Method Detail

dispatch

protected void dispatch(HttpServletRequest request,
                        HttpServletResponse response,
                        String resource)
                 throws ServletException,
                        IOException
Throws:
ServletException
IOException

dispatchToResults

protected void dispatchToResults(List results,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
                          throws ServletException,
                                 IOException
Throws:
ServletException
IOException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

extractExtension

public static String extractExtension(String file_name)
Extracts the extension from a file name string.

The extension of a file name is whatever text follows the last '.'.

Parameters:
file_name - The file name.
Returns:
Returns the extension. If the file name ends with the '.', then an empty string is returned. If the file name doesn't contain any '.' or file_name is null, null is returned.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.