All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.pool.servlet.ServletDataSet
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----bea.jolt.pool.DataSet
|
+----bea.jolt.pool.servlet.ServletDataSet
- public class ServletDataSet
- extends DataSet
This class contains data elements that represent the input and output
parameters of a BEA TUXEDO service.
It provides a method to import the HTML field names and values from a
javax.servlet.http.HttpServletRequest object.
- Author:
- Copyright (c) 1999 by BEA Systems, Inc. All Rights Reserved.
-
ServletDataSet()
- Constructs a default ServletDataSet object.
-
ServletDataSet(int)
- Constructs a ServletDataSet
with a specified initial capacity.
-
importRequest(HttpServletRequest)
- Imports the HTML field names and corresponding values from a
javax.servlet.http.HttpServletRequest object.
ServletDataSet
public ServletDataSet()
- Constructs a default ServletDataSet object.
ServletDataSet
public ServletDataSet(int initCapacity)
- Constructs a ServletDataSet
with a specified initial capacity.
- Parameters:
- initCapacity - Initial capacity
importRequest
public void importRequest(HttpServletRequest request)
- Imports the HTML field names and corresponding values from a
javax.servlet.http.HttpServletRequest object.
This method is useful when the data from the
HttpServletRequest is insufficient for
directly calling a BEA TUXEDO service.
The data should be imported into a
ServletDataSet where additional parameter
data can be specified.
The following sample code adds a parameter
named "REQUEST_TIME" to the parameters imported from request
before calling the BEA TUXEDO service "DEBIT". This code would
typically be in a servlet's doPost or doGet method.
ServletDataSet dataset = new ServletDataSet();
// Import the HTML form fields from the HttpServletRequest
dataset.importRequest(request);
// Add the REQUEST_TIME parameter to the input data set
dataset.setValue("REQUEST_TIME", (new Date()).toString());
// ... Insert code to get the servlet session pool
// Call the DEBIT service using the combined input data
session_pool.call ("DEBIT", dataset, null);
- Parameters:
- request - HttpServletReques object
- See Also:
- call
All Packages Class Hierarchy This Package Previous Next Index