protected static class ResponseBuilder.NoResult extends ResponseBuilder
ResponseBuilder.NoResult, ResponseBuilder.WarningLog, ResponseBuilder.Warnings, ResponseBuilder.WarningsList| Modifier and Type | Method and Description |
|---|---|
ResolvingException |
asException()
Represents the warnings as single exception.
|
RRequest |
getRequest()
Returns the request that was responded to.
|
RResult |
getResult()
Returns result if present, otherwise throws
RResponse.asException(). |
List<Exception> |
getWarningsLog()
Returns a list of non-critical exceptions that occurred during look-up.
|
boolean |
hasResult()
Returns true if look-up found a result.
|
ResponseBuilder |
withResponse(RResponse r)
Returns a response builder that unifies this builder and the given response.
|
RResponse |
withResult(RResult result)
Returns a response that combines the warnings of this builder with the given result.
|
ResponseBuilder |
withWarning(Exception e)
Returns a response builder with an additional warning.
|
ResponseBuilder |
withWarning(String message)
Returns a response builder with an additional warning message.
|
noResultpublic NoResult(RRequest request)
public ResponseBuilder withWarning(Exception e)
ResponseBuilderwithWarning in class ResponseBuilderpublic ResponseBuilder withWarning(String message)
ResponseBuilderwithWarning in class ResponseBuilderpublic ResponseBuilder withResponse(RResponse r)
ResponseBuilderwithResponse in class ResponseBuilderpublic RResponse withResult(RResult result)
ResponseBuilderwithResult in class ResponseBuilderpublic RRequest getRequest()
RResponsepublic boolean hasResult()
RResponsepublic RResult getResult()
RResponseRResponse.asException().public List<Exception> getWarningsLog()
RResponsepublic ResolvingException asException()
RResponseCopyright © 2015. All rights reserved.