Class HttpMetadataPublisher

java.lang.Object
com.sun.xml.ws.transport.http.HttpMetadataPublisher

public abstract class HttpMetadataPublisher extends Object
Intercepts GET HTTP requests to process the requests.

HttpAdapter looks for this SPI in WSEndpoint.getComponents() to allow components to expose additional information through HTTP.

Since:
2.1.2
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • HttpMetadataPublisher

      protected HttpMetadataPublisher()
      Default constructor.
  • Method Details

    • handleMetadataRequest

      public abstract boolean handleMetadataRequest(@NotNull HttpAdapter adapter, @NotNull WSHTTPConnection connection) throws IOException
      When HttpAdapter receives a GET request with a query string (which is a convention for metadata requests, such as '?wsdl' or '?xsd=...'), then this method is invoked to allow components to intercept the request.
      Parameters:
      adapter - Adapter that accepted the connection.
      connection - Represents the current connection.
      Returns:
      true if the request is processed. If false is returned the default processing kicks in.
      Throws:
      IOException