org.openeai.uuidgen
Class UuidGen


java.lang.Object

  |

  +--javax.servlet.GenericServlet

        |

        +--javax.servlet.http.HttpServlet

              |

              +--org.openeai.uuidgen.UuidGen

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

public class UuidGen
extends javax.servlet.http.HttpServlet

This servlet is used to generate a unique UUID. A request is made from all OpenEAI Producers (PointToPoint and PubSub) when they are initialized. This servlet will return a unique UUID for the machine it's running on.

Version:
3.0 beta2 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)
See Also:
Serialized Form

Constructor Summary
UuidGen()
           
 
Method Summary
 java.lang.String getServletInfo()
          Get Servlet information
 void init(javax.servlet.ServletConfig config)
          Initialize global variables
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Service the request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UuidGen


public UuidGen()
Method Detail

init


public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initialize global variables

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

service


public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Service the request. Generate a new RandomUuid object and return it by sending it to the HttpServletResponse's output stream.

Overrides:
service in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException

getServletInfo


public java.lang.String getServletInfo()
Get Servlet information

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet
Returns:
java.lang.String


Copyright © 2002, OpenEAI Software Foundation