Input
- Skill input type.Output
- Skill output type.Self
- of type Builder or any parent class of Builder.public abstract static class AbstractSkillConfiguration.Builder<Input,Output,Self extends AbstractSkillConfiguration.Builder> extends Object
Modifier and Type | Field and Description |
---|---|
protected GenericExceptionMapper<Input,Output> |
exceptionMapper
Exception mapper.
|
protected List<GenericHandlerAdapter<Input,Output>> |
handlerAdapters
List of handler adapters.
|
protected List<GenericRequestInterceptor<Input>> |
requestInterceptors
List of request interceptors.
|
protected List<GenericRequestMapper<Input,Output>> |
requestMappers
List of request mappers.
|
protected List<GenericResponseInterceptor<Input,Output>> |
responseInterceptors
List of response interceptors.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Constructor to build an instance of Builder.
|
Modifier and Type | Method and Description |
---|---|
Self |
addHandlerAdapter(GenericHandlerAdapter<Input,Output> handlerAdapter)
Add a handler adapter to Skill config.
|
Self |
addRequestInterceptor(GenericRequestInterceptor<Input> requestInterceptor)
Add a request interceptor to Skill config.
|
Self |
addRequestMapper(GenericRequestMapper<Input,Output> requestMapper)
Add a request mapper to Skill config.
|
Self |
addResponseInterceptor(GenericResponseInterceptor<Input,Output> responseInterceptor)
Add a response interceptor to Skill config.
|
abstract GenericSkillConfiguration<Input,Output> |
build()
Abstract method to return an instance of GenericSkillConfiguration.
|
List<GenericHandlerAdapter<Input,Output>> |
getHandlerAdapters()
Getter for handler adapters.
|
List<GenericRequestInterceptor<Input>> |
getRequestInterceptors()
Getter for request interceptors.
|
List<GenericRequestMapper<Input,Output>> |
getRequestMappers()
Getter for request mappers.
|
List<GenericResponseInterceptor<Input,Output>> |
getResponseInterceptors()
Getter for response interceptors.
|
Self |
withExceptionMapper(GenericExceptionMapper<Input,Output> exceptionMapper)
Add an exception mapper to Skill config.
|
Self |
withHandlerAdapters(List<GenericHandlerAdapter<Input,Output>> handlerAdapters)
Add multiple handler adapters to Skill config.
|
Self |
withRequestInterceptors(List<GenericRequestInterceptor<Input>> requestInterceptors)
Add multiple request interceptors to Skill config.
|
Self |
withRequestMappers(List<GenericRequestMapper<Input,Output>> requestMappers)
Add multiple request mappers to Skill config.
|
Self |
withResponseInterceptors(List<GenericResponseInterceptor<Input,Output>> responseInterceptors)
Add multiple response interceptors to Skill config.
|
protected List<GenericRequestMapper<Input,Output>> requestMappers
protected List<GenericHandlerAdapter<Input,Output>> handlerAdapters
protected List<GenericRequestInterceptor<Input>> requestInterceptors
protected List<GenericResponseInterceptor<Input,Output>> responseInterceptors
protected GenericExceptionMapper<Input,Output> exceptionMapper
public Self addRequestMapper(GenericRequestMapper<Input,Output> requestMapper)
requestMapper
- request mapper.AbstractSkillConfiguration.Builder
.public Self withRequestMappers(List<GenericRequestMapper<Input,Output>> requestMappers)
requestMappers
- list of request mappers.AbstractSkillConfiguration.Builder
.public List<GenericRequestMapper<Input,Output>> getRequestMappers()
GenericRequestMapper
.public Self addHandlerAdapter(GenericHandlerAdapter<Input,Output> handlerAdapter)
handlerAdapter
- handler adapter.AbstractSkillConfiguration.Builder
.public Self withHandlerAdapters(List<GenericHandlerAdapter<Input,Output>> handlerAdapters)
handlerAdapters
- list of handler adapters.AbstractSkillConfiguration.Builder
.public List<GenericHandlerAdapter<Input,Output>> getHandlerAdapters()
GenericHandlerAdapter
.public Self addRequestInterceptor(GenericRequestInterceptor<Input> requestInterceptor)
requestInterceptor
- request interceptor.AbstractSkillConfiguration.Builder
.public Self withRequestInterceptors(List<GenericRequestInterceptor<Input>> requestInterceptors)
requestInterceptors
- list of request interceptors.AbstractSkillConfiguration.Builder
.public List<GenericRequestInterceptor<Input>> getRequestInterceptors()
GenericRequestInterceptor
.public Self addResponseInterceptor(GenericResponseInterceptor<Input,Output> responseInterceptor)
responseInterceptor
- response interceptor.AbstractSkillConfiguration.Builder
.public Self withResponseInterceptors(List<GenericResponseInterceptor<Input,Output>> responseInterceptors)
responseInterceptors
- list of response interceptors.AbstractSkillConfiguration.Builder
.public List<GenericResponseInterceptor<Input,Output>> getResponseInterceptors()
GenericResponseInterceptor
.public Self withExceptionMapper(GenericExceptionMapper<Input,Output> exceptionMapper)
exceptionMapper
- exception mapper.AbstractSkillConfiguration.Builder
.public abstract GenericSkillConfiguration<Input,Output> build()
GenericSkillConfiguration
.Copyright © 2023. All rights reserved.