ZetaGrid v1.9

zeta.handler
Class ApproveHandler

java.lang.Object
  |
  +--zeta.handler.ApproveHandler
All Implemented Interfaces:
GetHandler

public class ApproveHandler
extends java.lang.Object
implements GetHandler

Handles a GET request to approve a change request.


Field Summary
private  ZetaServlet servlet
          Servlet which owns this handler.
 
Constructor Summary
ApproveHandler(ZetaServlet servlet)
           
 
Method Summary
(package private) static java.lang.String approve(ZetaServlet servlet, java.sql.Statement stmt, java.lang.String key, java.lang.String keyLength)
           
static java.lang.String decrypt(ZetaServlet servlet, java.sql.Statement stmt, java.lang.String key, java.lang.String keyLength)
           
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Handles a GET request to approve a change request.
static java.lang.String generateAddressToApprove(ZetaServlet servlet, java.lang.String text)
          Encrypts a specified text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servlet

private ZetaServlet servlet
Servlet which owns this handler.

Constructor Detail

ApproveHandler

public ApproveHandler(ZetaServlet servlet)
Parameters:
servlet - servlet which owns this handler.
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
           throws javax.servlet.ServletException,
                  java.io.IOException
Handles a GET request to approve a change request. The request req must contains the following parameters: The response resp contains the approve status.

Specified by:
doGet in interface GetHandler
javax.servlet.ServletException
java.io.IOException

generateAddressToApprove

public static java.lang.String generateAddressToApprove(ZetaServlet servlet,
                                                        java.lang.String text)
                                                 throws java.sql.SQLException,
                                                        java.io.IOException,
                                                        javax.servlet.ServletException
Encrypts a specified text.

Parameters:
text - text to encrypt
Returns:
encrypted text
Throws:
java.sql.SQLException - if a database access error occurs.
java.io.IOException - if an I/O error occurs.
javax.servlet.ServletException

decrypt

public static java.lang.String decrypt(ZetaServlet servlet,
                                       java.sql.Statement stmt,
                                       java.lang.String key,
                                       java.lang.String keyLength)
                                throws java.io.IOException,
                                       java.sql.SQLException
java.io.IOException
java.sql.SQLException

approve

static java.lang.String approve(ZetaServlet servlet,
                                java.sql.Statement stmt,
                                java.lang.String key,
                                java.lang.String keyLength)
                         throws java.io.IOException,
                                java.sql.SQLException
java.io.IOException
java.sql.SQLException

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.