Code example for URLConnection

Methods: setRequestProperty

0
 
public class Handler extends org.globus.net.protocol.httpg.Handler { 
     
    protected URLConnection openConnection(URL u) {
        URLConnection conn = super.openConnection(u);
        conn.setRequestProperty("gssMode", "ssl");
        return conn;
    } 
 
    protected int getDefaultPort() { 
	return 443; 
    } 
     
}