Home | History | Annotate | Download | only in params

Lines Matching refs:charset

63      * Returns the charset to be used for writing HTTP headers.
64 * @return The charset
70 String charset = (String) params.getParameter
72 if (charset == null) {
73 charset = HTTP.DEFAULT_PROTOCOL_CHARSET;
75 return charset;
79 * Sets the charset to be used for writing HTTP headers.
80 * @param charset The charset
82 public static void setHttpElementCharset(final HttpParams params, final String charset) {
86 params.setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, charset);
90 * Returns the default charset to be used for writing content body,
91 * when no charset explicitly specified.
92 * @return The charset
98 String charset = (String) params.getParameter
100 if (charset == null) {
101 charset = HTTP.DEFAULT_CONTENT_CHARSET;
103 return charset;
107 * Sets the default charset to be used for writing content body,
108 * when no charset explicitly specified.
109 * @param charset The charset
111 public static void setContentCharset(final HttpParams params, final String charset) {
115 params.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, charset);