webwork.action.standard
Class XML

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.action.standard.XML
All Implemented Interfaces:
Action, IllegalArgumentAware, java.io.Serializable

public class XML
extends ActionSupport

XML "execution" wrapper.

Version:
$Revision: 1.7 $
Author:
Rickard Öberg (rickard@middleware-company.com)
See Also:
, Serialized Form

Field Summary
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
XML()
           
 
Method Summary
 java.lang.String execute()
          Execute will first check the request for a result exception.
 org.w3c.dom.Document getDocument()
           
protected  java.net.URL getDocumentURL()
           
protected  java.lang.String handleException(java.lang.Exception e)
           
protected  org.w3c.dom.Document parseDocument(java.net.URL documentUrl)
           
 void setDocumentName(java.lang.String documentName)
           
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML

public XML()
Method Detail

execute

public java.lang.String execute()
                         throws java.lang.Exception
Description copied from class: ActionSupport
Execute will first check the request for a result exception. If one is found, then it will add its message as an error message and throw the ResultException. If there no exception is found, then it will invoke the "command" - invokeCommand(). If we are not invoking a command, it will call validate() and then doExecute().

Specified by:
execute in interface Action
Overrides:
execute in class ActionSupport
Returns:
view
Throws:
java.lang.Exception

setDocumentName

public void setDocumentName(java.lang.String documentName)

getDocument

public org.w3c.dom.Document getDocument()

parseDocument

protected org.w3c.dom.Document parseDocument(java.net.URL documentUrl)
                                      throws java.io.IOException,
                                             javax.xml.parsers.ParserConfigurationException,
                                             org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getDocumentURL

protected java.net.URL getDocumentURL()

handleException

protected java.lang.String handleException(java.lang.Exception e)


Copyright © 2001-2003 WebWork All Rights Reserved.