T - The type of the request object.public abstract static class Request.Builder<T extends Request,O,B extends Request.Builder<T,O,B>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
content |
protected String |
contentType |
protected String |
contentUri |
protected com.basistech.util.LanguageCode |
language |
protected O |
options |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
build()
Construct the request object.
|
B |
content(String content)
Set the content for this request as a string of plain text.
|
InputStream |
contentBytes() |
B |
contentBytes(byte[] bytes,
String contentType)
Specify the content as bytes with a content type.
|
B |
contentBytes(InputStream bytes,
String contentType)
Specify the content as bytes with a content type.
|
String |
contentString() |
String |
contentType() |
String |
contentUri() |
B |
contentUri(String uri)
Set the content for this request to be the URI of data to download.
|
protected abstract B |
getThis() |
B |
language(com.basistech.util.LanguageCode language)
Set the language of the input.
|
O |
options() |
B |
options(O options)
Set the options for this request.
|
protected com.basistech.util.LanguageCode language
protected Object content
protected String contentUri
protected String contentType
protected O options
protected abstract B getThis()
public B language(com.basistech.util.LanguageCode language)
language - the language.public B content(String content)
content - the content.public String contentString()
public B contentUri(String uri)
uri - the URI.public String contentUri()
public B contentBytes(byte[] bytes, String contentType)
bytes - The data.contentType - the content type.public B contentBytes(InputStream bytes, String contentType)
bytes - The data.contentType - the content type.public InputStream contentBytes()
public String contentType()
public B options(O options)
options - the options.public O options()
public abstract T build()
Copyright © 2014–2016 Basis Technology Corp.. All rights reserved.