Class EndpointBuilder
java.lang.Object
org.kiwiproject.dropwizard.jakarta.xml.ws.AbstractBuilder
org.kiwiproject.dropwizard.jakarta.xml.ws.EndpointBuilder
Jakarta XML Web Services/CXF server endpoint builder.
-
Field Summary
Fields inherited from class org.kiwiproject.dropwizard.jakarta.xml.ws.AbstractBuilder
cxfInFaultInterceptors, cxfInInterceptors, cxfOutFaultInterceptors, cxfOutInterceptors, mtomEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthentication
(BasicAuthentication authentication) Publish Jakarta XML Web Services protected endpoint using Dropwizard BasicAuthentication.final EndpointBuilder
cxfInFaultInterceptors
(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Add CXF interceptors to the incoming fault interceptor chain.final EndpointBuilder
cxfInInterceptors
(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Add CXF interceptors to the incoming interceptor chain.final EndpointBuilder
cxfOutFaultInterceptors
(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Add CXF interceptors to the outgoing fault interceptor chain.final EndpointBuilder
cxfOutInterceptors
(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Add CXF interceptors to the outgoing interceptor chain.Invoking enableMTOM is not necessary if you use theMTOM
Jakarta XML Web Services annotation on your service implementation class.getPath()
org.hibernate.SessionFactory
properties
(Map<String, Object> properties) Provide a property bag to be supplied to the Jakarta XML Web Services endpoint.publishedEndpointUrl
(String publishedEndpointUrl) sessionFactory
(org.hibernate.SessionFactory sessionFactory) Publish Jakarta XML Web Services endpoint with Dropwizard Hibernate Bundle integration.Methods inherited from class org.kiwiproject.dropwizard.jakarta.xml.ws.AbstractBuilder
getCxfInFaultInterceptors, getCxfInInterceptors, getCxfOutFaultInterceptors, getCxfOutInterceptors, isMtomEnabled
-
Constructor Details
-
EndpointBuilder
Create new EndpointBuilder. Endpoint will be published relative to the CXF servlet path.- Parameters:
path
- Relative endpoint path.service
- Service implementation.
-
-
Method Details
-
getPath
-
getService
-
publishedEndpointUrl
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory() -
getAuthentication
-
getProperties
-
sessionFactory
Publish Jakarta XML Web Services endpoint with Dropwizard Hibernate Bundle integration. Service will be scanned for @UnitOfWork annotations.- Parameters:
sessionFactory
- Hibernate session factory.
-
authentication
Publish Jakarta XML Web Services protected endpoint using Dropwizard BasicAuthentication.- Parameters:
authentication
- BasicAuthentication implementation.
-
cxfInInterceptors
@SafeVarargs public final EndpointBuilder cxfInInterceptors(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Description copied from class:AbstractBuilder
Add CXF interceptors to the incoming interceptor chain.- Overrides:
cxfInInterceptors
in classAbstractBuilder
- Parameters:
interceptors
- CXF interceptors.- Returns:
- EndpointBuilder instance.
-
cxfInFaultInterceptors
@SafeVarargs public final EndpointBuilder cxfInFaultInterceptors(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Description copied from class:AbstractBuilder
Add CXF interceptors to the incoming fault interceptor chain.- Overrides:
cxfInFaultInterceptors
in classAbstractBuilder
- Parameters:
interceptors
- CXF interceptors.- Returns:
- EndpointBuilder instance.
-
cxfOutInterceptors
@SafeVarargs public final EndpointBuilder cxfOutInterceptors(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Description copied from class:AbstractBuilder
Add CXF interceptors to the outgoing interceptor chain.- Overrides:
cxfOutInterceptors
in classAbstractBuilder
- Parameters:
interceptors
- CXF interceptors.- Returns:
- EndpointBuilder instance.
-
cxfOutFaultInterceptors
@SafeVarargs public final EndpointBuilder cxfOutFaultInterceptors(org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>... interceptors) Description copied from class:AbstractBuilder
Add CXF interceptors to the outgoing fault interceptor chain.- Overrides:
cxfOutFaultInterceptors
in classAbstractBuilder
- Parameters:
interceptors
- CXF interceptors.- Returns:
- EndpointBuilder instance.
-
enableMtom
Invoking enableMTOM is not necessary if you use theMTOM
Jakarta XML Web Services annotation on your service implementation class.- Overrides:
enableMtom
in classAbstractBuilder
-
publishedEndpointUrl
-
properties
Provide a property bag to be supplied to the Jakarta XML Web Services endpoint.
-