public final class StandaloneHandler extends Object implements ElementBuilder, LinkBuilder, LinkValidator
| Modifier and Type | Method and Description |
|---|---|
LinkBuilder |
element(int element)
Option to specify the document element to view.
|
LinkBuilder |
firstElement()
Option to specify the first document element to view.
|
String |
toLink(String baseURL)
Builds the weblink url with given baseURL.
|
String |
toSecureLink(String baseURL)
Builds a secure weblink url with given baseURL.
|
boolean |
validate(String secure)
Validates the build link with the given secure hash.
|
static ElementBuilder |
with(ResultProperties document)
Creates a builder enclosed by the given document.
|
static ElementBuilder |
with(String versionId)
Creates a builder with the given versionId (the XHDOC) of the document to view.
|
public static ElementBuilder with(ResultProperties document) throws com.saperion.util.LinkCreationException
document - The document to view.com.saperion.util.LinkCreationException - if an error occurs.public static ElementBuilder with(String versionId)
versionId - The versionId (the XHDOC) of the document to view.public LinkBuilder element(int element)
ElementBuilderelement in interface ElementBuilderelement - the elementpublic LinkBuilder firstElement()
ElementBuilderfirstElement in interface ElementBuilderpublic String toLink(String baseURL)
LinkBuildertoLink in interface LinkBuilderbaseURL - the base urlpublic String toSecureLink(String baseURL) throws com.saperion.util.LinkCreationException
LinkBuildertoSecureLink in interface LinkBuilderbaseURL - the base urlcom.saperion.util.LinkCreationExceptionpublic boolean validate(String secure)
LinkValidatorvalidate in interface LinkValidatorsecure - the hash to validate the link with.Copyright © 2016 SAPERION AG. All rights reserved.