Package com.saperion.connector.options
Class Options
- java.lang.Object
-
- com.saperion.connector.options.Options
-
public class Options extends java.lang.ObjectA class that contains the options that are used to generate a rendition like- target format
- timeout
- engine specific additional options
newOptions(TargetFormat).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptions.BuilderChainBuilderChain used to create a new Options instance.
-
Field Summary
Fields Modifier and Type Field Description static TargetFormatDEFAULT_TARGETstatic TimeOutDEFAULT_TIMEOUT
-
Constructor Summary
Constructors Modifier Constructor Description protectedOptions()Instantiates a new options.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalOptionsgetAdditionalOptions()Gets the additional options.intgetPageToRender()Convenience method to find out the number of the page to be rendered.PaginggetPaging()RedactionModegetRedactions()TargetFormatgetTargetFormat()TimeOutgetTimeOut()static Options.BuilderChainnewOptions(TargetFormat target)Creates a new options instance with the specified target format.booleanrenderWholeDocument()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_TARGET
public static final TargetFormat DEFAULT_TARGET
-
DEFAULT_TIMEOUT
public static final TimeOut DEFAULT_TIMEOUT
-
-
Method Detail
-
renderWholeDocument
public boolean renderWholeDocument()
- Returns:
- true, if whole document should be rendered
-
getPaging
public Paging getPaging()
- Returns:
- the page or pages to be rendered
-
getTargetFormat
public TargetFormat getTargetFormat()
- Returns:
- the format to render to
-
getRedactions
public RedactionMode getRedactions()
- Returns:
- the redaction-mode settings
-
getTimeOut
public TimeOut getTimeOut()
- Returns:
- timeout for the render-process
-
getAdditionalOptions
public AdditionalOptions getAdditionalOptions()
Gets the additional options.- Returns:
- the additional options
-
getPageToRender
public int getPageToRender()
Convenience method to find out the number of the page to be rendered. If only one single page is requested, the page number is returned. For all other cases, -1 is returned.- Returns:
- number of page to render, or -1 if more than one page or the whole document will be rendered
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newOptions
public static Options.BuilderChain newOptions(TargetFormat target)
Creates a new options instance with the specified target format.- Parameters:
target- the target format- Returns:
- the builder chain that can be used to complete the creation of the options instance
-
-