Adapter
| Modifier and Type | Method and Description |
|---|---|
| public void | addSslHostConfig(SSLHostConfig
the configuration sslHostConfig)Add a new SSL configuration for a virtual host. |
| public void | addSslHostConfig(SSLHostConfig
the configuration sslHostConfig, boolean If replace)true replacement of an existing configuration is permitted, otherwise any such
attempted replacement will trigger an exceptionAdd a new SSL configuration for a virtual host. |
| public void | addUpgradeProtocol(UpgradeProtocol
the protocol upgradeProtocol)Add a new protocol for used by HTTP/1.1 upgrade or ALPN. |
| public long | Returns: The wait time, if any remaining when the method returnedThe maximum time to wait in milliseconds for the client connections to close. waitMillis)Wait for the client connections to the server to close gracefully. |
| public void | closeServerSocketGraceful()
Close the server socket (to prevent further connections) if the server socket was bound on |
| public static ProtocolHandler | |
| public void | |
| public SSLHostConfig[] | Returns: the configurationsFind all configured SSL virtual host configurations which will be used by SNI. |
| public UpgradeProtocol[] | |
| public Adapter | |
| public default int | Returns: the desired buffer size, or -1 if not relevantSome protocols, like AJP, have a packet length that shouldn't be exceeded, and this can be used to adjust the buffering used by the application layer. |
| public Executor | Returns: The executor used to process requestsThe executor, provide access to the underlying thread pool. |
| public default String | Returns: the idThe default behavior is to identify connectors uniquely with address and port. |
| public ScheduledExecutorService | Returns: the executorGet the utility executor that should be used by the protocol handler. |
| public void | |
| public boolean | Returns: true if this Protocol Handler supports sendfile, otherwise falseDoes this ProtocolHandler support sendfile? |
| public void | |
| public void | |
| public void | |
| public void | setExecutor(Executor
the executor executor)Set the optional executor that will be used by the connector. |
| public void | setUtilityExecutor(ScheduledExecutorService
the executor utilityExecutor)Set the utility executor that should be used by the protocol handler. |
| public void | |
| public void |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig) Add a new SSL configuration for a virtual host.
| |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig, boolean replace) Add a new SSL configuration for a virtual host.
| |
| addUpgradeProtocol | back to summary |
|---|---|
| public void addUpgradeProtocol(UpgradeProtocol upgradeProtocol) Add a new protocol for used by HTTP/1.1 upgrade or ALPN.
| |
| awaitConnectionsClose | back to summary |
|---|---|
| public long awaitConnectionsClose(long waitMillis) Wait for the client connections to the server to close gracefully. The method will return when all of the client
connections have closed or the method has been waiting for
| |
| closeServerSocketGraceful | back to summary |
|---|---|
| public void closeServerSocketGraceful() Close the server socket (to prevent further connections) if the server socket was bound on | |
| create | back to summary |
|---|---|
| public static ProtocolHandler create(String protocol) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException Create a new ProtocolHandler for the given protocol.
| |
| destroy | back to summary |
|---|---|
| public void destroy() throws Exception Destroy the protocol (optional).
| |
| findSslHostConfigs | back to summary |
|---|---|
| public SSLHostConfig[] findSslHostConfigs() Find all configured SSL virtual host configurations which will be used by SNI.
| |
| findUpgradeProtocols | back to summary |
|---|---|
| public UpgradeProtocol[] findUpgradeProtocols() Return all configured upgrade protocols.
| |
| getAdapter | back to summary |
|---|---|
| public Adapter getAdapter() Return the adapter associated with the protocol handler.
| |
| getDesiredBufferSize | back to summary |
|---|---|
| public default int getDesiredBufferSize() Some protocols, like AJP, have a packet length that shouldn't be exceeded, and this can be used to adjust the buffering used by the application layer.
| |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor() The executor, provide access to the underlying thread pool.
| |
| getId | back to summary |
|---|---|
| public default String getId() The default behavior is to identify connectors uniquely with address and port. However, certain connectors are not using that and need some other identifier, which then can be used as a replacement.
| |
| getUtilityExecutor | back to summary |
|---|---|
| public ScheduledExecutorService getUtilityExecutor() Get the utility executor that should be used by the protocol handler.
| |
| init | back to summary |
|---|---|
| public void init() throws Exception Initialise the protocol.
| |
| isSendfileSupported | back to summary |
|---|---|
| public boolean isSendfileSupported() Does this ProtocolHandler support sendfile?
| |
| pause | back to summary |
|---|---|
| public void pause() throws Exception Pause the protocol (optional).
| |
| resume | back to summary |
|---|---|
| public void resume() throws Exception Resume the protocol (optional).
| |
| setAdapter | back to summary |
|---|---|
| public void setAdapter(Adapter adapter) The adapter, used to call the connector.
| |
| setExecutor | back to summary |
|---|---|
| public void setExecutor(Executor executor) Set the optional executor that will be used by the connector.
| |
| setUtilityExecutor | back to summary |
|---|---|
| public void setUtilityExecutor(ScheduledExecutorService utilityExecutor) Set the utility executor that should be used by the protocol handler.
| |
| start | back to summary |
|---|---|
| public void start() throws Exception Start the protocol.
| |
| stop | back to summary |
|---|---|
| public void stop() throws Exception Stop the protocol.
| |