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 |
addAttribute(String name,
String value) |
Adds a local panel attribute to this dynamic page.
|
DynamicPage |
addAttributes(Map<String,String> attributes) |
Appends a map of attributes to the local panel attributes of this dynamic page.
|
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 DynamicPage addAttribute(String name, String value)
PanelContent.attributes()
.name
- The attribute name.value
- The attribute value.public DynamicPage addAttributes(Map<String,String> attributes)
PanelContent.attributes()
.attributes
- A map of local attributes for the dynamic page, where key is the attribute name, and value is the attribute value.public 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 © 2021 Apptus Technologies AB. All rights reserved.