Package com.sun.xml.ws.transport.http
Class HttpMetadataPublisher
java.lang.Object
com.sun.xml.ws.transport.http.HttpMetadataPublisher
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanhandleMetadataRequest(HttpAdapter adapter, WSHTTPConnection connection) WhenHttpAdapterreceives 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.
-
Constructor Details
-
HttpMetadataPublisher
protected HttpMetadataPublisher()Default constructor.
-
-
Method Details
-
handleMetadataRequest
public abstract boolean handleMetadataRequest(@NotNull HttpAdapter adapter, @NotNull WSHTTPConnection connection) throws IOException WhenHttpAdapterreceives 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
-