Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
java.net

Class Proxy


  • public class Proxy
    extends Object
    This class represents a proxy setting, typically a type (http, socks) and a socket address. A Proxy is an immutable object.
    Since:
    1.5
    See Also:
    ProxySelector
    • Field Detail

      • NO_PROXY

        public static final Proxy NO_PROXY
        A proxy setting that represents a DIRECT connection, basically telling the protocol handler not to use any proxying. Used, for instance, to create sockets bypassing any other global proxy settings (like SOCKS):

        Socket s = new Socket(Proxy.NO_PROXY);

    • Constructor Detail

      • Proxy

        public Proxy(Proxy.Type type,
             SocketAddress sa)
        Creates an entry representing a PROXY connection. Certain combinations are illegal. For instance, for types Http, and Socks, a SocketAddress must be provided.

        Use the Proxy.NO_PROXY constant for representing a direct connection.

        Parameters:
        type - the Type of the proxy
        sa - the SocketAddress for that proxy
        Throws:
        IllegalArgumentException - when the type and the address are incompatible
    • Method Detail

      • type

        public Proxy.Type type()
        Returns the proxy type.
        Returns:
        a Type representing the proxy type
      • address

        public SocketAddress address()
        Returns the socket address of the proxy, or null if its a direct connection.
        Returns:
        a SocketAddress representing the socket end point of the proxy
      • toString

        public String toString()
        Constructs a string representation of this Proxy. This String is constructed by calling toString() on its type and concatenating " @ " and the toString() result from its address if its type is not DIRECT.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this object.
      • equals

        public final boolean equals(Object obj)
        Compares this object against the specified object. The result is true if and only if the argument is not null and it represents the same proxy as this object.

        Two instances of Proxy represent the same address if both the SocketAddresses and type are equal.

        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare against.
        Returns:
        true if the objects are the same; false otherwise.
        See Also:
        InetSocketAddress.equals(java.lang.Object)

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/net/proxy.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut