Package org.kiwiproject.config
Class EndpointConfiguration.Builder
java.lang.Object
org.kiwiproject.config.EndpointConfiguration.Builder
- Enclosing class:
- EndpointConfiguration
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().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Call this to add thisEndpointConfigurationto the parentSecureEndpointsConfigurationand return to building theSecureEndpointsConfiguration, which can include more endpoints.setUrlRewriteConfiguration(UrlRewriteConfiguration urlRewriteConfig) urlRewriteConfiguration(UrlRewriteConfiguration urlRewriteConfig)
-
Constructor Details
-
Builder
-
-
Method Details
-
tag
-
setTag
-
scheme
-
setScheme
-
domain
-
setDomain
-
port
-
setPort
-
path
-
setPath
-
urlRewriteConfiguration
public EndpointConfiguration.Builder urlRewriteConfiguration(UrlRewriteConfiguration urlRewriteConfig) -
setUrlRewriteConfiguration
public EndpointConfiguration.Builder setUrlRewriteConfiguration(UrlRewriteConfiguration urlRewriteConfig) -
build
-
buildEndpoint
Call this to add thisEndpointConfigurationto the parentSecureEndpointsConfigurationand return to building theSecureEndpointsConfiguration, which can include more endpoints.- Returns:
- The parent
SecureEndpointsConfiguration's builder, after adding this endpoint to the parent - See Also:
-