Team LiB
Previous Section Next Section

Proxy.Typejava.net

Java 5.0serializable comparable enum

The constants of this enumerated type represent a type of proxy server. DIRECT indicates a direct, nonproxied connection. HTTP represents a proxy server that understands high-level protocols such as HTTP or FTP. And SOCKS represents a low-level SOCKS proxy server.

public enum Proxy.Type {
// Enumerated Constants
     DIRECT,  
     HTTP,  
     SOCKS;  
// Public Class Methods
     public static Proxy.Type valueOf(String name);  
     public static final Proxy.Type[ ] values( );  
}

Passed To

java.net.Proxy.Proxy( )

Returned By

java.net.Proxy.type( )

    Team LiB
    Previous Section Next Section