Lines Matching refs:name
157 * if no headers with the specified name exist.
159 * @param name header name
162 public String[] getHeader(String name) {
169 if (name.equalsIgnoreCase(h.name)) {
180 * Get all the headers for this header name, returned as a single
184 * if no headers with the specified name exist.
188 * this name, or null if none
189 * @param name header name
191 public String getHeader(String name, String delimiter) {
192 String[] s = getHeader(name);
209 * Change the first header line that matches name
215 * @param name header name
218 public void setHeader(String name, String value) {
223 if (name.equalsIgnoreCase(h.name)) {
229 h.line = name + ": " + value;
240 addHeader(name, value);
245 * Add a header with the specified name and value to the header list. <p>
249 * @param name header name
252 public void addHeader(String name, String value) {
256 if (name.equalsIgnoreCase(h.name)) {
257 headers.add(i + 1, new hdr(name, value));
261 if (h.name.equals(":"))
264 headers.add(pos, new hdr(name, value));
268 * Remove all header entries that match the given name
270 * @param name header name
272 public void removeHeader(String name) {
275 if (name.equalsIgnoreCase(h.name)) {
341 String name; // the canonicalized (trimmed) name of this header
342 // XXX - should name be stored in lower case?
347 * the header name.
353 name = l.trim();
355 name = l.substring(0, i).trim();
361 * Constructor that takes a header name and value.
364 name = n;
369 * Return the "name" part of the header line.
372 return name;
384 if (name.equalsIgnoreCase("Content-Description")) {