Skip to content

Commit

Permalink
Issue #7109 - Deprecate UnixSocket JNR support.
Browse files Browse the repository at this point in the history
Deprecated for removal classes and JPMS modules.

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet committed Nov 12, 2021
1 parent 6aedf4a commit d90922c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// ========================================================================
//

@Deprecated(forRemoval = true)
module org.eclipse.jetty.unixsocket.client
{
requires org.eclipse.jetty.unixsocket.common;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.nio.file.Path;
import java.util.Map;
import java.util.concurrent.Executor;

Expand All @@ -32,6 +33,7 @@
import org.eclipse.jetty.client.DuplexConnectionPool;
import org.eclipse.jetty.client.DuplexHttpDestination;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.HttpClientTransport;
import org.eclipse.jetty.client.HttpDestination;
import org.eclipse.jetty.client.HttpRequest;
import org.eclipse.jetty.client.Origin;
Expand All @@ -47,7 +49,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

// TODO: this class needs a thorough review.
/**
* @deprecated use any {@link HttpClientTransport} with {@link ClientConnector#forUnixDomain(Path)} instead (requires Java 16 or later)
*/
@Deprecated(forRemoval = true)
public class HttpClientTransportOverUnixSockets extends AbstractConnectorHttpClientTransport
{
private static final Logger LOG = LoggerFactory.getLogger(HttpClientTransportOverUnixSockets.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// ========================================================================
//

@Deprecated(forRemoval = true)
module org.eclipse.jetty.unixsocket.common
{
requires org.slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(forRemoval = true)
public class UnixSocketEndPoint extends SocketChannelEndPoint
{
private static final Logger LOG = LoggerFactory.getLogger(UnixSocketEndPoint.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// ========================================================================
//

@Deprecated(forRemoval = true)
module org.eclipse.jetty.unixsocket.server
{
requires org.slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@

/**
* <p>A server-side connector for UNIX sockets.</p>
*
* @deprecated Use UnixDomainServerConnector from the jetty-unixdomain-server module instead (requires Java 16 or later).
*/
@Deprecated(forRemoval = true)
@ManagedObject("Connector using UNIX Socket")
public class UnixSocketConnector extends AbstractConnector
{
Expand Down

0 comments on commit d90922c

Please sign in to comment.