static class GeoLocation.ResponseFilter extends java.lang.Object implements Filter<org.apache.http.HttpResponse>, AbsoluteProgressReporter
Constructor and Description |
---|
ResponseFilter() |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String message)
Append a message to the previous one.
|
void |
display(int percent,
java.lang.String message)
Display a progress message.
|
void |
displayAbsolute(long completed,
java.lang.String message)
Display a progress message.
|
boolean |
evaluate(org.apache.http.HttpResponse response)
Evaluate if the given object should pass the filter or not.
|
public boolean evaluate(org.apache.http.HttpResponse response)
Filter
public void display(int percent, java.lang.String message)
ProgressReporter
display
in interface ProgressReporter
percent
- How many percent of the task that is completed
or -1 if not knownmessage
- A message, or nullpublic void append(java.lang.String message)
ProgressReporter
append
in interface ProgressReporter
message
- The messagepublic void displayAbsolute(long completed, java.lang.String message)
AbsoluteProgressReporter
displayAbsolute
in interface AbsoluteProgressReporter
completed
- The progress of the taskmessage
- A message, or null