R
- public class ExecutionOptions<R> extends Object
Modifier and Type | Method and Description |
---|---|
static <R> ExecutionOptions<R> |
create(com.google.common.base.Function<HttpResponse,R> parser) |
static <R> ExecutionOptions<R> |
create(com.google.common.base.Function<HttpResponse,R> parser,
PropagateResponse propagateResponse) |
static <R> ExecutionOptions<R> |
create(PropagateResponse propagateResponse) |
com.google.common.base.Function<HttpResponse,R> |
getParser() |
boolean |
hasParser() |
void |
propagate(HttpResponse response)
If a PropagateResponse is associated with these options then it will be invoked otherwise a no-op
|
public static <R> ExecutionOptions<R> create(com.google.common.base.Function<HttpResponse,R> parser)
public static <R> ExecutionOptions<R> create(PropagateResponse propagateResponse)
public static <R> ExecutionOptions<R> create(com.google.common.base.Function<HttpResponse,R> parser, PropagateResponse propagateResponse)
public com.google.common.base.Function<HttpResponse,R> getParser()
public boolean hasParser()
public void propagate(HttpResponse response)
response
- the HttpResponseCopyright © 2017. All rights reserved.