Version: 1.1.1

org.biomoby.client
Class GraphsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.biomoby.client.GraphsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.tulsoft.tools.servlets.HtmlConstants

public class GraphsServlet
extends javax.servlet.http.HttpServlet
implements org.tulsoft.tools.servlets.HtmlConstants

A servlet making graphs of Moby service instances, Moby data types, and Moby service types.

Version:
$Id: GraphsServlet.java,v 1.16 2008/02/14 06:13:36 senger Exp $
Author:
Martin Senger
See Also:
Serialized Form

Field Summary
static String ONCHANGE
           
 
Fields inherited from interface org.tulsoft.tools.servlets.HtmlConstants
A, ACTION, ADDRESS, ALIGN, ALT, B, BGCOLOR, BLOCKQUOTE, BODY, BORDER, BR, CELLPADDING, CELLSPACING, CHECKED, COLOR, COLS, COLSPAN, DIV, EM, FONT, FORCE, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, HEAD, HR, HREF, HTML, IMG, INPUT, LANGUAGE, LINK, MARGINWIDTH, METHOD, MULTIPLE, NAME, NOFRAMES, NOSCRIPT, ONCLICK, ONMOUSEOUT, ONMOUSEOVER, OPTION, P, PRE, ROWS, ROWSPAN, SCRIPT, SELECT, SELECTED, SIZE, SRC, TABLE, TARGET, TD, TEXT, TH, TITLE, TR, TYPE, VALIGN, VALUE, VLINK, WIDTH
 
Constructor Summary
GraphsServlet()
          A default constructor, used usually by a servlet engine.
GraphsServlet(String mobyEndpoint, String mobyNamespace)
          A real constructor that is called when it is known what Moby registry we are going to serve for.
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          An entry point...
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
static boolean exists(javax.servlet.http.HttpServletRequest req, String name)
          Return TRUE if the named parameter exists in given 'req' request.
static boolean getBoolean(javax.servlet.http.HttpServletRequest req, String name)
          Return value of a named parameter as boolean.
static String getString(javax.servlet.http.HttpServletRequest req, String name)
          Return value of a named parameter as a string (trimmed etc.).
 void init()
          Servlet initialization...
 void log(String message)
           
 String[] radioGroup(org.tulsoft.tools.servlets.Html h, String name, String[] values, int checked)
           
 String start(String tag)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONCHANGE

public static final String ONCHANGE
See Also:
Constant Field Values
Constructor Detail

GraphsServlet

public GraphsServlet()
A default constructor, used usually by a servlet engine.


GraphsServlet

public GraphsServlet(String mobyEndpoint,
                     String mobyNamespace)
              throws MobyException
A real constructor that is called when it is known what Moby registry we are going to serve for. All instances of GraphsServlet are stored in a hashtable so when a call for already known combination of 'mobyEndpoint' and 'mobyNamespace' comes a proper instance of GraphsServlet is either restored from the hashtable, or created.

Throws:
MobyException
Method Detail

init

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

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  IOException
An entry point...

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

log

public void log(String message)
Overrides:
log in class javax.servlet.GenericServlet

getString

public static String getString(javax.servlet.http.HttpServletRequest req,
                               String name)
Return value of a named parameter as a string (trimmed etc.).

Parameters:
req - is the HTTP request having all parameters
name - is the name whose value is asked for
Returns:
value of requested parameter or null if the parameter is either empty or does not exists at all; value is trimmed

getBoolean

public static boolean getBoolean(javax.servlet.http.HttpServletRequest req,
                                 String name)
Return value of a named parameter as boolean. The values considered to be TRUE are: 'on', '1', 'true', 'yes', '+' (case insensitive), and an empty value. Everything else is considered to be FALSE.

Parameters:
req - is the HTTP request having all parameters
name - is the name whose value is asked for
Returns:
boolean value of requested parameter, or FALSE if the parameter does not exist at all

exists

public static boolean exists(javax.servlet.http.HttpServletRequest req,
                             String name)
Return TRUE if the named parameter exists in given 'req' request.

Parameters:
req - is the HTTP request having all parameters
name - is the name whose existence is tested
Returns:
TRUE if the named parameter exists

radioGroup

public String[] radioGroup(org.tulsoft.tools.servlets.Html h,
                           String name,
                           String[] values,
                           int checked)

start

public String start(String tag)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010