Modifier and Type | Field and Description |
---|---|
static Charset |
DEFAULT_CHARSET |
static ContentFormat |
DEFAULT_CONTENT_FORMAT |
public static final Charset DEFAULT_CHARSET
public static final ContentFormat DEFAULT_CONTENT_FORMAT
public static String getContentType(HttpHeaders httpHeaders)
public static String getContentType(HttpSettings httpSettings)
public static String getContentType(HttpURLConnection connection)
public static String getContentEncoding(HttpHeaders httpHeaders)
public static String getContentEncoding(HttpSettings httpSettings)
public static String getContentEncoding(HttpURLConnection connection)
public static String getAccept(HttpHeaders httpHeaders)
public static String getAccept(HttpSettings httpSettings)
public static String getAccept(HttpURLConnection connection)
public static String getAcceptEncoding(HttpHeaders httpHeaders)
public static String getAcceptEncoding(HttpSettings httpSettings)
public static String getAcceptEncoding(HttpURLConnection connection)
public static String getAcceptCharset(HttpHeaders httpHeaders)
public static String getAcceptCharset(HttpSettings httpSettings)
public static String getAcceptCharset(HttpURLConnection connection)
public static String getContentType(ContentFormat contentFormat)
contentFormat
- public static String getContentEncoding(ContentFormat contentFormat)
contentFormat
- public static ContentFormat getContentFormat(String contentType, String contentEncoding)
contentType
- contentEncoding
- public static ContentFormat getContentFormat(HttpURLConnection connection)
connection
- public static ContentFormat getResponseContentFormat(Map<String,?> respHeaders, ContentFormat requestContentFormat)
public static <SC extends SerializationConfig<?>,DC extends DeserializationConfig<?>> Parser<SC,DC> getParser(ContentFormat contentFormat)
SC
- DC
- contentFormat
- public static InputStream wrapInputStream(InputStream is, ContentFormat contentFormat)
is
- contentFormat
- public static OutputStream wrapOutputStream(OutputStream os, ContentFormat contentFormat)
os
- contentFormat
- public static OutputStream getOutputStream(HttpURLConnection connection, ContentFormat contentFormat, String contentType, String contentEncoding) throws IOException
connection
- contentFormat
- contentType
- contentEncoding
- IOException
- Signals that an I/O exception has occurred.public static InputStream getInputStream(HttpURLConnection connection, ContentFormat contentFormat) throws IOException
connection
- contentFormat
- IOException
- Signals that an I/O exception has occurred.public static void flush(OutputStream os) throws IOException
os
- IOException
- Signals that an I/O exception has occurred.public static Charset getRequestCharset(HttpHeaders headers)
public static Charset getResponseCharset(Map<String,?> headers, Charset requestCharset)
public static HttpMethod getHttpMethod(Method method)
public static Set<HttpMethod> getHttpMethods(Method method)
public static String getHttpPath(Annotation[] annotations)
public static ContentFormat getContentFormat(Annotation[] annotations, ContentFormat defaultContentFormat)
public static ContentFormat getAcceptFormat(Annotation[] annotations, ContentFormat defaultContentFormat)
public static Map<String,String> getHttpHeaders(Annotation[] annotations)
@Deprecated public static void turnOffCertificateValidation()
Copyright © 2021. All rights reserved.