Internal.java 3.12 KB
package com.squareup.okhttp.internal;

import com.squareup.okhttp.Call;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.Connection;
import com.squareup.okhttp.ConnectionPool;
import com.squareup.okhttp.ConnectionSpec;
import com.squareup.okhttp.Headers.Builder;
import com.squareup.okhttp.HttpUrl;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.internal.http.HttpEngine;
import com.squareup.okhttp.internal.http.RouteException;
import com.squareup.okhttp.internal.http.Transport;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.UnknownHostException;
import java.util.logging.Logger;
import javax.net.ssl.SSLSocket;
import okio.BufferedSink;
import okio.BufferedSource;

public abstract class Internal
{
  public static Internal instance;
  public static final Logger logger = Logger.getLogger(OkHttpClient.class.getName());
  
  public static void initializeInstanceForTests()
  {
    new OkHttpClient();
  }
  
  public abstract void addLenient(Headers.Builder paramBuilder, String paramString);
  
  public abstract void addLenient(Headers.Builder paramBuilder, String paramString1, String paramString2);
  
  public abstract void apply(ConnectionSpec paramConnectionSpec, SSLSocket paramSSLSocket, boolean paramBoolean);
  
  public abstract Connection callEngineGetConnection(Call paramCall);
  
  public abstract void callEngineReleaseConnection(Call paramCall)
    throws IOException;
  
  public abstract void callEnqueue(Call paramCall, Callback paramCallback, boolean paramBoolean);
  
  public abstract boolean clearOwner(Connection paramConnection);
  
  public abstract void closeIfOwnedBy(Connection paramConnection, Object paramObject)
    throws IOException;
  
  public abstract void connectAndSetOwner(OkHttpClient paramOkHttpClient, Connection paramConnection, HttpEngine paramHttpEngine)
    throws RouteException;
  
  public abstract BufferedSink connectionRawSink(Connection paramConnection);
  
  public abstract BufferedSource connectionRawSource(Connection paramConnection);
  
  public abstract void connectionSetOwner(Connection paramConnection, Object paramObject);
  
  public abstract HttpUrl getHttpUrlChecked(String paramString)
    throws MalformedURLException, UnknownHostException;
  
  public abstract InternalCache internalCache(OkHttpClient paramOkHttpClient);
  
  public abstract boolean isReadable(Connection paramConnection);
  
  public abstract Transport newTransport(Connection paramConnection, HttpEngine paramHttpEngine)
    throws IOException;
  
  public abstract void recycle(ConnectionPool paramConnectionPool, Connection paramConnection);
  
  public abstract int recycleCount(Connection paramConnection);
  
  public abstract RouteDatabase routeDatabase(OkHttpClient paramOkHttpClient);
  
  public abstract void setCache(OkHttpClient paramOkHttpClient, InternalCache paramInternalCache);
  
  public abstract void setOwner(Connection paramConnection, HttpEngine paramHttpEngine);
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/internal/Internal.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */