public class WeblinkHandler extends Object implements WithBuilder, ElementBuilder, NamedBuilder, OptionsBuilder
| Constructor and Description |
|---|
WeblinkHandler() |
| Modifier and Type | Method and Description |
|---|---|
OptionsBuilder |
all()
All.
|
void |
copy(String baseURL)
Copy.
|
OptionsBuilder |
external()
External.
|
static WithBuilder |
from(String archive)
Static Weblink constructor.
|
OptionsBuilder |
latest()
Latest.
|
static void |
main(String[] args)
The main method.
|
OptionsBuilder |
mandant(String mandant)
Mandant.
|
ElementBuilder |
named(String filename)
Named.
|
OptionsBuilder |
only(int element)
Only.
|
void |
open(String baseURL)
Open.
|
OptionsBuilder |
published()
Published.
|
OptionsBuilder |
timeout(long timeout)
Timeout.
|
String |
toLink(String baseURL)
To link.
|
static ElementBuilder |
with(ResultProperties document)
Static Weblink constructor.
|
NamedBuilder |
with(String field,
String value)
With.
|
public static WithBuilder from(String archive)
archive - the archive / DDC of documentpublic static ElementBuilder with(ResultProperties document) throws com.saperion.util.LinkCreationException
document - the document properties see ResultProperties.ElementBuildercom.saperion.util.LinkCreationException - the link creation exception if link creation failspublic NamedBuilder with(String field, String value)
with in interface WithBuilderfield - the fieldvalue - the valueWithBuilder.with(java.lang.String,
java.lang.String)public OptionsBuilder only(int element)
only in interface ElementBuilderelement - the elementElementBuilder.only(int)public OptionsBuilder all()
all in interface ElementBuilderElementBuilder.all()public ElementBuilder named(String filename)
named in interface NamedBuilderfilename - the filename of downloaded fileNamedBuilder.named(java.lang.String)public OptionsBuilder mandant(String mandant)
mandant in interface OptionsBuildermandant - the mandantpublic OptionsBuilder published()
published in interface OptionsBuilderOptionsBuilder.published()public OptionsBuilder latest()
latest in interface OptionsBuilderOptionsBuilder.latest()public OptionsBuilder external()
external in interface OptionsBuilderOptionsBuilder.external()public OptionsBuilder timeout(long timeout)
timeout in interface OptionsBuildertimeout - the timeout in milliseconds after the link is invalidOptionsBuilder.timeout(long)public String toLink(String baseURL) throws com.saperion.util.LinkCreationException
toLink in interface LinkBuilderbaseURL - the base urlcom.saperion.util.LinkCreationException - the link creation exceptionLinkBuilder.toLink(java.lang.String)public void open(String baseURL)
open in interface LinkBuilderbaseURL - the base urlLinkBuilder.open(java.lang.String)public void copy(String baseURL)
copy in interface LinkBuilderbaseURL - the base urlLinkBuilder.copy(java.lang.String)public static void main(String[] args) throws com.saperion.util.LinkCreationException
args - the argumentscom.saperion.util.LinkCreationException - the link creation exceptionCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.