/** * This can be used to get the values of HTTP message headers * that have the specified name. This is a convenience method that * will present that values as tokens extracted from the header. * This has obvious performance benefits as it avoids having to * deal with <code>substring</code> and <code>trim</code> calls. * <p> * The tokens returned by this method are ordered according to * there HTTP quality values, or "q" values, see RFC 2616 section * 3.9. This also strips out the quality parameter from tokens * returned. So "image/html; q=0.9" results in "image/html". If * there are no "q" values present then order is by appearance. * <p> * The result from this is either the trimmed header value, that * is, the header value with no leading or trailing whitespace * or an array of trimmed tokens ordered with the most preferred * in the lower indexes, so index 0 is has highest preference. * * @param name the name of the headers that are to be retrieved * * @return ordered array of tokens extracted from the header(s) */ public List<String> getValues(String name) { return header.getValues(name); }
/** * This can be used to get the values of HTTP message headers * that have the specified name. This is a convenience method that * will present that values as tokens extracted from the header. * This has obvious performance benefits as it avoids having to * deal with <code>substring</code> and <code>trim</code> calls. * <p> * The tokens returned by this method are ordered according to * there HTTP quality values, or "q" values, see RFC 2616 section * 3.9. This also strips out the quality parameter from tokens * returned. So "image/html; q=0.9" results in "image/html". If * there are no "q" values present then order is by appearance. * <p> * The result from this is either the trimmed header value, that * is, the header value with no leading or trailing whitespace * or an array of trimmed tokens ordered with the most preferred * in the lower indexes, so index 0 is has highest preference. * * @param name the name of the headers that are to be retrieved * * @return ordered array of tokens extracted from the header(s) */ public List<String> getValues(String name) { return header.getValues(name); }
/** * This can be used to get the values of HTTP message headers * that have the specified name. This is a convenience method that * will present that values as tokens extracted from the header. * This has obvious performance benefits as it avoids having to * deal with <code>substring</code> and <code>trim</code> calls. * <p> * The tokens returned by this method are ordered according to * there HTTP quality values, or "q" values, see RFC 2616 section * 3.9. This also strips out the quality parameter from tokens * returned. So "image/html; q=0.9" results in "image/html". If * there are no "q" values present then order is by appearance. * <p> * The result from this is either the trimmed header value, that * is, the header value with no leading or trailing whitespace * or an array of trimmed tokens ordered with the most preferred * in the lower indexes, so index 0 is has highest preference. * * @param name the name of the headers that are to be retrieved * * @return ordered array of tokens extracted from the header(s) */ public List<String> getValues(String name) { return header.getValues(name); }
/** * This can be used to get the values of HTTP message headers * that have the specified name. This is a convenience method that * will present that values as tokens extracted from the header. * This has obvious performance benefits as it avoids having to * deal with <code>substring</code> and <code>trim</code> calls. * <p> * The tokens returned by this method are ordered according to * there HTTP quality values, or "q" values, see RFC 2616 section * 3.9. This also strips out the quality parameter from tokens * returned. So "image/html; q=0.9" results in "image/html". If * there are no "q" values present then order is by appearance. * <p> * The result from this is either the trimmed header value, that * is, the header value with no leading or trailing whitespace * or an array of trimmed tokens ordered with the most preferred * in the lower indexes, so index 0 is has highest preference. * * @param name the name of the headers that are to be retrieved * * @return ordered list of tokens extracted from the header(s) */ public List<String> getValues(String name) { return getValues(getAll(name)); }
/** * This can be used to get the values of HTTP message headers * that have the specified name. This is a convenience method that * will present that values as tokens extracted from the header. * This has obvious performance benefits as it avoids having to * deal with <code>substring</code> and <code>trim</code> calls. * <p> * The tokens returned by this method are ordered according to * there HTTP quality values, or "q" values, see RFC 2616 section * 3.9. This also strips out the quality parameter from tokens * returned. So "image/html; q=0.9" results in "image/html". If * there are no "q" values present then order is by appearance. * <p> * The result from this is either the trimmed header value, that * is, the header value with no leading or trailing whitespace * or an array of trimmed tokens ordered with the most preferred * in the lower indexes, so index 0 is has highest preference. * * @param name the name of the headers that are to be retrieved * * @return ordered list of tokens extracted from the header(s) */ public List<String> getValues(String name) { return getValues(getAll(name)); }
/** * This can be used to get the values of HTTP message headers * that have the specified name. This is a convenience method that * will present that values as tokens extracted from the header. * This has obvious performance benefits as it avoids having to * deal with <code>substring</code> and <code>trim</code> calls. * <p> * The tokens returned by this method are ordered according to * there HTTP quality values, or "q" values, see RFC 2616 section * 3.9. This also strips out the quality parameter from tokens * returned. So "image/html; q=0.9" results in "image/html". If * there are no "q" values present then order is by appearance. * <p> * The result from this is either the trimmed header value, that * is, the header value with no leading or trailing whitespace * or an array of trimmed tokens ordered with the most preferred * in the lower indexes, so index 0 is has highest preference. * * @param name the name of the headers that are to be retrieved * * @return ordered list of tokens extracted from the header(s) */ public List<String> getValues(String name) { return getValues(getAll(name)); }