* @param fieldInfo The field to decode.
* @param response The object we pull data from.
* @return The appropriate value.
*/
private String getServerToClient(FieldInfo fieldInfo, Response response) {
HttpResponse r = (HttpResponse)response;
switch(fieldInfo.location) {
case FieldInfo.FIELD_STATUS:
return "" + r.getStatus();
case FieldInfo.FIELD_COMMENT:
return "?"; /* Not coded yet*/
case FieldInfo.FIELD_HEADER:
return wrap(r.getHeader(fieldInfo.value));
default:
;
}
return "-";