public abstract class ResponseBuilder extends Object implements RResponse
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ResponseBuilder.NoResult |
protected static class |
ResponseBuilder.WarningLog |
protected static interface |
ResponseBuilder.Warnings |
protected static class |
ResponseBuilder.WarningsList |
| Constructor and Description |
|---|
ResponseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static ResponseBuilder |
noResult(RRequest request)
Creates an immutable no-result response for the given request.
|
abstract ResponseBuilder |
withResponse(RResponse r)
Returns a response builder that unifies this builder and the given response.
|
abstract RResponse |
withResult(RResult result)
Returns a response that combines the warnings of this builder with the given result.
|
abstract ResponseBuilder |
withWarning(Exception t)
Returns a response builder with an additional warning.
|
abstract ResponseBuilder |
withWarning(String message)
Returns a response builder with an additional warning message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasException, getRequest, getResult, getWarningsLog, hasResultpublic abstract ResponseBuilder withWarning(String message)
message - public abstract ResponseBuilder withWarning(Exception t)
t - public abstract ResponseBuilder withResponse(RResponse r)
r - public abstract RResponse withResult(RResult result)
result - public static ResponseBuilder noResult(RRequest request)
request - Copyright © 2015. All rights reserved.