Skip to content

Commit

Permalink
Remove deprecated methods from JAXWSBundle (#66)
Browse files Browse the repository at this point in the history
Closes #65
  • Loading branch information
sleberknight authored Nov 8, 2023
1 parent b59b892 commit e8173cd
Showing 1 changed file with 0 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import io.dropwizard.core.ConfiguredBundle;
import io.dropwizard.core.setup.Bootstrap;
import io.dropwizard.core.setup.Environment;
import jakarta.xml.ws.handler.Handler;
import org.apache.cxf.jaxws.EndpointImpl;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.hibernate.SessionFactory;

/**
* A Dropwizard bundle that enables Dropwizard applications to publish SOAP web services using
Expand Down Expand Up @@ -83,92 +81,6 @@ public EndpointImpl publishEndpoint(EndpointBuilder endpointBuilder) {
return this.jaxwsEnvironment.publishEndpoint(endpointBuilder);
}

/**
* Publish Jakarta XML Web Services endpoint. Endpoint is published relative to the CXF servlet path.
*
* @param path Relative endpoint path.
* @param service Service implementation.
* @return javax.xml.ws.Endpoint
* @deprecated Use the {@link #publishEndpoint(EndpointBuilder) publishEndpoint} method instead.
*/
@Deprecated(since = "0.5.0")
public EndpointImpl publishEndpoint(String path, Object service) {
return this.publishEndpoint(path, service, null, null);
}

/**
* Publish Jakarta XML Web Services endpoint with Dropwizard Hibernate Bundle integration. Service is
* scanned for @UnitOfWork annotations. EndpointBuilder is published relative to the CXF servlet path.
*
* @param path Relative endpoint path.
* @param service Service implementation.
* @param sessionFactory Hibernate session factory.
* @return javax.xml.ws.Endpoint
* @deprecated Use the {@link #publishEndpoint(EndpointBuilder) publishEndpoint} method instead.
*/
@Deprecated(since = "0.5.0")
public EndpointImpl publishEndpoint(String path, Object service, SessionFactory sessionFactory) {
return this.publishEndpoint(path, service, null, sessionFactory);
}

/**
* Publish Jakarta XML Web Services protected endpoint using Dropwizard BasicAuthentication.
* EndpointBuilder is published relative to the CXF servlet path.
*
* @param path Relative endpoint path.
* @param service Service implementation.
* @param authentication BasicAuthentication implementation.
* @return javax.xml.ws.Endpoint
* @deprecated Use the {@link #publishEndpoint(EndpointBuilder) publishEndpoint} method instead.
*/
@Deprecated(since = "0.5.0")
public EndpointImpl publishEndpoint(String path, Object service, BasicAuthentication authentication) {
return this.publishEndpoint(path, service, authentication, null);
}

/**
* Publish Jakarta XML Web Services protected endpoint using Dropwizard BasicAuthentication with
* Dropwizard Hibernate Bundle integration. Service is scanned for @UnitOfWork annotations. EndpointBuilder
* is published relative to the CXF servlet path.
*
* @param path Relative endpoint path.
* @param service Service implementation.
* @param auth BasicAuthentication implementation.
* @param sessionFactory Hibernate session factory.
* @return javax.xml.ws.Endpoint
* @deprecated Use the {@link #publishEndpoint(EndpointBuilder) publishEndpoint} method instead.
*/
@Deprecated(since = "0.5.0")
public EndpointImpl publishEndpoint(String path, Object service, BasicAuthentication auth,
SessionFactory sessionFactory) {
checkArgument(service != null, "Service is null");
checkArgument(path != null, "Path is null");
checkArgument((path).trim().length() > 0, "Path is empty");
return this.publishEndpoint(new EndpointBuilder(path, service)
.authentication(auth)
.sessionFactory(sessionFactory)
);
}

/**
* Factory method for creating Jakarta XML Web Services clients.
*
* @param serviceClass Service interface class.
* @param address Endpoint URL address.
* @param handlers Client side Jakarta XML Web Services handlers. Optional.
* @param <T> Service interface type.
* @return Jakarta XML Web Services client proxy.
* @deprecated Use the {@link #getClient(ClientBuilder) getClient} method instead.
*/
@Deprecated(since = "0.5.0")
public <T> T getClient(Class<T> serviceClass, String address, Handler... handlers) {
checkArgument(serviceClass != null, "ServiceClass is null");
checkArgument(address != null, "Address is null");
checkArgument((address).trim().length() > 0, "Address is empty");
return jaxwsEnvironment.getClient(
new ClientBuilder<>(serviceClass, address).handlers(handlers));
}

/**
* Factory method for creating Jakarta XML Web Services clients.
*
Expand Down

0 comments on commit e8173cd

Please sign in to comment.