return value != null ? parseLong(value) : -1;
}
public String contentType() {
ContentType contentType = ContentType.of(this);
return contentType != null ? contentType.mediaType() : null;
}
public Request addParameter(String name, String value) {
if (!parameters.containsKey(name)) {
parameters.put(name, new ArrayList<String>());