Class EndpointBuilder

java.lang.Object
org.kiwiproject.dropwizard.jakarta.xml.ws.AbstractBuilder
org.kiwiproject.dropwizard.jakarta.xml.ws.EndpointBuilder

public class EndpointBuilder extends AbstractBuilder
Jakarta XML Web Services/CXF server endpoint builder.
  • Constructor Details

    • EndpointBuilder

      public EndpointBuilder(String path, Object service)
      Create new EndpointBuilder. Endpoint will be published relative to the CXF servlet path.
      Parameters:
      path - Relative endpoint path.
      service - Service implementation.
  • Method Details

    • getPath

      public String getPath()
    • getService

      public Object getService()
    • publishedEndpointUrl

      public String publishedEndpointUrl()
    • getSessionFactory

      public org.hibernate.SessionFactory getSessionFactory()
    • getAuthentication

      public BasicAuthentication getAuthentication()
    • getProperties

      public Map<String,Object> getProperties()
    • sessionFactory

      public EndpointBuilder sessionFactory(org.hibernate.SessionFactory 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

      public EndpointBuilder authentication(BasicAuthentication 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 class AbstractBuilder
      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 class AbstractBuilder
      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 class AbstractBuilder
      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 class AbstractBuilder
      Parameters:
      interceptors - CXF interceptors.
      Returns:
      EndpointBuilder instance.
    • enableMtom

      public EndpointBuilder enableMtom()
      Invoking enableMTOM is not necessary if you use the MTOM Jakarta XML Web Services annotation on your service implementation class.
      Overrides:
      enableMtom in class AbstractBuilder
    • publishedEndpointUrl

      public EndpointBuilder publishedEndpointUrl(String publishedEndpointUrl)
    • properties

      public EndpointBuilder properties(Map<String,Object> properties)
      Provide a property bag to be supplied to the Jakarta XML Web Services endpoint.