FileDocCategorySizeDatePackage
MockHttpURLConnection.javaAPI DocAndroid 5.1 API1906Thu Mar 12 22:22:56 GMT 2015com.android.volley.mock

MockHttpURLConnection

public class MockHttpURLConnection extends HttpURLConnection

Fields Summary
private boolean
mDoOutput
private String
mRequestMethod
private OutputStream
mOutputStream
Constructors Summary
public MockHttpURLConnection()

        super(new URL("http://foo.com"));
        mDoOutput = false;
        mRequestMethod = "GET";
        mOutputStream = new ByteArrayOutputStream();
    
Methods Summary
public voidconnect()

    
public voiddisconnect()

    
public booleangetDoOutput()

        return mDoOutput;
    
public java.io.OutputStreamgetOutputStream()

        return mOutputStream;
    
public java.lang.StringgetRequestMethod()

        return mRequestMethod;
    
public voidsetDoOutput(boolean flag)

        mDoOutput = flag;
    
public voidsetRequestMethod(java.lang.String method)

        mRequestMethod = method;
    
public booleanusingProxy()

        return false;