Class EndpointConfiguration.Builder

java.lang.Object
org.kiwiproject.config.EndpointConfiguration.Builder
Enclosing class:
EndpointConfiguration

public static class EndpointConfiguration.Builder extends Object
To use this EndpointConfiguration.Builder standalone, use the EndpointConfiguration.builder() method. When using this, do not call buildEndpoint() or else an IllegalStateException will be thrown since this method assumes the endpoint is being built in the context of a SecureEndpointsConfiguration.

To use this EndpointConfiguration.Builder as part of building a SecureEndpointsConfiguration, use the EndpointConfiguration.builder(SecureEndpointsConfiguration.Builder) method and supply the SecureEndpointsConfiguration instance that becomes the "parent" of this endpoint.

Implementation Note:
This was implemented well before we started using Lombok, thus the manual builder code. Since there are some differences here, e.g. the constructor accepting the "parent" and the buildEndpoint() method, not sure how feasible it is to refactor to use Lombok, or if it's worth bothering. In addition, we have left the original setXxx() methods in here and added Lombok-style xxx() methods. While permissible, you should be consistent in using all xxx() or all setXxx().