gov.lanl.Web
Class PIDSHandler

java.lang.Object
  |
  +--gov.lanl.Web.PIDSHandler

public class PIDSHandler
extends java.lang.Object

Static class to parse the Servlet request into the appropriate PIDS data hierarchy with the ability to filter out certain of the request keys and assuming that elements are separated by a defined character


Constructor Summary
PIDSHandler()
          Default constructor
PIDSHandler(PidsFields fields)
          Constructor for initializing filters
 
Method Summary
 void addFilter(java.lang.String filt)
          Add filter to list
 void addFilters(java.lang.String[] filts)
          add filter list for keys in request object skip all keys containing substring of filter
static PIDSHandler getInstance()
          get PIDSHandler static reference
 void process(HttpServletRequest request, Pids pid, java.lang.String sep)
          Process the request turning the items into the appropriate Content tree
 void setPidsField(PidsFields fields)
          set the fields
 void setUpperCase(boolean upper)
          set the case of the PIDS queries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PIDSHandler

public PIDSHandler()
Default constructor


PIDSHandler

public PIDSHandler(PidsFields fields)
Constructor for initializing filters

Method Detail

getInstance

public static PIDSHandler getInstance()
get PIDSHandler static reference


setPidsField

public void setPidsField(PidsFields fields)
set the fields

Parameters:
fields -

setUpperCase

public void setUpperCase(boolean upper)
set the case of the PIDS queries

Parameters:
upper - is the boolean flag to determine how the case is to be handled.

addFilters

public void addFilters(java.lang.String[] filts)
add filter list for keys in request object skip all keys containing substring of filter


addFilter

public void addFilter(java.lang.String filt)
Add filter to list


process

public void process(HttpServletRequest request,
                    Pids pid,
                    java.lang.String sep)
Process the request turning the items into the appropriate Content tree

Parameters:
request - contains the detailed input data from the web client
pid - is the Pids object to which request data is to be inserted
sep - is the hierarchy delimiter in the input


Copyright © 2000 University of California. All Rights Reserved.