public class DynamicPage extends Object
retrieveContent()
to get the content of this page and all of its subpanels, recursively.Modifier and Type | Method | Description |
---|---|---|
DynamicPage |
addSubpanel(Subpanel subpanel) |
Adds a subpanel to this dynamic page.
|
PanelContent |
retrieveContent() |
Retrieves the content of this dynamic page from the eSales service.
|
PanelContent |
retrieveContent(Map<String,String> dynamicPageArguments) |
Retrieves the content of this dynamic page from the eSales service.
|
InputStream |
retrieveContentAsXml(Map<String,String> dynamicPageArguments) |
Retrieves the content of this dynamic page from the eSales service as an InputStream.
|
public DynamicPage addSubpanel(Subpanel subpanel) throws DuplicateSubpanelException
subpanel
- The subpanel to addDuplicateSubpanelException
- if the dynamic page already has a subpanel with the same name as the providedpublic PanelContent retrieveContent() throws IOException, ParseException, MissingSubpanelException
retrieveContent(Map)
with an empty map.IOException
- if there is an error communicating with the eSales serviceParseException
- if the response cannot be parsedMissingSubpanelException
- if the dynamic page does not have any subpanels.public PanelContent retrieveContent(Map<String,String> dynamicPageArguments) throws IOException, ParseException, MissingSubpanelException
You may use an ArgMap
or a standard HashMap
to pass the arguments.
dynamicPageArguments
- A map of arguments, where key is the parameter name, and value is the argument value.
Arguments having null values are ignored.IOException
- if there is an error communicating with the eSales serviceParseException
- if the response cannot be parsedIllegalArgumentException
- if arguments contains null, empty or reserved keysMissingSubpanelException
- if the dynamic page does not have any subpanelspublic InputStream retrieveContentAsXml(Map<String,String> dynamicPageArguments) throws IOException, MissingSubpanelException
You may use an ArgMap
or a standard HashMap
to pass the arguments.
dynamicPageArguments
- A map of arguments, where key is the parameter name, and value is the argument value.
Arguments having null values are ignored.IOException
- if there is an error communicating with the eSales serviceIllegalArgumentException
- if arguments contains null, empty or reserved keysMissingSubpanelException
- if the dynamic page does not have any subpanelsCopyright © 2020 Apptus Technologies AB. All rights reserved.