com.bea.wsrp.model.markup
Interface IFormParamsContext

All Known Subinterfaces:
IBlockingInteractionBaseRequestContext, IBlockingInteractionRequestContext, IGetResourceRequestContext

public interface IFormParamsContext

A context that represents form parameters that is used by multiple wsrp-2.0 operations such as PerformBlockingInteraction and GetResource.

This interface is intended to be implemented only by Oracle Weblogic Portal. Oracle Systems reserves the right to add abstract methods to this interface without notice. Implementations of this interface by other parties must not be expected to compile without change in future versions of Oracle Weblogic Portal.

Method Summary
 void addFormParameter(String name, String[] values)
          Adds the supplied name and array of values to form data map.
 Map<String,String[]> getFormParameters()
          Name/Value pairs of a submitted form.
 InputStream getUploadedData()
          A binary blob that is being uploaded by an user.
 void setFormParameter(String name, String[] values)
          If the supplied name form parameter found, it replaces values with the supplied values array, otherwise adds the supplied name and values as a form parameter.
 void setUploadedData(InputStream inputStream)
          Uses supplied inputStream a binary blob that is being uploaded.
 

Method Detail

getFormParameters

Map<String,String[]> getFormParameters()
Name/Value pairs of a submitted form.

Returns
A map of name/value pairs of a submitted form.

addFormParameter

void addFormParameter(String name,
                      String[] values)
Adds the supplied name and array of values to form data map. The values are added to the existing values list corresponding to the supplied name parameter. Note: The data in values should be encoded/decoded correctly so that a producer can understand.

Parameters
name - the name of a form parameter.
values - an array of values for the supplied form parameter.

setFormParameter

void setFormParameter(String name,
                      String[] values)
If the supplied name form parameter found, it replaces values with the supplied values array, otherwise adds the supplied name and values as a form parameter. Note: The data in values should be encoded/decoded correctly so that a producer can understand.

Parameters
name - the name of a form parameter.
values - an array of values for the supplied form parameter.

getUploadedData

InputStream getUploadedData()
                            throws IOException
A binary blob that is being uploaded by an user.

Returns
An input stream of data that is being uploaded.
Throws
IOException - if unable to retrieve inputstream from an http request.

setUploadedData

void setUploadedData(InputStream inputStream)
Uses supplied inputStream a binary blob that is being uploaded.

Parameters
inputStream - An input stream of the data being uploaded.


Copyright © 2011, Oracle. All rights reserved.