Package com.jsgalactic.axiom.http.spi
Interface HttpTransportProvider
public interface HttpTransportProvider
Service-provider boundary for HTTP transports. Implementations own all listener resources.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Serverbind(Application application, InetSocketAddress address) Binds a running application with the default options.bind(Application application, InetSocketAddress address, ListenerOptions options) Binds a running application.
-
Method Details
-
bind
Binds a running application with the default options.- Parameters:
application- running applicationaddress- address to bind- Returns:
- owned listener
- Throws:
IOException- if binding fails
-
bind
Server bind(Application application, InetSocketAddress address, ListenerOptions options) throws IOException Binds a running application. Failed binds must release all allocated resources. The options are already validated and immutable; the listener applies them for its lifetime.- Parameters:
application- running applicationaddress- address to bindoptions- limits and timeouts for this listener- Returns:
- owned listener
- Throws:
IOException- if binding fails
-