public class MessageSupport extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addContentEncodingHeader(HttpMessage message,
EntityDetails entity) |
static void |
addContentTypeHeader(HttpMessage message,
EntityDetails entity) |
static void |
addTrailerHeader(HttpMessage message,
EntityDetails entity) |
static boolean |
canResponseHaveBody(String method,
HttpResponse response) |
static Header |
format(String name,
Set<String> tokens) |
static Header |
format(String name,
String... tokens) |
static void |
formatTokens(CharArrayBuffer dst,
Set<String> tokens) |
static void |
formatTokens(CharArrayBuffer dst,
String... tokens) |
static Iterator<HeaderElement> |
iterate(MessageHeaders headers,
String name) |
static HeaderElement[] |
parse(Header header) |
static Set<String> |
parseTokens(CharSequence src,
ParserCursor cursor) |
static Set<String> |
parseTokens(Header header) |
public static void formatTokens(CharArrayBuffer dst, String... tokens)
public static void formatTokens(CharArrayBuffer dst, Set<String> tokens)
public static Set<String> parseTokens(CharSequence src, ParserCursor cursor)
public static void addContentTypeHeader(HttpMessage message, EntityDetails entity)
public static void addContentEncodingHeader(HttpMessage message, EntityDetails entity)
public static void addTrailerHeader(HttpMessage message, EntityDetails entity)
public static Iterator<HeaderElement> iterate(MessageHeaders headers, String name)
public static HeaderElement[] parse(Header header)
public static boolean canResponseHaveBody(String method, HttpResponse response)
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.