@@ -0,0 +1,807 @@
+import java.io.IOException;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0A%0Aimport javax.xml.ws.http.HTTPException;%0A%0Apublic class HttpRequest extends HttpURLConnection %7B%0A%0A    protected HttpRequest(URL u, int timeout) %7B%0A        super(u);%0A        setConnectTimeout(timeout);%0A    %7D%0A%0A    protected HttpRequest(URL u, int timeout, boolean doinput, boolean usecaches) %7B%0A        this(u, timeout);%0A        setDoInput(doinput);%0A        setUseCaches(usecaches);%0A    %7D%0A%0A    @Override%0A    public void disconnect() %7B%0A        throw new HTTPException(HTTP_BAD_GATEWAY);%0A    %7D%0A%0A    @Override%0A    public boolean usingProxy() %7B%0A        throw new HTTPException(HTTP_BAD_GATEWAY);%0A    %7D%0A%0A    @Override%0A    public void connect() throws IOException %7B%0A        if (super.connected) %7B%0A            return;%0A        %7D%0A    %7D%0A%7D%0A

Create HttpRequest.java