oss.net.pstream.sax
Class PstreamElement

java.lang.Object
  |
  +--oss.net.pstream.sax.ElementHandler
        |
        +--oss.net.pstream.sax.PstreamElement

public class PstreamElement
extends ElementHandler

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
unascribed

Field Summary
 
Fields inherited from class oss.net.pstream.sax.ElementHandler
action_attr, authenticate_element, debug_attr, fcookie_element, fhost_element, flags_attr, forward_params_element, host_element, href_attr, jndi_resource_element, name_attr, password_attr, path_attr, pattern_element, port_attr, portlet_element, protocol_attr, protocol_element, pstream_element, rewrite_condition_element, rewrite_element, rewrite_rule_element, session_params_element, sparam_element, src_attr, substitution_element, target_attr, target_element, target_host_element, type_attr, url_attr, use_attr, use_httpclientra_attr, username_attr, uservar_element, usetemplate_attr, value_attr
 
Constructor Summary
PstreamElement(boolean Debug)
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the element this Handler handles.
 PortletStreamParameters handleElementEnd(java.lang.StringBuffer Content, PortletStreamParametersMap PM, java.lang.String PortletName)
          Handles the end of an element (ending editing of an element for instance).
 PortletStreamParameters handleElementStart(PortletStreamParametersMap PM, java.lang.String PortletName, org.xml.sax.Attributes Attrs)
          Handles the start of an element (setting params and stuff).
 
Methods inherited from class oss.net.pstream.sax.ElementHandler
AttributeException, debug, debug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PstreamElement

public PstreamElement(boolean Debug)
Method Detail

handleElementStart

public PortletStreamParameters handleElementStart(PortletStreamParametersMap PM,
                                                  java.lang.String PortletName,
                                                  org.xml.sax.Attributes Attrs)
                                           throws org.xml.sax.SAXException
Description copied from class: ElementHandler
Handles the start of an element (setting params and stuff).

Specified by:
handleElementStart in class ElementHandler
Parameters:
Attrs - the SAX Attributes of the element.
Returns:
a PortletStreamParameters which may or may not be the same one passed into the function. If this happens to be the start of a new tag then a new PortletStreamParameters is created and returned. In that case, the new Parameter should be saved to the array.
Throws:
org.xml.sax.SAXException - If you screw up.

handleElementEnd

public PortletStreamParameters handleElementEnd(java.lang.StringBuffer Content,
                                                PortletStreamParametersMap PM,
                                                java.lang.String PortletName)
Description copied from class: ElementHandler
Handles the end of an element (ending editing of an element for instance). Also manages any content found since the end of the startelement tag.

Specified by:
handleElementEnd in class ElementHandler
Parameters:
Content - A StringBuffer of all data found since the handleElementStart tag was called.
PM - The parameters of the current PortletStream.
Returns:
A PortletStreamParameters which may or may not be the same one passed to the function.

getName

public java.lang.String getName()
Description copied from class: ElementHandler
Returns the name of the element this Handler handles.

Specified by:
getName in class ElementHandler
Returns:
A static String.


Copyright © 2000 Dummy Corp. All Rights Reserved.