|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.html.HTMLExtractor
This class is used for extracting HTML data into Rows. It may also be used for retrieving selected Rows out of the HttpSession in the HttpServletRequest.
Field Summary | |
static byte |
ARRAY_LIST
|
static java.lang.String |
EXTRACTABLE_AUTO_ALL
|
static java.lang.String |
EXTRACTABLE_AUTO_CHOOSE
|
static java.lang.String |
EXTRACTABLE_AUTO_NEXT
|
static java.lang.String |
EXTRACTABLE_AUTO_PREVIOUS
|
static java.lang.String |
EXTRACTABLE_FIELD
|
static java.lang.String |
EXTRACTABLE_RC_FIELD
|
static java.lang.String |
EXTRACTABLE_RC_PREFIX
|
static java.lang.String |
EXTRACTABLE_ROW_FIELD
|
static java.lang.String |
EXTRACTABLE_ROW_PREFIX
|
static byte |
ROW_COLLECTION
|
static java.lang.String |
TRANSIENT
|
static java.util.List |
VALUES_TO_IGNORE
|
Constructor Summary | |
HTMLExtractor()
|
Method Summary | |
static boolean |
extractAndValidateTableData(RowCollection rc,
HttpServletRequest request)
Extracts information off the HttpServletRequest out of a table and puts it in the given RowCollection's Rows. |
static void |
extractData(INavigationObject object,
HttpServletRequest req)
Extracts data from the HttpServletRequest and puts it into the object |
static Row |
extractDataIntoRow(Row row,
HttpServletRequest request)
Extracts information off the HttpServletRequest and puts its in the given Row. |
static Row |
extractDataIntoRow(java.lang.String rowNavKey,
Row row,
HttpServletRequest request)
Extracts information off the HttpServletRequest and puts it in the given Row. |
static void |
extractTableData(RowCollection rc,
HttpServletRequest request)
Extracts information off the HttpServletRequest out of a table and puts it in the given RowCollection's Rows. |
static void |
extractTableData(java.lang.String rcKey,
RowCollection rc,
HttpServletRequest request)
Extracts information off the HttpServletRequest out of a table and puts it in the given RowCollection's Rows. |
static Row |
extractTableDataIntoRow(java.lang.String rcNavKey,
java.lang.String rowNavKey,
Row row,
HttpServletRequest request)
Extracts information off the HttpServletRequest out of a table and puts it in the given Row. |
static Row |
getSelectedRow(java.lang.String rcSessionId,
HttpServletRequest request)
Retrieves the selected Row from the HttpServletRequest. |
static java.util.List |
getSelectedRows(RowCollection rc,
byte returnType,
HttpServletRequest request)
Retrieves the selected Rows from the HttpServletRequest. |
static java.util.List |
getSelectedRows(RowCollection rc,
HttpServletRequest req)
Get the selected Rows from the request. |
static java.util.List |
getSelectedRows(java.lang.String rcSessionId,
byte returnType,
HttpServletRequest request)
Retrieves the selected Rows from the HttpServletRequest. |
static java.util.List |
getSelectedRows(java.lang.String rcSessionId,
HttpServletRequest req)
Retrieves the selected Rows from the HttpServletRequest. |
static void |
loadGlobalAttributeValues(IContext context,
HttpServletRequest request)
Gets the values of all attributes out of the session and puts them in the context. |
static void |
loadParameterValues(IContext context,
HttpServletRequest request)
Gets the values of all parameters out of the request and puts them in the context. |
static void |
loadRequestAttributeValues(IContext context,
HttpServletRequest request)
Gets the values of all attributes out of the request and puts them in the context. |
static void |
loadSessionAttributeValues(IContext context,
HttpServletRequest request)
Gets the values of all attributes out of the session and puts them in the context. |
static void |
loadSQLTextReplacementValues(IContext context,
HttpServletRequest request)
Gets the values of all attributes out of the session and puts them in the context. |
static void |
maintainSelection(RowCollection rc,
HttpServletRequest req)
Ensures the rows selections the user made will be maintained on the RC when it is rendered again on the next screen. |
static void |
selectRow(Row row,
RowCollection rc,
HttpServletRequest req)
Sets the row as a currently selected row. |
static void |
selectRows(java.util.List rows,
RowCollection rc,
HttpServletRequest req)
Adds the rows to the currently selected rows. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte ROW_COLLECTION
public static final byte ARRAY_LIST
public static final java.lang.String TRANSIENT
public static final java.lang.String EXTRACTABLE_FIELD
public static final java.lang.String EXTRACTABLE_RC_FIELD
public static final java.lang.String EXTRACTABLE_ROW_FIELD
public static final java.lang.String EXTRACTABLE_ROW_PREFIX
public static final java.lang.String EXTRACTABLE_RC_PREFIX
public static final java.lang.String EXTRACTABLE_AUTO_CHOOSE
public static final java.lang.String EXTRACTABLE_AUTO_ALL
public static final java.lang.String EXTRACTABLE_AUTO_NEXT
public static final java.lang.String EXTRACTABLE_AUTO_PREVIOUS
public static final java.util.List VALUES_TO_IGNORE
Constructor Detail |
public HTMLExtractor()
Method Detail |
public static boolean extractAndValidateTableData(RowCollection rc, HttpServletRequest request) throws CMException
rc
- RowCollection to extract data intorequest
- request from client.
CMException
public static void extractData(INavigationObject object, HttpServletRequest req) throws CMException
CMException
public static Row extractDataIntoRow(java.lang.String rowNavKey, Row row, HttpServletRequest request) throws CMException
row
- Row to extract values intorequest
- HttpServletRequest containing values to extract
CMException
public static Row extractDataIntoRow(Row row, HttpServletRequest request) throws CMException
row
- Row to extract data intorequest
- request from the client
CMException
public static void extractTableData(java.lang.String rcKey, RowCollection rc, HttpServletRequest request) throws CMException
rcKey
- Navigation key for the given RowCollectionrc
- RowCollection to extract data intorequest
- request from client
CMException
public static void extractTableData(RowCollection rc, HttpServletRequest request) throws CMException
rc
- RowCollection to extract data intorequest
- request from client.
CMException
public static Row extractTableDataIntoRow(java.lang.String rcNavKey, java.lang.String rowNavKey, Row row, HttpServletRequest request) throws CMException
row
- Row to extract values intorequest
- HttpServletRequest containing values to extract.
CMException
public static Row getSelectedRow(java.lang.String rcSessionId, HttpServletRequest request) throws DataEngineException
request
- HttpServletRequest to get selected Row
DataEngineException
public static java.util.List getSelectedRows(java.lang.String rcSessionId, byte returnType, HttpServletRequest request) throws DataEngineException
rcSessionId
- The ID of the existing table in the sessionreturnType
- Indicates whether the rows should be returned in an ArrayList or RowCollection. These
options are defined as constants in the class.
DataEngineException
public static java.util.List getSelectedRows(RowCollection rc, byte returnType, HttpServletRequest request) throws DataEngineException
returnType
- Indicates whether the rows should be returned in an ArrayList or RowCollection. These
options are defined as constants in the class.
DataEngineException
public static java.util.List getSelectedRows(java.lang.String rcSessionId, HttpServletRequest req) throws DataEngineException
req
- The HttpServletRequest
DataEngineException
public static java.util.List getSelectedRows(RowCollection rc, HttpServletRequest req) throws DataEngineException
DataEngineException
public static void loadParameterValues(IContext context, HttpServletRequest request) throws CMException
CMException
public static void loadRequestAttributeValues(IContext context, HttpServletRequest request) throws CMException
CMException
public static void loadSessionAttributeValues(IContext context, HttpServletRequest request) throws CMException
CMException
public static void maintainSelection(RowCollection rc, HttpServletRequest req) throws CMException
CMException
public static void selectRow(Row row, RowCollection rc, HttpServletRequest req) throws CMException
CMException
public static void selectRows(java.util.List rows, RowCollection rc, HttpServletRequest req) throws CMException
CMException
public static void loadGlobalAttributeValues(IContext context, HttpServletRequest request) throws CMException
CMException
public static void loadSQLTextReplacementValues(IContext context, HttpServletRequest request) throws CMException
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |