wt.enterprise
Class SubmitDelegate

java.lang.Object
  extended bywt.enterprise.SubmitDelegate
All Implemented Interfaces:
FormActionDelegate

public class SubmitDelegate
extends Object
implements FormActionDelegate



Supported API: false

Extendable: false


Field Summary
private  Object actionObject
           
private  Locale locale
           
private static ResourceBundle msgResource
           
private static String RESOURCE
           
 
Fields inherited from interface wt.enterprise.FormActionDelegate
ACTION_OBJECT
 
Constructor Summary
SubmitDelegate()
           
 
Method Summary
 Object getActionObject()
          Gets the object for the association that plays role: ACTION_OBJECT.
 Properties processAction(Properties props, ContentHTTPStream contentStream, Locale locale)
          This method will process an action invoked from the FormProcessor.
 void setActionObject(Object a_ActionObject)
          Sets the object for the association that plays role: ACTION_OBJECT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionObject

private Object actionObject

locale

private Locale locale

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

msgResource

private static ResourceBundle msgResource
Constructor Detail

SubmitDelegate

public SubmitDelegate()
Method Detail

getActionObject

public Object getActionObject()
Description copied from interface: FormActionDelegate
Gets the object for the association that plays role: ACTION_OBJECT.

Supported API: false

Specified by:
getActionObject in interface FormActionDelegate
Returns:
Object

setActionObject

public void setActionObject(Object a_ActionObject)
                     throws WTPropertyVetoException
Description copied from interface: FormActionDelegate
Sets the object for the association that plays role: ACTION_OBJECT.

Supported API: false

Specified by:
setActionObject in interface FormActionDelegate
Parameters:
a_ActionObject -
Throws:
WTPropertyVetoException

processAction

public Properties processAction(Properties props,
                                ContentHTTPStream contentStream,
                                Locale locale)
                         throws Exception,
                                WTException
Description copied from interface: FormActionDelegate
This method will process an action invoked from the FormProcessor.

The Properties arguement will always contain name value pairs of those things based on the query string to the FormProcessor.

The contents of the Properties arguement is the based on the contents of the form when invoking the processForm method in the FormProcessor. It consists of the name value pairs up to the point of the beginning of content of the form. Then the rest of the form stream is placed in an instance of the ContentHttpStream class.

When invoking the invokeAction method in the FormProcessor class the ContentHttpStream arguement will always be null.

This method is intended to perform the action based on information pased. Any exception thrown will be displayed in the web browser to the user. It is best if the properties returned is a copy of the properties passed plus any



Supported API: false

Supported API: true

Specified by:
processAction in interface FormActionDelegate
Parameters:
props -
contentStream -
locale -
Returns:
Properties
Throws:
Exception
WTException
See Also:
FormProcessor, wt.content.ContentHttpStream