<commit_before>/*
 * Created on Oct 25, 2004
 */
package uk.org.ponder.rsf.viewstate;

import uk.org.ponder.stringutil.StringList;

/**
 * The base class abstracting common functionality for specifying a view
 * state of a web application, independent of any particular application 
 * or url mapping technology.
 * In order to get generate a complete external URL, you must use one of
 * the methods of {@link uk.org.ponder.rsf.viewstate.ViewStateHandler}.
 * @author <NAME> (<EMAIL>)
 *  
 */
//for example:
//http://localhost:8080/FlowTalkServlet/faces/threaded-message?targetID=3mdugroBVjhPPTubjQkjAQjG
//|-----------------------------------------||---------------|
//       base url                              view id
// in fact, since we only ever have ONE view id, in fact we could simply
// omit baseurl!!

public abstract class ViewParameters implements Cloneable {
  /** Identifies this request as part of a "render" cycle - for a simple HTTP
   * servlet, corresponds to a GET, a JSR168 "render" request or a WSRP 
   * getMarkup request.
   */ 
  public static final String RENDER_REQUEST = "render";
  
  /** Identifies this request as part of an "action" cycle - for a simple
   * HTTP servlet, corresponds to a POST, a JSR168 "processAction" request 
   * or a WRSP performBlockingInteration request.
   */
  public static final String ACTION_REQUEST = "action";
  /** A globally unique key identifying view-specific state that is held on the
   * server, restorable in the form of a request-scope bean container. Need not
   * be set. <commit_msg>Docs and beans<commit_after>/*
 * Created on Oct 25, 2004
 */
package uk.org.ponder.rsf.viewstate;

import uk.org.ponder.stringutil.StringList;

/**
 * An RSF ViewParameters is a rule for extracting the relevant fields from
 * a URL (or similar spec) that specify the content of a view and representing
 * them in a typesafe way as an object. The actual work of parsing is
 * done by the more stateful bean ViewParametersParser.
 * <p> 
 * The base class abstracting common functionality for specifying a view
 * state of a web application, independent of any particular application 
 * or url mapping technology.
 * In order to get generate a complete external URL, you must use one of
 * the methods of {@link uk.org.ponder.rsf.viewstate.ViewStateHandler}.
 * @author <NAME> (<EMAIL>)
 *  
 */
//for example:
//http://localhost:8080/FlowTalkServlet/faces/threaded-message?targetID=3mdugroBVjhPPTubjQkjAQjG
//|-----------------------------------------||---------------|
//       base url                              view id
// in fact, since we only ever have ONE view id, in fact we could simply
// omit baseurl!!

public abstract class ViewParameters implements Cloneable {
  /** Identifies this request as part of a "render" cycle - for a simple HTTP
   * servlet, corresponds to a GET, a JSR168 "render" request or a WSRP 
   * getMarkup request.
   */ 
  public static final String RENDER_REQUEST = "render";
  
  /** Identifies this request as part of an "action" cycle - for a simple
   * HTTP servlet, corresponds to a POST, a JSR168 "processAction" request 
   * or a WRSP performBlockingInteration request.
   */
  public static final String ACTION_REQUEST = "action";
  /** A globally unique key identifying view-specific state that is held on the
   * server, restorable in the form of a request-scope bean container. Need not
   * be set. 
{'fraction_non_alphanumeric': 0.11202105878911962, 'fraction_numerical': 0.009944428195378765, 'mean_word_length': 2.904109589041096, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1365498', 'n_tokens_mistral': 979, 'n_tokens_neox': 918, 'n_words': 406}