public class MessageSupport extends Object
public static void formatTokens(CharArrayBuffer dst, List<String> tokens)
public static void formatTokens(CharArrayBuffer dst, String... tokens)
public static void formatTokens(CharArrayBuffer dst, Set<String> tokens)
@Deprecated public static Header format(String name, Set<String> tokens)
header(String, Set)
@Deprecated public static Header format(String name, String... tokens)
header(String, String...)
public static void parseTokens(CharSequence src, ParserCursor cursor, Consumer<String> consumer)
public static void parseTokens(MessageHeaders headers, String headerName, Consumer<String> consumer)
public static Set<String> parseTokens(CharSequence src, ParserCursor cursor)
public static Iterator<String> iterateTokens(MessageHeaders headers, String name)
public static void formatElements(CharArrayBuffer dst, List<HeaderElement> elements)
public static void formatElements(CharArrayBuffer dst, HeaderElement... elements)
public static Header headerOfElements(String name, List<HeaderElement> elements)
public static Header header(String name, HeaderElement... elements)
public static void parseElements(CharSequence buffer, ParserCursor cursor, Consumer<HeaderElement> consumer)
public static void parseElements(Header header, Consumer<HeaderElement> consumer)
public static void parseElements(MessageHeaders headers, String headerName, Consumer<HeaderElement> consumer)
@Deprecated public static HeaderElement[] parse(Header header)
parseElements(Header, Consumer)
public static List<HeaderElement> parseElements(Header header)
public static Iterator<HeaderElement> iterate(MessageHeaders headers, String name)
public static void formatParameters(CharArrayBuffer dst, List<NameValuePair> params)
public static void formatParameters(CharArrayBuffer dst, NameValuePair... params)
public static void parseParameters(CharSequence src, ParserCursor cursor, Consumer<NameValuePair> consumer)
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 boolean canResponseHaveBody(String method, HttpResponse response)
public static boolean isHopByHop(String headerName)
public static Set<String> hopByHopConnectionSpecific(MessageHeaders headers)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.