Package org.openstack4j.core.transport
Class ExecutionOptions<R>
- java.lang.Object
-
- org.openstack4j.core.transport.ExecutionOptions<R>
-
public class ExecutionOptions<R> extends Object
HTTP Execution Options- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R> ExecutionOptions<R>create(Function<HttpResponse,R> parser)static <R> ExecutionOptions<R>create(Function<HttpResponse,R> parser, PropagateResponse propagateResponse)static <R> ExecutionOptions<R>create(PropagateResponse propagateResponse)Function<HttpResponse,R>getParser()booleanhasParser()voidpropagate(HttpResponse response)If a PropagateResponse is associated with these options then it will be invoked otherwise a no-op
-
-
-
Method Detail
-
create
public static <R> ExecutionOptions<R> create(Function<HttpResponse,R> parser)
-
create
public static <R> ExecutionOptions<R> create(PropagateResponse propagateResponse)
-
create
public static <R> ExecutionOptions<R> create(Function<HttpResponse,R> parser, PropagateResponse propagateResponse)
-
getParser
public Function<HttpResponse,R> getParser()
- Returns:
- the result function parser or null
-
hasParser
public boolean hasParser()
- Returns:
- true if a result parser is associated with these options
-
propagate
public void propagate(HttpResponse response)
If a PropagateResponse is associated with these options then it will be invoked otherwise a no-op- Parameters:
response- the HttpResponse
-
-