public Proxy setType ( String type ) { if ( this . type . equals ( type ) || ( type == null && this . type . length ( ) <= 0 ) ) { return this ; } return new Proxy ( type , host , port , auth ) ; }
Sets the type of the proxy .