Class InformationRequestHandler.Builder
java.lang.Object
is.galia.resource.InformationRequestHandler.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withDelegate(Delegate delegate) withIdentifier(Identifier identifier) withReference(Reference reference) withRequestContext(RequestContext requestContext)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withCallback
- Parameters:
callback- Callback to receive events during request handling.
-
withDelegate
- Parameters:
delegate- Delegate. If set to a non-nullvalue, arequest context must also be set.
-
withIdentifier
-
withReference
-
withRequestContext
- Parameters:
requestContext- Request context. If set to a non-nullvalue, adelegate must also be set.
-
build
- Returns:
- New instance.
- Throws:
IllegalArgumentException- if any of the required builder methods have not been called.
-