| Package | Description |
|---|---|
| com.landawn.abacus.http |
| Modifier and Type | Field and Description |
|---|---|
static ContentFormat |
HttpUtil.DEFAULT_CONTENT_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
static ContentFormat |
HttpUtil.getAcceptFormat(Annotation[] annotations,
ContentFormat defaultContentFormat) |
ContentFormat |
HttpSettings.getContentFormat()
Gets the content format.
|
static ContentFormat |
HttpUtil.getContentFormat(Annotation[] annotations,
ContentFormat defaultContentFormat) |
static ContentFormat |
HttpUtil.getContentFormat(HttpURLConnection connection)
Gets the content format.
|
static ContentFormat |
HttpUtil.getContentFormat(String contentType,
String contentEncoding)
Gets the content format.
|
static ContentFormat |
HttpUtil.getResponseContentFormat(Map<String,?> respHeaders,
ContentFormat requestContentFormat) |
static ContentFormat |
ContentFormat.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentFormat[] |
ContentFormat.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static ContentFormat |
HttpUtil.getAcceptFormat(Annotation[] annotations,
ContentFormat defaultContentFormat) |
static String |
HttpUtil.getContentEncoding(ContentFormat contentFormat)
Gets the content encoding.
|
static ContentFormat |
HttpUtil.getContentFormat(Annotation[] annotations,
ContentFormat defaultContentFormat) |
static String |
HttpUtil.getContentType(ContentFormat contentFormat)
Gets the content type.
|
static InputStream |
HttpUtil.getInputStream(HttpURLConnection connection,
ContentFormat contentFormat)
Gets the input stream.
|
static OutputStream |
HttpUtil.getOutputStream(HttpURLConnection connection,
ContentFormat contentFormat,
String contentType,
String contentEncoding)
Gets the output stream.
|
static <SC extends SerializationConfig<?>,DC extends DeserializationConfig<?>> |
HttpUtil.getParser(ContentFormat contentFormat)
Gets the parser.
|
static ContentFormat |
HttpUtil.getResponseContentFormat(Map<String,?> respHeaders,
ContentFormat requestContentFormat) |
HttpSettings |
HttpSettings.setContentFormat(ContentFormat contentFormat)
Sets the content format.
|
static InputStream |
HttpUtil.wrapInputStream(InputStream is,
ContentFormat contentFormat)
Wrap input stream.
|
static OutputStream |
HttpUtil.wrapOutputStream(OutputStream os,
ContentFormat contentFormat)
Wrap output stream.
|
Copyright © 2021. All rights reserved.