@ParametersAreNonnullByDefault public class GetBodyOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GetBodyOptions.Builder |
| Modifier and Type | Field and Description |
|---|---|
static GetBodyOptions |
PREFER_TEXT_BODY_NO_STRIP_WHITESPACE
Options that will prefer the text part for the body, and not strip any whitespace.
|
static GetBodyOptions |
PREFER_TEXT_BODY_STRIP_WHITESPACE
Options that will prefer the text part for the body, and will strip any whitespace.
|
| Modifier and Type | Method and Description |
|---|---|
static GetBodyOptions.Builder |
builder() |
static GetBodyOptions.Builder |
builder(GetBodyOptions template) |
HtmlConverter |
getHtmlConverter() |
boolean |
isPreferHtmlPart() |
boolean |
isStripWhitespace() |
public static final GetBodyOptions PREFER_TEXT_BODY_NO_STRIP_WHITESPACE
If only a HTML part is present, then will use HtmlToTextConverter to convert to text.
public static final GetBodyOptions PREFER_TEXT_BODY_STRIP_WHITESPACE
If only a HTML part is present, then will use HtmlToTextConverter to convert to text.
public boolean isStripWhitespace()
public boolean isPreferHtmlPart()
public HtmlConverter getHtmlConverter()
public static GetBodyOptions.Builder builder()
public static GetBodyOptions.Builder builder(GetBodyOptions template)
Copyright © 2018 Atlassian. All rights reserved.