@Override
 public void addHeader(String name, String value) {
   if (name.equals(LOCATION)) {
     String newLocation = mapLocation(value.trim());
     super.addHeader(name, newLocation);
   } else {
     super.addHeader(name, value);
   }
 }
 @Override
 public void addHeader(String name, String value) {
   super.addHeader(name, value);
   headers.put(name, value);
 }
Exemplo n.º 3
0
 /** Adds a header. */
 public void addHeader(final String name, final String value) {
   final String[] header = new String[] {name, value};
   headers.add(header);
   super.addHeader(name, value);
 }