public String getName() { return BufferUtil.to8859_1_String(_name); }
public String getValue() { if (_stringValue==null) _stringValue=BufferUtil.to8859_1_String(_value); return _stringValue; }
public Object nextElement() throws NoSuchElementException { if (field != null || hasMoreElements()) { String n = BufferUtil.to8859_1_String(field._name); field = null; return n; } throw new NoSuchElementException(); } };
/** * @return the value of a field, or null if not found. For multiple fields of the same name, * only the first is returned. * @param name the case-insensitive field name */ public String getStringField(Buffer name) { // TODO - really reuse strings from previous requests! Field field = getField(name); if (field != null && field._revision == _revision) return BufferUtil.to8859_1_String(field._value); return null; }
public String toString() { try { ByteArrayBuffer buffer = new ByteArrayBuffer(4096); put(buffer); return BufferUtil.to8859_1_String(buffer); } catch (Exception e) { e.printStackTrace(); } return null; }
String val = valueParameters(BufferUtil.to8859_1_String(field._value), null); if (val == null) return -1;
_serverName=BufferUtil.to8859_1_String(hostPort.peek(hostPort.getIndex(), i)); _port=BufferUtil.toInt(hostPort.peek(hostPort.getIndex()+i+1, hostPort.length()-i-1)); return _serverName; _serverName=BufferUtil.to8859_1_String(hostPort); _port = 0;