META-INF/
META-INF/MANIFEST.MF
com/
com/squareup/
com/squareup/okhttp/
com/squareup/okhttp/AbstractResponseCache.class
AbstractResponseCache.java
package com.squareup.okhttp
public com.squareup.okhttp.AbstractResponseCache extends java.net.ResponseCache {
public void <init> ()
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection connection
public static java.net.URI toUri (java.net.URL)
java.net.URISyntaxException e
java.net.URL serverUrl
}
com/squareup/okhttp/AddressTest.class
AddressTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.AddressTest extends java.lang.Object {
private com.squareup.okhttp.Dns dns
private javax.net.SocketFactory socketFactory
private com.squareup.okhttp.Authenticator authenticator
private java.util.List protocols
private java.util.List connectionSpecs
private com.squareup.okhttp.internal.http.RecordingProxySelector proxySelector
public void <init> ()
public void equalsAndHashcode () throws java.lang.Exception
com.squareup.okhttp.Address a
com.squareup.okhttp.Address b
public void differentProxySelectorsAreDifferent () throws java.lang.Exception
com.squareup.okhttp.Address a
com.squareup.okhttp.Address b
}
com/squareup/okhttp/CacheControlTest.class
CacheControlTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.CacheControlTest extends java.lang.Object {
public void <init> ()
public void emptyBuilderIsEmpty () throws java.lang.Exception
com.squareup.okhttp.CacheControl cacheControl
public void completeBuilder () throws java.lang.Exception
com.squareup.okhttp.CacheControl cacheControl
public void parseEmpty () throws java.lang.Exception
com.squareup.okhttp.CacheControl cacheControl
public void parse () throws java.lang.Exception
String header
com.squareup.okhttp.CacheControl cacheControl
public void parseIgnoreCacheControlExtensions () throws java.lang.Exception
String header
com.squareup.okhttp.CacheControl cacheControl
public void parseCacheControlAndPragmaAreCombined ()
com.squareup.okhttp.Headers headers
com.squareup.okhttp.CacheControl cacheControl
public void parseCacheControlHeaderValueIsRetained ()
String value
com.squareup.okhttp.Headers headers
com.squareup.okhttp.CacheControl cacheControl
public void parseCacheControlHeaderValueInvalidatedByPragma ()
com.squareup.okhttp.Headers headers
com.squareup.okhttp.CacheControl cacheControl
public void parseCacheControlHeaderValueInvalidatedByTwoValues ()
com.squareup.okhttp.Headers headers
com.squareup.okhttp.CacheControl cacheControl
public void parsePragmaHeaderValueIsNotRetained ()
com.squareup.okhttp.Headers headers
com.squareup.okhttp.CacheControl cacheControl
public void computedHeaderValueIsCached ()
com.squareup.okhttp.CacheControl cacheControl
public void timeDurationTruncatedToMaxValue () throws java.lang.Exception
com.squareup.okhttp.CacheControl cacheControl
public void secondsMustBeNonNegative () throws java.lang.Exception
com.squareup.okhttp.CacheControl$Builder builder
public void timePrecisionIsTruncatedToSeconds () throws java.lang.Exception
com.squareup.okhttp.CacheControl cacheControl
}
com/squareup/okhttp/CacheTest$1.class
CacheTest.java
package com.squareup.okhttp
com.squareup.okhttp.CacheTest$1 extends java.lang.Object implements javax.net.ssl.HostnameVerifier {
void <init> ()
public boolean verify (java.lang.String, javax.net.ssl.SSLSession)
String s
javax.net.ssl.SSLSession sslSession
}
com/squareup/okhttp/CacheTest$2.class
CacheTest.java
package com.squareup.okhttp
com.squareup.okhttp.CacheTest$2 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic java.util.concurrent.atomic.AtomicReference val$ifNoneMatch
final synthetic com.squareup.okhttp.CacheTest this$0
void <init> (com.squareup.okhttp.CacheTest, java.util.concurrent.atomic.AtomicReference)
com.squareup.okhttp.CacheTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/CacheTest$3.class
CacheTest.java
package com.squareup.okhttp
com.squareup.okhttp.CacheTest$3 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.CacheTest this$0
void <init> (com.squareup.okhttp.CacheTest)
com.squareup.okhttp.CacheTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/CacheTest$TransferKind$1.class
CacheTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.CacheTest$TransferKind$1 extends com.squareup.okhttp.CacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/CacheTest$TransferKind$2.class
CacheTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.CacheTest$TransferKind$2 extends com.squareup.okhttp.CacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/CacheTest$TransferKind$3.class
CacheTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.CacheTest$TransferKind$3 extends com.squareup.okhttp.CacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/CacheTest$TransferKind.class
CacheTest.java
package com.squareup.okhttp
abstract enum com.squareup.okhttp.CacheTest$TransferKind extends java.lang.Enum {
public static final enum com.squareup.okhttp.CacheTest$TransferKind CHUNKED
public static final enum com.squareup.okhttp.CacheTest$TransferKind FIXED_LENGTH
public static final enum com.squareup.okhttp.CacheTest$TransferKind END_OF_STREAM
private static final synthetic com.squareup.okhttp.CacheTest$TransferKind[] $VALUES
public static com.squareup.okhttp.CacheTest$TransferKind[] values ()
public static com.squareup.okhttp.CacheTest$TransferKind valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
abstract void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
String content
int chunkSize
private static synthetic com.squareup.okhttp.CacheTest$TransferKind[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.CacheTest$1)
String x0
int x1
com.squareup.okhttp.CacheTest$1 x2
static void <clinit> ()
}
com/squareup/okhttp/CacheTest.class
CacheTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.CacheTest extends java.lang.Object {
private static final javax.net.ssl.HostnameVerifier NULL_HOSTNAME_VERIFIER
public com.squareup.okhttp.mockwebserver.MockWebServer server
public com.squareup.okhttp.mockwebserver.MockWebServer server2
public com.squareup.okhttp.internal.io.InMemoryFileSystem fileSystem
private final javax.net.ssl.SSLContext sslContext
private final com.squareup.okhttp.OkHttpClient client
private com.squareup.okhttp.Cache cache
private final java.net.CookieManager cookieManager
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void responseCachingByResponseCode () throws java.lang.Exception
private void assertCached (boolean, int) throws java.lang.Exception
boolean shouldPut
int responseCode
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.Response cached
public void responseCachingAndInputStreamSkipWithFixedLength () throws java.io.IOException
public void responseCachingAndInputStreamSkipWithChunkedEncoding () throws java.io.IOException
public void responseCachingAndInputStreamSkipWithNoLengthHeaders () throws java.io.IOException
private void testResponseCaching (com.squareup.okhttp.CacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.CacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
okio.BufferedSource in1
com.squareup.okhttp.Response response2
okio.BufferedSource in2
public void secureResponseCaching () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
okio.BufferedSource in
String suite
java.util.List localCerts
java.util.List serverCerts
java.security.Principal peerPrincipal
java.security.Principal localPrincipal
com.squareup.okhttp.Response response2
public void responseCachingAndRedirects () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void redirectToCachedResult () throws java.lang.Exception
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest2
com.squareup.okhttp.Request request3
com.squareup.okhttp.Response response3
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest3
public void secureResponseCachingAndRedirects () throws java.io.IOException
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void secureResponseCachingAndProtocolRedirects () throws java.io.IOException
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void foundCachedWithExpiresHeader () throws java.lang.Exception
public void foundCachedWithCacheControlHeader () throws java.lang.Exception
public void temporaryRedirectCachedWithExpiresHeader () throws java.lang.Exception
public void temporaryRedirectCachedWithCacheControlHeader () throws java.lang.Exception
public void foundNotCachedWithoutCacheHeader () throws java.lang.Exception
public void temporaryRedirectNotCachedWithoutCacheHeader () throws java.lang.Exception
private void temporaryRedirectCachedWithCachingHeader (int, java.lang.String, java.lang.String) throws java.lang.Exception
int responseCode
String headerName
String headerValue
com.squareup.okhttp.HttpUrl url
private void temporaryRedirectNotCachedWithoutCachingHeader (int) throws java.lang.Exception
int responseCode
com.squareup.okhttp.HttpUrl url
public void cachedRedirect () throws java.io.IOException
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void serverDisconnectsPrematurelyWithContentLengthHeader () throws java.io.IOException
public void serverDisconnectsPrematurelyWithChunkedEncoding () throws java.io.IOException
public void serverDisconnectsPrematurelyWithNoLengthHeaders () throws java.io.IOException
private void testServerPrematureDisconnect (com.squareup.okhttp.CacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.CacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
okio.BufferedSource bodySource
com.squareup.okhttp.Response response
public void clientPrematureDisconnectWithContentLengthHeader () throws java.io.IOException
public void clientPrematureDisconnectWithChunkedEncoding () throws java.io.IOException
public void clientPrematureDisconnectWithNoLengthHeaders () throws java.io.IOException
private void testClientPrematureDisconnect (com.squareup.okhttp.CacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.CacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
com.squareup.okhttp.Response response1
okio.BufferedSource in
com.squareup.okhttp.Response response2
public void defaultExpirationDateFullyCachedForLessThan24Hours () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void defaultExpirationDateConditionallyCached () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void defaultExpirationDateFullyCachedForMoreThan24Hours () throws java.lang.Exception
com.squareup.okhttp.Response response
public void noDefaultExpirationForUrlsWithQueryString () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void expirationDateInThePastWithLastModifiedHeader () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void expirationDateInThePastWithNoLastModifiedHeader () throws java.lang.Exception
public void expirationDateInTheFuture () throws java.lang.Exception
public void maxAgePreferredWithMaxAgeAndExpires () throws java.lang.Exception
public void maxAgeInThePastWithDateAndLastModifiedHeaders () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void maxAgeInThePastWithDateHeaderButNoLastModifiedHeader () throws java.lang.Exception
public void maxAgeInTheFutureWithDateHeader () throws java.lang.Exception
public void maxAgeInTheFutureWithNoDateHeader () throws java.lang.Exception
public void maxAgeWithLastModifiedButNoServedDate () throws java.lang.Exception
public void maxAgeInTheFutureWithDateAndLastModifiedHeaders () throws java.lang.Exception
public void maxAgePreferredOverLowerSharedMaxAge () throws java.lang.Exception
public void maxAgePreferredOverHigherMaxAge () throws java.lang.Exception
public void requestMethodOptionsIsNotCached () throws java.lang.Exception
public void requestMethodGetIsCached () throws java.lang.Exception
public void requestMethodHeadIsNotCached () throws java.lang.Exception
public void requestMethodPostIsNotCached () throws java.lang.Exception
public void requestMethodPutIsNotCached () throws java.lang.Exception
public void requestMethodDeleteIsNotCached () throws java.lang.Exception
public void requestMethodTraceIsNotCached () throws java.lang.Exception
private void testRequestMethod (java.lang.String, boolean) throws java.lang.Exception
String requestMethod
boolean expectCached
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
private com.squareup.okhttp.RequestBody requestBodyOrNull (java.lang.String)
String requestMethod
public void postInvalidatesCache () throws java.lang.Exception
public void putInvalidatesCache () throws java.lang.Exception
public void deleteMethodInvalidatesCache () throws java.lang.Exception
private void testMethodInvalidates (java.lang.String) throws java.lang.Exception
String requestMethod
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response invalidate
public void postInvalidatesCacheWithUncacheableResponse () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response invalidate
public void etag () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void etagAndExpirationDateInThePast () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void etagAndExpirationDateInTheFuture () throws java.lang.Exception
public void cacheControlNoCache () throws java.lang.Exception
public void cacheControlNoCacheAndExpirationDateInTheFuture () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void pragmaNoCache () throws java.lang.Exception
public void pragmaNoCacheAndExpirationDateInTheFuture () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void cacheControlNoStore () throws java.lang.Exception
public void cacheControlNoStoreAndExpirationDateInTheFuture () throws java.lang.Exception
public void partialRangeResponsesDoNotCorruptCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response range
public void serverReturnsDocumentOlderThanCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void clientSideNoStore () throws java.lang.Exception
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void nonIdentityEncodingAndConditionalCache () throws java.lang.Exception
public void nonIdentityEncodingAndFullCache () throws java.lang.Exception
private void assertNonIdentityEncodingCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
public void notModifiedSpecifiesEncoding () throws java.lang.Exception
public void gzipAndVaryOnAcceptEncoding () throws java.lang.Exception
public void conditionalCacheHitIsNotDoublePooled () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
public void expiresDateBeforeModifiedDate () throws java.lang.Exception
public void requestMaxAge () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestMinFresh () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestMaxStale () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestMaxStaleDirectiveWithNoValue () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestMaxStaleNotHonoredWithMustRevalidate () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestOnlyIfCachedWithNoResponseCached () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestOnlyIfCachedWithFullResponseCached () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestOnlyIfCachedWithConditionalResponseCached () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestOnlyIfCachedWithUnhelpfulResponseCached () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestCacheControlNoCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void requestPragmaNoCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void clientSuppliedIfModifiedSinceWithCachedResult () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
String ifModifiedSinceDate
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void clientSuppliedIfNoneMatchSinceWithCachedResult () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.mockwebserver.RecordedRequest request
private com.squareup.okhttp.mockwebserver.RecordedRequest assertClientSuppliedCondition (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, java.lang.String) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse seed
String conditionName
String conditionValue
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void retainServedDateFormat () throws java.lang.Exception
java.util.Date lastModifiedDate
java.util.Date servedDate
java.text.DateFormat dateFormat
String lastModifiedString
String servedString
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
public void clientSuppliedConditionWithoutCachedResult () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void authorizationRequestFullyCached () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void contentLocationDoesNotPopulateCache () throws java.lang.Exception
public void connectionIsReturnedToPoolAfterConditionalSuccess () throws java.lang.Exception
public void statisticsConditionalCacheMiss () throws java.lang.Exception
public void statisticsConditionalCacheHit () throws java.lang.Exception
public void statisticsFullCacheHit () throws java.lang.Exception
public void varyMatchesChangedRequestHeaderField () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request frRequest
com.squareup.okhttp.Response frResponse
com.squareup.okhttp.Request enRequest
com.squareup.okhttp.Response enResponse
public void varyMatchesUnchangedRequestHeaderField () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response2
public void varyMatchesAbsentRequestHeaderField () throws java.lang.Exception
public void varyMatchesAddedRequestHeaderField () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void varyMatchesRemovedRequestHeaderField () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response fooresponse
public void varyFieldsAreCaseInsensitive () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response2
public void varyMultipleFieldsWithMatch () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response2
public void varyMultipleFieldsWithNoMatch () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request frRequest
com.squareup.okhttp.Response frResponse
com.squareup.okhttp.Request enRequest
com.squareup.okhttp.Response enResponse
public void varyMultipleFieldValuesWithMatch () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void varyMultipleFieldValuesWithNoMatch () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void varyAsterisk () throws java.lang.Exception
public void varyAndHttps () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void cachePlusCookies () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void getHeadersReturnsNetworkEndToEndHeaders () throws java.lang.Exception
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void getHeadersReturnsCachedHopByHopHeaders () throws java.lang.Exception
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void getHeadersDeletesCached100LevelWarnings () throws java.lang.Exception
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void getHeadersRetainsCached200LevelWarnings () throws java.lang.Exception
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public transient void assertCookies (com.squareup.okhttp.HttpUrl, java.lang.String[]) throws java.lang.Exception
java.net.HttpCookie cookie
com.squareup.okhttp.HttpUrl url
String[] expectedCookies
java.util.List actualCookies
public void doNotCachePartialResponse () throws java.lang.Exception
public void conditionalHitUpdatesCache () throws java.lang.Exception
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
com.squareup.okhttp.Response response3
public void responseSourceHeaderCached () throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void responseSourceHeaderConditionalCacheFetched () throws java.io.IOException
com.squareup.okhttp.Response response
public void responseSourceHeaderConditionalCacheNotFetched () throws java.io.IOException
com.squareup.okhttp.Response response
public void responseSourceHeaderFetched () throws java.io.IOException
com.squareup.okhttp.Response response
public void emptyResponseHeaderNameFromCacheIsLenient () throws java.lang.Exception
com.squareup.okhttp.Headers$Builder headers
com.squareup.okhttp.Response response
public void testGoldenCacheResponse () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
String urlKey
String entryMetadata
String entryBody
String journalBody
com.squareup.okhttp.Response response
public void evictAll () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void networkInterceptorInvokedForConditionalGet () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
java.util.concurrent.atomic.AtomicReference ifNoneMatch
public void networkInterceptorNotInvokedForFullyCached () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void iterateCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl urlA
com.squareup.okhttp.HttpUrl urlB
com.squareup.okhttp.HttpUrl urlC
java.util.Iterator i
public void iteratorRemoveFromCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
java.util.Iterator i
public void iteratorRemoveWithoutNextThrows () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
java.util.Iterator i
public void iteratorRemoveOncePerCallToNext () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
java.util.Iterator i
public void elementEvictedBetweenHasNextAndNext () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
java.util.Iterator i
public void elementEvictedBeforeHasNextIsOmitted () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
java.util.Iterator i
public void conditionalMissUpdatesCache () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
private com.squareup.okhttp.Response get (com.squareup.okhttp.HttpUrl) throws java.io.IOException
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
private void writeFile (java.io.File, java.lang.String, java.lang.String) throws java.io.IOException
java.io.File directory
String file
String content
okio.BufferedSink sink
private java.lang.String formatDate (long, java.util.concurrent.TimeUnit)
long delta
java.util.concurrent.TimeUnit timeUnit
private java.lang.String formatDate (java.util.Date)
java.util.Date date
java.text.DateFormat rfc1123
private void assertNotCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.HttpUrl url
private com.squareup.okhttp.mockwebserver.RecordedRequest assertConditionallyCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.HttpUrl valid
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
com.squareup.okhttp.HttpUrl invalid
com.squareup.okhttp.Response response3
com.squareup.okhttp.Response response4
private void assertFullyCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.HttpUrl url
private com.squareup.okhttp.mockwebserver.MockResponse truncateViolently (com.squareup.okhttp.mockwebserver.MockResponse, int)
com.squareup.okhttp.mockwebserver.MockResponse response
int numBytesToKeep
com.squareup.okhttp.Headers headers
okio.Buffer truncatedBody
public okio.Buffer gzip (java.lang.String) throws java.io.IOException
String data
okio.Buffer result
okio.BufferedSink sink
static void <clinit> ()
}
com/squareup/okhttp/CallTest$1.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$1 extends java.lang.Object implements com.squareup.okhttp.Callback {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public void onFailure (com.squareup.okhttp.Request, java.io.IOException)
com.squareup.okhttp.Request request
java.io.IOException e
public void onResponse (com.squareup.okhttp.Response) throws java.io.IOException
com.squareup.okhttp.Response response
}
com/squareup/okhttp/CallTest$10.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$10 extends java.lang.Object implements com.squareup.okhttp.Callback {
final synthetic java.util.concurrent.atomic.AtomicBoolean val$failureRef
final synthetic java.util.concurrent.CountDownLatch val$latch
final synthetic com.squareup.okhttp.Call val$call
final synthetic java.util.concurrent.atomic.AtomicReference val$bodyRef
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest, java.util.concurrent.atomic.AtomicBoolean, java.util.concurrent.CountDownLatch, com.squareup.okhttp.Call, java.util.concurrent.atomic.AtomicReference)
com.squareup.okhttp.CallTest this$0
public void onFailure (com.squareup.okhttp.Request, java.io.IOException)
com.squareup.okhttp.Request request
java.io.IOException e
public void onResponse (com.squareup.okhttp.Response) throws java.io.IOException
java.io.IOException e
com.squareup.okhttp.Response response
}
com/squareup/okhttp/CallTest$11.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$11 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/CallTest$12.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$12 extends java.lang.Object implements com.squareup.okhttp.Callback {
final synthetic java.util.concurrent.BlockingQueue val$responseRef
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest, java.util.concurrent.BlockingQueue)
com.squareup.okhttp.CallTest this$0
public void onFailure (com.squareup.okhttp.Request, java.io.IOException)
com.squareup.okhttp.Request request
java.io.IOException e
public void onResponse (com.squareup.okhttp.Response) throws java.io.IOException
InterruptedException e
com.squareup.okhttp.Response response
}
com/squareup/okhttp/CallTest$13.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$13 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/CallTest$14.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$14 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.MediaType contentType ()
public long contentLength () throws java.io.IOException
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/CallTest$15.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$15 extends java.lang.Thread {
final synthetic long val$delay
final synthetic com.squareup.okhttp.Call val$call
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest, java.lang.String, long, com.squareup.okhttp.Call)
com.squareup.okhttp.CallTest this$0
String arg0
public void run ()
InterruptedException e
}
com/squareup/okhttp/CallTest$2.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$2 extends java.lang.Object implements com.squareup.okhttp.Callback {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public void onFailure (com.squareup.okhttp.Request, java.io.IOException)
com.squareup.okhttp.Request request
java.io.IOException e
public void onResponse (com.squareup.okhttp.Response) throws java.io.IOException
com.squareup.okhttp.Response response
java.io.InputStream bytes
}
com/squareup/okhttp/CallTest$3.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$3 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/CallTest$4.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$4 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/CallTest$5.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$5 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/CallTest$6.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$6 extends java.lang.Object implements java.util.concurrent.Callable {
final synthetic com.squareup.okhttp.Call val$call
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest, com.squareup.okhttp.Call)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.Response call () throws java.lang.Exception
public volatile synthetic java.lang.Object call () throws java.lang.Exception
}
com/squareup/okhttp/CallTest$7.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$7 extends com.squareup.okhttp.mockwebserver.Dispatcher {
final synthetic java.util.concurrent.CountDownLatch val$cancelSignal
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest, java.util.concurrent.CountDownLatch)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest)
com.squareup.okhttp.mockwebserver.RecordedRequest request
}
com/squareup/okhttp/CallTest$8.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$8 extends com.squareup.okhttp.mockwebserver.Dispatcher {
char nextResponse
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest)
com.squareup.okhttp.mockwebserver.RecordedRequest request
}
com/squareup/okhttp/CallTest$9.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$9 extends com.squareup.okhttp.mockwebserver.Dispatcher {
final synthetic com.squareup.okhttp.Call val$call
final synthetic com.squareup.okhttp.CallTest this$0
void <init> (com.squareup.okhttp.CallTest, com.squareup.okhttp.Call)
com.squareup.okhttp.CallTest this$0
public com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest)
com.squareup.okhttp.mockwebserver.RecordedRequest request
}
com/squareup/okhttp/CallTest$RecordingSSLSocketFactory.class
CallTest.java
package com.squareup.okhttp
com.squareup.okhttp.CallTest$RecordingSSLSocketFactory extends com.squareup.okhttp.DelegatingSSLSocketFactory {
private java.util.List socketsCreated
public void <init> (javax.net.ssl.SSLSocketFactory)
javax.net.ssl.SSLSocketFactory delegate
protected javax.net.ssl.SSLSocket configureSocket (javax.net.ssl.SSLSocket) throws java.io.IOException
javax.net.ssl.SSLSocket sslSocket
public java.util.List getSocketsCreated ()
}
com/squareup/okhttp/CallTest.class
CallTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.CallTest extends java.lang.Object {
public final org.junit.rules.TestRule timeout
public final com.squareup.okhttp.mockwebserver.MockWebServer server
public final com.squareup.okhttp.mockwebserver.MockWebServer server2
public final com.squareup.okhttp.internal.io.InMemoryFileSystem fileSystem
private static final com.squareup.okhttp.ConnectionSpec TLS_SPEC_1_3
private static final com.squareup.okhttp.ConnectionSpec TLS_SPEC_1_2
private static final java.util.List TLS_SPEC_NO_V1
private javax.net.ssl.SSLContext sslContext
private com.squareup.okhttp.OkHttpClient client
private com.squareup.okhttp.RecordingCallback callback
private com.squareup.okhttp.TestLogHandler logHandler
private com.squareup.okhttp.Cache cache
private java.net.ServerSocket nullServer
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void get () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void buildRequestUsingHttpUrl () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
com.squareup.okhttp.Request request
public void invalidScheme () throws java.lang.Exception
IllegalArgumentException expected
com.squareup.okhttp.Request$Builder requestBuilder
public void invalidPort () throws java.lang.Exception
IllegalArgumentException expected
com.squareup.okhttp.Request$Builder requestBuilder
public void getReturns500 () throws java.lang.Exception
com.squareup.okhttp.Request request
public void get_HTTP_2 () throws java.lang.Exception
public void get_HTTPS () throws java.lang.Exception
public void get_SPDY_3 () throws java.lang.Exception
public void repeatedHeaderNames () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void repeatedHeaderNames_SPDY_3 () throws java.lang.Exception
public void repeatedHeaderNames_HTTP_2 () throws java.lang.Exception
public void getWithRequestBody () throws java.lang.Exception
public void head () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void head_HTTPS () throws java.lang.Exception
public void head_HTTP_2 () throws java.lang.Exception
public void head_SPDY_3 () throws java.lang.Exception
public void post () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void post_HTTPS () throws java.lang.Exception
public void post_HTTP_2 () throws java.lang.Exception
public void post_SPDY_3 () throws java.lang.Exception
public void postZeroLength () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void postZerolength_HTTPS () throws java.lang.Exception
public void postZerolength_HTTP_2 () throws java.lang.Exception
public void postZeroLength_SPDY_3 () throws java.lang.Exception
public void postBodyRetransmittedAfterAuthorizationFail () throws java.lang.Exception
public void postBodyRetransmittedAfterAuthorizationFail_HTTPS () throws java.lang.Exception
public void postBodyRetransmittedAfterAuthorizationFail_HTTP_2 () throws java.lang.Exception
public void postBodyRetransmittedAfterAuthorizationFail_SPDY_3 () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail_HTTPS () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail_HTTP_2 () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail_SPDY_3 () throws java.lang.Exception
private void postBodyRetransmittedAfterAuthorizationFail (java.lang.String) throws java.lang.Exception
String body
com.squareup.okhttp.Request request
String credential
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest1
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest2
public void attemptAuthorization20Times () throws java.lang.Exception
int i
String credential
com.squareup.okhttp.Request request
public void doesNotAttemptAuthorization21Times () throws java.lang.Exception
int i
java.io.IOException expected
String credential
public void delete () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void delete_HTTPS () throws java.lang.Exception
public void delete_HTTP_2 () throws java.lang.Exception
public void delete_SPDY_3 () throws java.lang.Exception
public void deleteWithRequestBody () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void put () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void put_HTTPS () throws java.lang.Exception
public void put_HTTP_2 () throws java.lang.Exception
public void put_SPDY_3 () throws java.lang.Exception
public void patch () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void patch_HTTP_2 () throws java.lang.Exception
public void patch_HTTPS () throws java.lang.Exception
public void patch_SPDY_3 () throws java.lang.Exception
public void unspecifiedRequestBodyContentTypeDoesNotGetDefault () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void illegalToExecuteTwice () throws java.lang.Exception
IllegalStateException e
IllegalStateException e
com.squareup.okhttp.Request request
com.squareup.okhttp.Call call
com.squareup.okhttp.Response response
public void illegalToExecuteTwice_Async () throws java.lang.Exception
IllegalStateException e
IllegalStateException e
com.squareup.okhttp.Request request
com.squareup.okhttp.Call call
public void get_Async () throws java.lang.Exception
com.squareup.okhttp.Request request
public void exceptionThrownByOnResponseIsRedactedAndLogged () throws java.lang.Exception
com.squareup.okhttp.Request request
public void connectionPooling () throws java.lang.Exception
public void connectionPooling_Async () throws java.lang.Exception
public void connectionReuseWhenResponseBodyConsumed_Async () throws java.lang.Exception
com.squareup.okhttp.Request request
public void timeoutsUpdatedOnReusedConnections () throws java.lang.Exception
long elapsedNanos
long elapsedMillis
java.io.IOException expected
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
okio.BufferedSource bodySource
long startNanos
public void timeoutsNotRetried () throws java.lang.Exception
com.squareup.okhttp.Request request
public void asyncCallEngineInitialized () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient c
com.squareup.okhttp.Request request
com.squareup.okhttp.RecordedResponse response
public void reusedSinksGetIndependentTimeoutInstances () throws java.lang.Exception
com.squareup.okhttp.RequestBody requestBody1
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.RequestBody requestBody2
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void reusedSourcesGetIndependentTimeoutInstances () throws java.lang.Exception
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
okio.BufferedSource body1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
okio.BufferedSource body2
public void tls () throws java.lang.Exception
public void tls_Async () throws java.lang.Exception
com.squareup.okhttp.Request request
public void recoverWhenRetryOnConnectionFailureIsTrue () throws java.lang.Exception
com.squareup.okhttp.Request request
public void noRecoverWhenRetryOnConnectionFailureIsFalse () throws java.lang.Exception
com.squareup.okhttp.Request request
public void recoverFromTlsHandshakeFailure () throws java.lang.Exception
public void recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled () throws java.lang.Exception
String tlsFallbackScsv
java.util.List supportedCiphers
com.squareup.okhttp.CallTest$RecordingSSLSocketFactory clientSocketFactory
com.squareup.okhttp.Request request
java.util.List clientSockets
javax.net.ssl.SSLSocket firstSocket
javax.net.ssl.SSLSocket secondSocket
public void recoverFromTlsHandshakeFailure_Async () throws java.lang.Exception
com.squareup.okhttp.Request request
public void noRecoveryFromTlsHandshakeFailureWhenTlsFallbackIsDisabled () throws java.lang.Exception
com.squareup.okhttp.Request request
public void cleartextCallsFailWhenCleartextIsDisabled () throws java.lang.Exception
java.net.UnknownServiceException expected
com.squareup.okhttp.Request request
public void setFollowSslRedirectsFalse () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void matchingPinnedCertificate () throws java.lang.Exception
java.security.cert.Certificate certificate
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.CertificatePinner$Builder certificatePinnerBuilder
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void unmatchingPinnedCertificate () throws java.lang.Exception
javax.net.ssl.SSLPeerUnverifiedException expected
com.squareup.okhttp.Request request
public void post_Async () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void postBodyRetransmittedOnFailureRecovery () throws java.lang.Exception
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
com.squareup.okhttp.mockwebserver.RecordedRequest get
com.squareup.okhttp.mockwebserver.RecordedRequest post1
com.squareup.okhttp.mockwebserver.RecordedRequest post2
public void cacheHit () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request cacheStoreRequest
com.squareup.okhttp.Request cacheHitRequest
com.squareup.okhttp.RecordedResponse cacheHit
public void conditionalCacheHit () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request cacheStoreRequest
com.squareup.okhttp.Request cacheHitRequest
com.squareup.okhttp.RecordedResponse cacheHit
public void conditionalCacheHit_Async () throws java.lang.Exception
com.squareup.okhttp.Request request1
com.squareup.okhttp.Request request2
public void conditionalCacheMiss () throws java.lang.Exception
com.squareup.okhttp.Request cacheStoreRequest
com.squareup.okhttp.Request cacheMissRequest
com.squareup.okhttp.RecordedResponse cacheHit
public void conditionalCacheMiss_Async () throws java.lang.Exception
com.squareup.okhttp.Request request1
com.squareup.okhttp.Request request2
public void onlyIfCachedReturns504WhenNotCached () throws java.lang.Exception
com.squareup.okhttp.Request request
public void redirect () throws java.lang.Exception
public void postRedirectsToGet () throws java.lang.Exception
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest page1
com.squareup.okhttp.mockwebserver.RecordedRequest page2
public void propfindRedirectsToPropfind () throws java.lang.Exception
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest page1
com.squareup.okhttp.mockwebserver.RecordedRequest page2
public void redirectsDoNotIncludeTooManyCookies () throws java.lang.Exception
java.net.CookieManager cookieManager
java.net.HttpCookie cookie
String portList
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
public void redirectsDoNotIncludeTooManyAuthHeaders () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest redirectRequest
public void redirect_Async () throws java.lang.Exception
com.squareup.okhttp.Request request
public void follow20Redirects () throws java.lang.Exception
int i
public void follow20Redirects_Async () throws java.lang.Exception
int i
com.squareup.okhttp.Request request
public void doesNotFollow21Redirects () throws java.lang.Exception
int i
java.io.IOException expected
public void doesNotFollow21Redirects_Async () throws java.lang.Exception
int i
com.squareup.okhttp.Request request
public void http204WithBodyDisallowed () throws java.io.IOException
java.net.ProtocolException e
public void http205WithBodyDisallowed () throws java.io.IOException
java.net.ProtocolException e
public void canceledBeforeExecute () throws java.lang.Exception
com.squareup.okhttp.Call call
public void cancelDuringHttpConnect () throws java.lang.Exception
public void cancelDuringHttpsConnect () throws java.lang.Exception
private void cancelDuringConnect (java.lang.String) throws java.lang.Exception
String scheme
java.net.InetSocketAddress socketAddress
com.squareup.okhttp.HttpUrl url
long cancelDelayMillis
com.squareup.okhttp.Call call
long startNanos
long elapsedNanos
private java.net.InetSocketAddress startNullServer () throws java.io.IOException
java.net.InetSocketAddress address
public void cancelTagImmediatelyAfterEnqueue () throws java.lang.Exception
com.squareup.okhttp.Call call
public void cancelBeforeBodyIsRead () throws java.lang.Exception
com.squareup.okhttp.Call call
java.util.concurrent.ExecutorService executor
java.util.concurrent.Future result
public void cancelInFlightBeforeResponseReadThrowsIOE () throws java.lang.Exception
java.io.IOException expected
java.util.concurrent.CountDownLatch cancelSignal
com.squareup.okhttp.Request request
public void cancelInFlightBeforeResponseReadThrowsIOE_HTTPS () throws java.lang.Exception
public void cancelInFlightBeforeResponseReadThrowsIOE_HTTP_2 () throws java.lang.Exception
public void cancelInFlightBeforeResponseReadThrowsIOE_SPDY_3 () throws java.lang.Exception
public void canceledBeforeIOSignalsOnFailure () throws java.lang.Exception
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Request requestB
public void canceledBeforeIOSignalsOnFailure_HTTPS () throws java.lang.Exception
public void canceledBeforeIOSignalsOnFailure_HTTP_2 () throws java.lang.Exception
public void canceledBeforeIOSignalsOnFailure_SPDY_3 () throws java.lang.Exception
public void canceledBeforeResponseReadSignalsOnFailure () throws java.lang.Exception
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Call call
public void canceledBeforeResponseReadSignalsOnFailure_HTTPS () throws java.lang.Exception
public void canceledBeforeResponseReadSignalsOnFailure_HTTP_2 () throws java.lang.Exception
public void canceledBeforeResponseReadSignalsOnFailure_SPDY_3 () throws java.lang.Exception
public void canceledAfterResponseIsDeliveredBreaksStreamButSignalsOnce () throws java.lang.Exception
java.util.concurrent.CountDownLatch latch
java.util.concurrent.atomic.AtomicReference bodyRef
java.util.concurrent.atomic.AtomicBoolean failureRef
com.squareup.okhttp.Request request
com.squareup.okhttp.Call call
public void canceledAfterResponseIsDeliveredBreaksStreamButSignalsOnce_HTTPS () throws java.lang.Exception
public void canceledAfterResponseIsDeliveredBreaksStreamButSignalsOnce_HTTP_2 () throws java.lang.Exception
public void canceledAfterResponseIsDeliveredBreaksStreamButSignalsOnce_SPDY_3 () throws java.lang.Exception
public void cancelWithInterceptor () throws java.lang.Exception
com.squareup.okhttp.Call call
public void gzip () throws java.lang.Exception
okio.Buffer gzippedBody
String bodySize
com.squareup.okhttp.Request request
com.squareup.okhttp.RecordedResponse userResponse
public void gzipResponseAfterAuthenticationChallenge () throws java.lang.Exception
com.squareup.okhttp.Request request
public void asyncResponseCanBeConsumedLater () throws java.lang.Exception
com.squareup.okhttp.Request request
java.util.concurrent.BlockingQueue responseRef
com.squareup.okhttp.Response response
public void userAgentIsIncludedByDefault () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void setFollowRedirectsFalse () throws java.lang.Exception
com.squareup.okhttp.RecordedResponse recordedResponse
public void expect100ContinueNonEmptyRequestBody () throws java.lang.Exception
com.squareup.okhttp.Request request
public void expect100ContinueEmptyRequestBody () throws java.lang.Exception
com.squareup.okhttp.Request request
public void responseHeaderParsingIsLenient () throws java.lang.Exception
com.squareup.okhttp.Headers headers
com.squareup.okhttp.Request request
public void customDns () throws java.lang.Exception
com.squareup.okhttp.internal.http.FakeDns dns
com.squareup.okhttp.Request request
public void failingCallsDoNotInterfereWithConnection () throws java.lang.Exception
com.squareup.okhttp.RequestBody requestBody
com.squareup.okhttp.Call call
public void proxyConnectOmitsApplicationHeaders () throws java.lang.Exception
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest connect
com.squareup.okhttp.mockwebserver.RecordedRequest get
public void proxyAuthenticateOnConnect () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest connect1
com.squareup.okhttp.mockwebserver.RecordedRequest connect2
com.squareup.okhttp.mockwebserver.RecordedRequest get
public void noProactiveProxyAuthorization () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest connect
com.squareup.okhttp.mockwebserver.RecordedRequest get
public void ipv6HostHasSquareBraces () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest connect
com.squareup.okhttp.mockwebserver.RecordedRequest get
private void makeFailingCall ()
java.io.IOException expected
com.squareup.okhttp.RequestBody requestBody
com.squareup.okhttp.Call call
private com.squareup.okhttp.RecordedResponse executeSynchronously (com.squareup.okhttp.Request) throws java.io.IOException
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
private void enableProtocol (com.squareup.okhttp.Protocol)
com.squareup.okhttp.Protocol protocol
private void enableTls ()
private okio.Buffer gzip (java.lang.String) throws java.io.IOException
String data
okio.Buffer result
okio.BufferedSink sink
private void cancelLater (com.squareup.okhttp.Call, long)
com.squareup.okhttp.Call call
long delay
private void suppressTlsFallbackScsv (com.squareup.okhttp.OkHttpClient)
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.FallbackTestClientSocketFactory clientSocketFactory
static synthetic com.squareup.okhttp.RecordingCallback access$000 (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest x0
static synthetic com.squareup.okhttp.OkHttpClient access$100 (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest x0
static synthetic void access$200 (com.squareup.okhttp.CallTest)
com.squareup.okhttp.CallTest x0
static void <clinit> ()
}
com/squareup/okhttp/CertificatePinnerTest.class
CertificatePinnerTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.CertificatePinnerTest extends java.lang.Object {
static com.squareup.okhttp.internal.HeldCertificate certA1
static String certA1Pin
static okio.ByteString certA1PinBase64
static com.squareup.okhttp.internal.HeldCertificate certB1
static String certB1Pin
static okio.ByteString certB1PinBase64
static com.squareup.okhttp.internal.HeldCertificate certC1
static String certC1Pin
public void <init> ()
static okio.ByteString pinToBase64 (java.lang.String)
String pin
public void malformedPin () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner$Builder builder
public void malformedBase64 () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner$Builder builder
public void sameKeypairSamePin () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate heldCertificateA2
String keypairACertificate2Pin
com.squareup.okhttp.internal.HeldCertificate heldCertificateB2
String keypairBCertificate2Pin
public void successfulCheck () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void successfulMatchAcceptsAnyMatchingCertificate () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void unsuccessfulCheck () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void multipleCertificatesForOneHostname () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void multipleHostnamesForOneCertificate () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void absentHostnameMatches () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void successfulCheckForWildcardHostname () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void successfulMatchAcceptsAnyMatchingCertificateForWildcardHostname () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void unsuccessfulCheckForWildcardHostname () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void multipleCertificatesForOneWildcardHostname () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void successfulCheckForOneHostnameWithWildcardAndDirectCertificate () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void unsuccessfulCheckForOneHostnameWithWildcardAndDirectCertificate () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
public void successfulFindMatchingPins ()
com.squareup.okhttp.CertificatePinner certificatePinner
java.util.Set expectedPins
java.util.Set matchedPins
public void successfulFindMatchingPinsForWildcardAndDirectCertificates ()
com.squareup.okhttp.CertificatePinner certificatePinner
java.util.Set expectedPins
java.util.Set matchedPins
public void wildcardHostnameShouldNotMatchThroughDot () throws java.lang.Exception
com.squareup.okhttp.CertificatePinner certificatePinner
static void <clinit> ()
java.security.GeneralSecurityException e
}
com/squareup/okhttp/ConnectionPoolTest$1.class
ConnectionPoolTest.java
package com.squareup.okhttp
com.squareup.okhttp.ConnectionPoolTest$1 extends java.lang.Object implements java.lang.Runnable {
final synthetic com.squareup.okhttp.ConnectionPoolTest this$0
void <init> (com.squareup.okhttp.ConnectionPoolTest)
com.squareup.okhttp.ConnectionPoolTest this$0
public void run ()
}
com/squareup/okhttp/ConnectionPoolTest.class
ConnectionPoolTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.ConnectionPoolTest extends java.lang.Object {
private final Runnable emptyRunnable
private final com.squareup.okhttp.Address addressA
private final com.squareup.okhttp.Route routeA1
private final com.squareup.okhttp.Address addressB
private final com.squareup.okhttp.Route routeB1
private final com.squareup.okhttp.Address addressC
private final com.squareup.okhttp.Route routeC1
public void <init> ()
public void connectionsEvictedWhenIdleLongEnough () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.internal.io.RealConnection c1
public void inUseConnectionsNotEvicted () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.internal.io.RealConnection c1
com.squareup.okhttp.internal.http.StreamAllocation streamAllocation
public void cleanupPrioritizesEarliestEviction () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.internal.io.RealConnection c1
com.squareup.okhttp.internal.io.RealConnection c2
public void oldestConnectionsEvictedIfIdleLimitExceeded () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.internal.io.RealConnection c1
com.squareup.okhttp.internal.io.RealConnection c2
com.squareup.okhttp.internal.io.RealConnection c3
public void leakedAllocation () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.internal.io.RealConnection c1
private void allocateAndLeakAllocation (com.squareup.okhttp.ConnectionPool, com.squareup.okhttp.internal.io.RealConnection)
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.internal.io.RealConnection connection
com.squareup.okhttp.internal.http.StreamAllocation leak
private void awaitGarbageCollection () throws java.lang.InterruptedException
private com.squareup.okhttp.internal.io.RealConnection newConnection (com.squareup.okhttp.ConnectionPool, com.squareup.okhttp.Route, long)
com.squareup.okhttp.ConnectionPool pool
com.squareup.okhttp.Route route
long idleAtNanos
com.squareup.okhttp.internal.io.RealConnection connection
private com.squareup.okhttp.Address newAddress (java.lang.String)
String name
private com.squareup.okhttp.Route newRoute (com.squareup.okhttp.Address)
com.squareup.okhttp.Address address
}
com/squareup/okhttp/ConnectionReuseTest.class
ConnectionReuseTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.ConnectionReuseTest extends java.lang.Object {
public final org.junit.rules.TestRule timeout
public final com.squareup.okhttp.mockwebserver.MockWebServer server
private javax.net.ssl.SSLContext sslContext
private com.squareup.okhttp.OkHttpClient client
public void <init> ()
public void connectionsAreReused () throws java.lang.Exception
com.squareup.okhttp.Request request
public void connectionsAreReusedWithHttp2 () throws java.lang.Exception
com.squareup.okhttp.Request request
public void connectionsAreNotReusedWithRequestConnectionClose () throws java.lang.Exception
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Request requestB
public void connectionsAreNotReusedWithResponseConnectionClose () throws java.lang.Exception
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Request requestB
public void connectionsAreNotReusedWithUnknownLengthResponseBody () throws java.lang.Exception
com.squareup.okhttp.Request request
public void connectionsAreNotReusedIfPoolIsSizeZero () throws java.lang.Exception
com.squareup.okhttp.Request request
public void connectionsReusedWithRedirectEvenIfPoolIsSizeZero () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void silentRetryWhenIdempotentRequestFailsOnReusedConnection () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response responseA
com.squareup.okhttp.Response responseB
public void staleConnectionNotReusedForNonIdempotentRequest () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.SocketShutdownListener shutdownListener
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Response responseA
com.squareup.okhttp.Request requestB
com.squareup.okhttp.Response responseB
public void http2ConnectionsAreSharedBeforeResponseIsConsumed () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
public void connectionsAreEvicted () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
com.squareup.okhttp.Response response2
private void enableHttp2 ()
private transient void assertConnectionReused (com.squareup.okhttp.Request[]) throws java.lang.Exception
com.squareup.okhttp.Response response
int i
com.squareup.okhttp.Request[] requests
private transient void assertConnectionNotReused (com.squareup.okhttp.Request[]) throws java.lang.Exception
com.squareup.okhttp.Response response
com.squareup.okhttp.Request request
com.squareup.okhttp.Request[] requests
}
com/squareup/okhttp/ConnectionSpecTest.class
ConnectionSpecTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.ConnectionSpecTest extends java.lang.Object {
public void <init> ()
public void noTlsVersions () throws java.lang.Exception
IllegalArgumentException expected
public void noCipherSuites () throws java.lang.Exception
IllegalArgumentException expected
public void cleartextBuilder () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec cleartextSpec
public void tlsBuilder_explicitCiphers () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
public void tlsBuilder_defaultCiphers () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
public void tls_defaultCiphers_noFallbackIndicator () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket socket
java.util.Set expectedCipherSet
public void tls_defaultCiphers_withFallbackIndicator () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket socket
java.util.Set expectedCipherSet
public void tls_explicitCiphers () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket socket
java.util.Set expectedCipherSet
public void tls_stringCiphersAndVersions () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
public void tls_missingRequiredCipher () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket socket
public void allEnabledCipherSuites () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket sslSocket
public void allEnabledTlsVersions () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket sslSocket
public void tls_missingTlsVersion () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec tlsSpec
javax.net.ssl.SSLSocket socket
public void equalsAndHashCode () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec allCipherSuites
com.squareup.okhttp.ConnectionSpec allTlsVersions
java.util.Set set
public void allEnabledToString () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec connectionSpec
public void simpleToString () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec connectionSpec
private static transient java.util.Set set (java.lang.Object[])
Object[] values
}
com/squareup/okhttp/DelegatingSSLSocket.class
DelegatingSSLSocket.java
package com.squareup.okhttp
public abstract com.squareup.okhttp.DelegatingSSLSocket extends javax.net.ssl.SSLSocket {
protected final javax.net.ssl.SSLSocket delegate
public void <init> (javax.net.ssl.SSLSocket)
javax.net.ssl.SSLSocket delegate
public void shutdownInput () throws java.io.IOException
public void shutdownOutput () throws java.io.IOException
public java.lang.String[] getSupportedCipherSuites ()
public java.lang.String[] getEnabledCipherSuites ()
public void setEnabledCipherSuites (java.lang.String[])
String[] suites
public java.lang.String[] getSupportedProtocols ()
public java.lang.String[] getEnabledProtocols ()
public void setEnabledProtocols (java.lang.String[])
String[] protocols
public javax.net.ssl.SSLSession getSession ()
public void addHandshakeCompletedListener (javax.net.ssl.HandshakeCompletedListener)
javax.net.ssl.HandshakeCompletedListener listener
public void removeHandshakeCompletedListener (javax.net.ssl.HandshakeCompletedListener)
javax.net.ssl.HandshakeCompletedListener listener
public void startHandshake () throws java.io.IOException
public void setUseClientMode (boolean)
boolean mode
public boolean getUseClientMode ()
public void setNeedClientAuth (boolean)
boolean need
public void setWantClientAuth (boolean)
boolean want
public boolean getNeedClientAuth ()
public boolean getWantClientAuth ()
public void setEnableSessionCreation (boolean)
boolean flag
public boolean getEnableSessionCreation ()
public javax.net.ssl.SSLParameters getSSLParameters ()
public void setSSLParameters (javax.net.ssl.SSLParameters)
javax.net.ssl.SSLParameters p
public void close () throws java.io.IOException
public java.net.InetAddress getInetAddress ()
public java.io.InputStream getInputStream () throws java.io.IOException
public boolean getKeepAlive () throws java.net.SocketException
public java.net.InetAddress getLocalAddress ()
public int getLocalPort ()
public java.io.OutputStream getOutputStream () throws java.io.IOException
public int getPort ()
public int getSoLinger () throws java.net.SocketException
public int getReceiveBufferSize () throws java.net.SocketException
public int getSendBufferSize () throws java.net.SocketException
public int getSoTimeout () throws java.net.SocketException
public boolean getTcpNoDelay () throws java.net.SocketException
public void setKeepAlive (boolean) throws java.net.SocketException
boolean keepAlive
public void setSendBufferSize (int) throws java.net.SocketException
int size
public void setReceiveBufferSize (int) throws java.net.SocketException
int size
public void setSoLinger (boolean, int) throws java.net.SocketException
boolean on
int timeout
public void setSoTimeout (int) throws java.net.SocketException
int timeout
public void setTcpNoDelay (boolean) throws java.net.SocketException
boolean on
public java.lang.String toString ()
public java.net.SocketAddress getLocalSocketAddress ()
public java.net.SocketAddress getRemoteSocketAddress ()
public boolean isBound ()
public boolean isConnected ()
public boolean isClosed ()
public void bind (java.net.SocketAddress) throws java.io.IOException
java.net.SocketAddress localAddr
public void connect (java.net.SocketAddress) throws java.io.IOException
java.net.SocketAddress remoteAddr
public void connect (java.net.SocketAddress, int) throws java.io.IOException
java.net.SocketAddress remoteAddr
int timeout
public boolean isInputShutdown ()
public boolean isOutputShutdown ()
public void setReuseAddress (boolean) throws java.net.SocketException
boolean reuse
public boolean getReuseAddress () throws java.net.SocketException
public void setOOBInline (boolean) throws java.net.SocketException
boolean oobinline
public boolean getOOBInline () throws java.net.SocketException
public void setTrafficClass (int) throws java.net.SocketException
int value
public int getTrafficClass () throws java.net.SocketException
public void sendUrgentData (int) throws java.io.IOException
int value
public java.nio.channels.SocketChannel getChannel ()
public void setPerformancePreferences (int, int, int)
int connectionTime
int latency
int bandwidth
public java.lang.String getApplicationProtocol ()
}
com/squareup/okhttp/DelegatingSSLSocketFactory.class
DelegatingSSLSocketFactory.java
package com.squareup.okhttp
public com.squareup.okhttp.DelegatingSSLSocketFactory extends javax.net.ssl.SSLSocketFactory {
private final javax.net.ssl.SSLSocketFactory delegate
public void <init> (javax.net.ssl.SSLSocketFactory)
javax.net.ssl.SSLSocketFactory delegate
public javax.net.ssl.SSLSocket createSocket () throws java.io.IOException
javax.net.ssl.SSLSocket sslSocket
public javax.net.ssl.SSLSocket createSocket (java.lang.String, int) throws java.io.IOException
String host
int port
javax.net.ssl.SSLSocket sslSocket
public javax.net.ssl.SSLSocket createSocket (java.lang.String, int, java.net.InetAddress, int) throws java.io.IOException
String host
int port
java.net.InetAddress localAddress
int localPort
javax.net.ssl.SSLSocket sslSocket
public javax.net.ssl.SSLSocket createSocket (java.net.InetAddress, int) throws java.io.IOException
java.net.InetAddress host
int port
javax.net.ssl.SSLSocket sslSocket
public javax.net.ssl.SSLSocket createSocket (java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException
java.net.InetAddress host
int port
java.net.InetAddress localAddress
int localPort
javax.net.ssl.SSLSocket sslSocket
public java.lang.String[] getDefaultCipherSuites ()
public java.lang.String[] getSupportedCipherSuites ()
public javax.net.ssl.SSLSocket createSocket (java.net.Socket, java.lang.String, int, boolean) throws java.io.IOException
java.net.Socket socket
String host
int port
boolean autoClose
javax.net.ssl.SSLSocket sslSocket
protected javax.net.ssl.SSLSocket configureSocket (javax.net.ssl.SSLSocket) throws java.io.IOException
javax.net.ssl.SSLSocket sslSocket
public volatile synthetic java.net.Socket createSocket (java.net.Socket, java.lang.String, int, boolean) throws java.io.IOException
public volatile synthetic java.net.Socket createSocket (java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException
public volatile synthetic java.net.Socket createSocket (java.net.InetAddress, int) throws java.io.IOException
public volatile synthetic java.net.Socket createSocket (java.lang.String, int, java.net.InetAddress, int) throws java.io.IOException java.net.UnknownHostException
public volatile synthetic java.net.Socket createSocket (java.lang.String, int) throws java.io.IOException java.net.UnknownHostException
public volatile synthetic java.net.Socket createSocket () throws java.io.IOException
}
com/squareup/okhttp/DelegatingServerSocketFactory.class
DelegatingServerSocketFactory.java
package com.squareup.okhttp
public com.squareup.okhttp.DelegatingServerSocketFactory extends javax.net.ServerSocketFactory {
private final javax.net.ServerSocketFactory delegate
public void <init> (javax.net.ServerSocketFactory)
javax.net.ServerSocketFactory delegate
public java.net.ServerSocket createServerSocket () throws java.io.IOException
java.net.ServerSocket serverSocket
public java.net.ServerSocket createServerSocket (int) throws java.io.IOException
int port
java.net.ServerSocket serverSocket
public java.net.ServerSocket createServerSocket (int, int) throws java.io.IOException
int port
int backlog
java.net.ServerSocket serverSocket
public java.net.ServerSocket createServerSocket (int, int, java.net.InetAddress) throws java.io.IOException
int port
int backlog
java.net.InetAddress ifAddress
java.net.ServerSocket serverSocket
protected java.net.ServerSocket configureServerSocket (java.net.ServerSocket) throws java.io.IOException
java.net.ServerSocket serverSocket
}
com/squareup/okhttp/DelegatingSocketFactory.class
DelegatingSocketFactory.java
package com.squareup.okhttp
public com.squareup.okhttp.DelegatingSocketFactory extends javax.net.SocketFactory {
private final javax.net.SocketFactory delegate
public void <init> (javax.net.SocketFactory)
javax.net.SocketFactory delegate
public java.net.Socket createSocket () throws java.io.IOException
java.net.Socket socket
public java.net.Socket createSocket (java.lang.String, int) throws java.io.IOException java.net.UnknownHostException
String host
int port
java.net.Socket socket
public java.net.Socket createSocket (java.lang.String, int, java.net.InetAddress, int) throws java.io.IOException java.net.UnknownHostException
String host
int port
java.net.InetAddress localAddress
int localPort
java.net.Socket socket
public java.net.Socket createSocket (java.net.InetAddress, int) throws java.io.IOException
java.net.InetAddress host
int port
java.net.Socket socket
public java.net.Socket createSocket (java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException
java.net.InetAddress host
int port
java.net.InetAddress localAddress
int localPort
java.net.Socket socket
protected java.net.Socket configureSocket (java.net.Socket) throws java.io.IOException
java.net.Socket socket
}
com/squareup/okhttp/DispatcherTest$RecordingExecutor.class
DispatcherTest.java
package com.squareup.okhttp
com.squareup.okhttp.DispatcherTest$RecordingExecutor extends java.util.concurrent.AbstractExecutorService {
private java.util.List calls
final synthetic com.squareup.okhttp.DispatcherTest this$0
void <init> (com.squareup.okhttp.DispatcherTest)
com.squareup.okhttp.DispatcherTest this$0
public void execute (java.lang.Runnable)
Runnable command
public transient void assertJobs (java.lang.String[])
com.squareup.okhttp.Call$AsyncCall call
String[] expectedUrls
java.util.List actualUrls
public void finishJob (java.lang.String)
com.squareup.okhttp.Call$AsyncCall call
java.util.Iterator i
String url
public void shutdown ()
public java.util.List shutdownNow ()
public boolean isShutdown ()
public boolean isTerminated ()
public boolean awaitTermination (long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
long timeout
java.util.concurrent.TimeUnit unit
}
com/squareup/okhttp/DispatcherTest.class
DispatcherTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.DispatcherTest extends java.lang.Object {
com.squareup.okhttp.DispatcherTest$RecordingExecutor executor
com.squareup.okhttp.RecordingCallback callback
com.squareup.okhttp.Dispatcher dispatcher
com.squareup.okhttp.OkHttpClient client
public void <init> ()
public void setUp () throws java.lang.Exception
public void maxRequestsZero () throws java.lang.Exception
public void maxPerHostZero () throws java.lang.Exception
public void enqueuedJobsRunImmediately () throws java.lang.Exception
public void maxRequestsEnforced () throws java.lang.Exception
public void maxPerHostEnforced () throws java.lang.Exception
public void increasingMaxRequestsPromotesJobsImmediately () throws java.lang.Exception
public void increasingMaxPerHostPromotesJobsImmediately () throws java.lang.Exception
public void oldJobFinishesNewJobCanRunDifferentHost () throws java.lang.Exception
public void oldJobFinishesNewJobWithSameHostStarts () throws java.lang.Exception
public void oldJobFinishesNewJobCantRunDueToHostLimit () throws java.lang.Exception
public void cancelingRunningJobTakesNoEffectUntilJobFinishes () throws java.lang.Exception
private com.squareup.okhttp.Request newRequest (java.lang.String)
String url
private com.squareup.okhttp.Request newRequest (java.lang.String, java.lang.String)
String url
String tag
}
com/squareup/okhttp/FallbackTestClientSocketFactory$TlsFallbackScsvDisabledSSLSocket.class
FallbackTestClientSocketFactory.java
package com.squareup.okhttp
com.squareup.okhttp.FallbackTestClientSocketFactory$TlsFallbackScsvDisabledSSLSocket extends com.squareup.okhttp.DelegatingSSLSocket {
public void <init> (javax.net.ssl.SSLSocket)
javax.net.ssl.SSLSocket socket
public void setEnabledCipherSuites (java.lang.String[])
String suite
String[] suites
java.util.List enabledCipherSuites
}
com/squareup/okhttp/FallbackTestClientSocketFactory.class
FallbackTestClientSocketFactory.java
package com.squareup.okhttp
public com.squareup.okhttp.FallbackTestClientSocketFactory extends com.squareup.okhttp.DelegatingSSLSocketFactory {
public static final String TLS_FALLBACK_SCSV
public void <init> (javax.net.ssl.SSLSocketFactory)
javax.net.ssl.SSLSocketFactory delegate
protected javax.net.ssl.SSLSocket configureSocket (javax.net.ssl.SSLSocket) throws java.io.IOException
javax.net.ssl.SSLSocket sslSocket
}
com/squareup/okhttp/FormEncodingBuilderTest.class
FormEncodingBuilderTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.FormEncodingBuilderTest extends java.lang.Object {
public void <init> ()
public void urlEncoding () throws java.lang.Exception
com.squareup.okhttp.RequestBody formEncoding
String expected
okio.Buffer out
public void addEncoded () throws java.lang.Exception
com.squareup.okhttp.RequestBody formEncoding
String expected
okio.Buffer out
public void encodedPair () throws java.lang.Exception
com.squareup.okhttp.RequestBody formEncoding
String expected
okio.Buffer buffer
public void encodeMultiplePairs () throws java.lang.Exception
com.squareup.okhttp.RequestBody formEncoding
String expected
okio.Buffer buffer
public void buildEmptyForm () throws java.lang.Exception
com.squareup.okhttp.RequestBody formEncoding
String expected
okio.Buffer buffer
public void characterEncoding () throws java.lang.Exception
private java.lang.String formEncode (int) throws java.io.IOException
int codePoint
com.squareup.okhttp.RequestBody body
okio.Buffer buffer
}
com/squareup/okhttp/HttpUrlTest.class
HttpUrlTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.HttpUrlTest extends java.lang.Object {
public void <init> ()
public void parseTrimsAsciiWhitespace () throws java.lang.Exception
com.squareup.okhttp.HttpUrl expected
public void parseHostAsciiNonPrintable () throws java.lang.Exception
String host
public void parseDoesNotTrimOtherWhitespaceCharacters () throws java.lang.Exception
public void scheme () throws java.lang.Exception
public void parseNoScheme () throws java.lang.Exception
public void resolveNoScheme () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void resolveUnsupportedScheme () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void resolveSchemeLikePath () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void parseAuthoritySlashCountDoesntMatter () throws java.lang.Exception
public void resolveAuthoritySlashCountDoesntMatterWithDifferentScheme () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void resolveAuthoritySlashCountMattersWithSameScheme () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void username () throws java.lang.Exception
public void authorityWithMultipleAtSigns () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
public void authorityWithMultipleColons () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
public void usernameAndPassword () throws java.lang.Exception
public void passwordWithEmptyUsername () throws java.lang.Exception
public void unprintableCharactersArePercentEncoded () throws java.lang.Exception
public void usernameCharacters () throws java.lang.Exception
public void passwordCharacters () throws java.lang.Exception
public void hostContainsIllegalCharacter () throws java.lang.Exception
public void hostnameLowercaseCharactersMappedDirectly () throws java.lang.Exception
public void hostnameUppercaseCharactersConvertedToLowercase () throws java.lang.Exception
public void hostnameIgnoredCharacters () throws java.lang.Exception
public void hostnameMultipleCharacterMapping () throws java.lang.Exception
public void hostnameMappingLastMappedCodePoint () throws java.lang.Exception
public void hostnameMappingLastIgnoredCodePoint () throws java.lang.Exception
public void hostnameMappingLastDisallowedCodePoint () throws java.lang.Exception
public void hostIpv6 () throws java.lang.Exception
public void hostIpv6AddressDifferentFormats () throws java.lang.Exception
String a3
public void hostIpv6AddressLeadingCompression () throws java.lang.Exception
public void hostIpv6AddressTrailingCompression () throws java.lang.Exception
public void hostIpv6AddressTooManyDigitsInGroup () throws java.lang.Exception
public void hostIpv6AddressMisplacedColons () throws java.lang.Exception
public void hostIpv6AddressTooManyGroups () throws java.lang.Exception
public void hostIpv6AddressTooMuchCompression () throws java.lang.Exception
public void hostIpv6ScopedAddress () throws java.lang.Exception
public void hostIpv6WithIpv4Suffix () throws java.lang.Exception
public void hostIpv6WithIpv4SuffixWithOctalPrefix () throws java.lang.Exception
public void hostIpv6WithIpv4SuffixWithHexadecimalPrefix () throws java.lang.Exception
public void hostIpv6WithMalformedIpv4Suffix () throws java.lang.Exception
public void hostIpv6WithIncompleteIpv4Suffix () throws java.lang.Exception
public void hostIpv6CanonicalForm () throws java.lang.Exception
public void hostIPv6Builder () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void hostIpv4CanonicalForm () throws java.lang.Exception
public void hostWithTrailingDot () throws java.lang.Exception
public void port () throws java.lang.Exception
public void pathCharacters () throws java.lang.Exception
public void queryCharacters () throws java.lang.Exception
public void fragmentCharacters () throws java.lang.Exception
public void fragmentNonAscii () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void fragmentNonAsciiThatOffendsJavaNetUri () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void fragmentPercentEncodedNonAscii () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void fragmentPercentEncodedPartialCodePoint () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void relativePath () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void relativePathWithTrailingSlash () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void pathWithBackslash () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void relativePathWithSameScheme () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void decodeUsername ()
public void decodePassword ()
public void decodeSlashCharacterInDecodedPathSegment ()
public void decodeEmptyPathSegments ()
public void percentDecode () throws java.lang.Exception
public void malformedPercentEncoding ()
public void malformedUtf8Encoding ()
public void incompleteUrlComposition () throws java.lang.Exception
IllegalStateException expected
IllegalStateException expected
public void minimalUrlComposition () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void fullUrlComposition () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void changingSchemeChangesDefaultPort () throws java.lang.Exception
public void composeEncodesWhitespace () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeFromUnencodedComponents () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeFromEncodedComponents () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeWithEncodedPath () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeMixingPathSegments () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeWithAddSegment () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void pathSize () throws java.lang.Exception
public void addPathSegmentDotDoesNothing () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void addPathSegmentEncodes () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void addPathSegmentDotDotPopsDirectory () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void addPathSegmentDotAndIgnoredCharacter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void addEncodedPathSegmentDotAndIgnoredCharacter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void addEncodedPathSegmentDotDotAndIgnoredCharacter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setPathSegment () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setPathSegmentEncodes () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setPathSegmentAcceptsEmpty () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setPathSegmentRejectsDot () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setPathSegmentRejectsDotDot () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setPathSegmentWithSlash () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
com.squareup.okhttp.HttpUrl url
public void setPathSegmentOutOfBounds () throws java.lang.Exception
public void setEncodedPathSegmentEncodes () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setEncodedPathSegmentRejectsDot () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setEncodedPathSegmentRejectsDotAndIgnoredCharacter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setEncodedPathSegmentRejectsDotDot () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setEncodedPathSegmentRejectsDotDotAndIgnoredCharacter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
public void setEncodedPathSegmentWithSlash () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
com.squareup.okhttp.HttpUrl url
public void setEncodedPathSegmentOutOfBounds () throws java.lang.Exception
public void removePathSegment () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
com.squareup.okhttp.HttpUrl url
public void removePathSegmentDoesntRemovePath () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
com.squareup.okhttp.HttpUrl url
public void removePathSegmentOutOfBounds () throws java.lang.Exception
public void toJavaNetUrl () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
java.net.URL javaNetUrl
public void toUri () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
java.net.URI uri
public void toUriSpecialQueryCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
java.net.URI uri
public void toUriWithUsernameNoPassword () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
public void toUriUsernameSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriPasswordSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriPathSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriQueryParameterNameSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriQueryParameterValueSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriQueryValueSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriFragmentSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void toUriWithControlCharacters () throws java.lang.Exception
public void toUriWithSpaceCharacters () throws java.lang.Exception
public void toUriWithNonHexPercentEscape () throws java.lang.Exception
public void toUriWithTruncatedPercentEscape () throws java.lang.Exception
public void fromJavaNetUrl () throws java.lang.Exception
java.net.URL javaNetUrl
com.squareup.okhttp.HttpUrl httpUrl
public void fromJavaNetUrlUnsupportedScheme () throws java.lang.Exception
java.net.URL javaNetUrl
public void fromUri () throws java.lang.Exception
java.net.URI uri
com.squareup.okhttp.HttpUrl httpUrl
public void fromUriUnsupportedScheme () throws java.lang.Exception
java.net.URI uri
public void fromUriPartial () throws java.lang.Exception
java.net.URI uri
public void fromJavaNetUrl_checked () throws java.lang.Exception
com.squareup.okhttp.HttpUrl httpUrl
public void fromJavaNetUrlUnsupportedScheme_checked () throws java.lang.Exception
public void fromJavaNetUrlBadHost_checked () throws java.lang.Exception
public void composeQueryWithComponents () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
com.squareup.okhttp.HttpUrl url
public void composeQueryWithEncodedComponents () throws java.lang.Exception
com.squareup.okhttp.HttpUrl base
com.squareup.okhttp.HttpUrl url
public void composeQueryRemoveQueryParameter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeQueryRemoveEncodedQueryParameter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeQuerySetQueryParameter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeQuerySetEncodedQueryParameter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void composeQueryMultipleEncodedValuesForParameter () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void absentQueryIsZeroNameValuePairs () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void emptyQueryIsSingleNameValuePairWithEmptyKey () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void ampersandQueryIsTwoNameValuePairsWithEmptyKeys () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void removeAllDoesNotRemoveQueryIfNoParametersWereRemoved () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void queryParametersWithoutValues () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void queryParametersWithEmptyValues () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void queryParametersWithRepeatedName () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void queryParameterLookupWithNonCanonicalEncoding () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void roundTripBuilder () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void rawEncodingRetained () throws java.lang.Exception
String urlString
com.squareup.okhttp.HttpUrl url
public void clearFragment () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
public void clearEncodedFragment () throws java.lang.Exception
com.squareup.okhttp.HttpUrl url
}
com/squareup/okhttp/InterceptorTest$1.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$1 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.Response val$interceptorResponse
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest, com.squareup.okhttp.Response)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$10.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$10 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Request originalRequest
com.squareup.okhttp.Response originalResponse
}
com/squareup/okhttp/InterceptorTest$11.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$11 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Request originalRequest
com.squareup.okhttp.Response originalResponse
}
com/squareup/okhttp/InterceptorTest$12.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$12 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Response originalResponse
}
com/squareup/okhttp/InterceptorTest$13.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$13 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Response response1
}
com/squareup/okhttp/InterceptorTest$14.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$14 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Response responseA
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$15.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$15 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.RecordingCallback callbackA
Exception e
com.squareup.okhttp.Request requestA
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$16.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$16 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$17.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$17 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$18.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$18 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$19.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$19 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$2.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$2 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$20.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$20 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$21.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$21 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.RequestBody val$original
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest, com.squareup.okhttp.RequestBody)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.MediaType contentType ()
public long contentLength () throws java.io.IOException
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
okio.Sink uppercase
okio.BufferedSink bufferedSink
}
com/squareup/okhttp/InterceptorTest$22.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$22 extends okio.ForwardingSink {
final synthetic okio.BufferedSink val$original
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest, okio.Sink, okio.BufferedSink)
com.squareup.okhttp.InterceptorTest this$0
okio.Sink arg0
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
}
com/squareup/okhttp/InterceptorTest$23.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$23 extends okio.ForwardingSource {
final synthetic okio.Source val$original
void <init> (okio.Source, okio.Source)
okio.Source arg0
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
okio.Buffer mixedCase
long count
}
com/squareup/okhttp/InterceptorTest$3.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$3 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/InterceptorTest$4.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$4 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Address address
String sameHost
int differentPort
}
com/squareup/okhttp/InterceptorTest$5.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$5 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Connection connection
}
com/squareup/okhttp/InterceptorTest$6.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$6 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Request networkRequest
com.squareup.okhttp.Response networkResponse
}
com/squareup/okhttp/InterceptorTest$7.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$7 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Request originalRequest
com.squareup.okhttp.MediaType mediaType
com.squareup.okhttp.RequestBody body
}
com/squareup/okhttp/InterceptorTest$8.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$8 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Request originalRequest
}
com/squareup/okhttp/InterceptorTest$9.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$9 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.InterceptorTest this$0
void <init> (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
com.squareup.okhttp.Response originalResponse
}
com/squareup/okhttp/InterceptorTest$ExceptionCatchingExecutor$1.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor$1 extends java.lang.Object implements java.lang.Runnable {
final synthetic Runnable val$runnable
final synthetic com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor this$0
void <init> (com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor, java.lang.Runnable)
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor this$0
public void run ()
Exception e
}
com/squareup/okhttp/InterceptorTest$ExceptionCatchingExecutor.class
InterceptorTest.java
package com.squareup.okhttp
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor extends java.util.concurrent.ThreadPoolExecutor {
private final java.util.concurrent.BlockingQueue exceptions
public void <init> ()
public void execute (java.lang.Runnable)
Runnable runnable
public java.lang.Exception takeException () throws java.lang.InterruptedException
static synthetic java.util.concurrent.BlockingQueue access$300 (com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor)
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor x0
}
com/squareup/okhttp/InterceptorTest.class
InterceptorTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.InterceptorTest extends java.lang.Object {
public com.squareup.okhttp.mockwebserver.MockWebServer server
private com.squareup.okhttp.OkHttpClient client
private com.squareup.okhttp.RecordingCallback callback
public void <init> ()
public void applicationInterceptorsCanShortCircuitResponses () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response interceptorResponse
com.squareup.okhttp.Response response
public void networkInterceptorsCannotShortCircuitResponses () throws java.lang.Exception
IllegalStateException expected
com.squareup.okhttp.Interceptor interceptor
com.squareup.okhttp.Request request
public void networkInterceptorsCannotCallProceedMultipleTimes () throws java.lang.Exception
IllegalStateException expected
com.squareup.okhttp.Interceptor interceptor
com.squareup.okhttp.Request request
public void networkInterceptorsCannotChangeServerAddress () throws java.lang.Exception
IllegalStateException expected
com.squareup.okhttp.Interceptor interceptor
com.squareup.okhttp.Request request
public void networkInterceptorsHaveConnectionAccess () throws java.lang.Exception
com.squareup.okhttp.Request request
public void networkInterceptorsObserveNetworkHeaders () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void networkInterceptorsCanChangeRequestMethodFromGetToPost () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void applicationInterceptorsRewriteRequestToServer () throws java.lang.Exception
public void networkInterceptorsRewriteRequestToServer () throws java.lang.Exception
private void rewriteRequestToServer (java.util.List) throws java.lang.Exception
java.util.List interceptors
com.squareup.okhttp.Request request
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void applicationInterceptorsRewriteResponseFromServer () throws java.lang.Exception
public void networkInterceptorsRewriteResponseFromServer () throws java.lang.Exception
private void rewriteResponseFromServer (java.util.List) throws java.lang.Exception
java.util.List interceptors
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void multipleApplicationInterceptors () throws java.lang.Exception
public void multipleNetworkInterceptors () throws java.lang.Exception
private void multipleInterceptors (java.util.List) throws java.lang.Exception
java.util.List interceptors
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest
public void asyncApplicationInterceptors () throws java.lang.Exception
public void asyncNetworkInterceptors () throws java.lang.Exception
private void asyncInterceptors (java.util.List) throws java.lang.Exception
java.util.List interceptors
com.squareup.okhttp.Request request
public void applicationInterceptorsCanMakeMultipleRequestsToServer () throws java.lang.Exception
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void interceptorMakesAnUnrelatedRequest () throws java.lang.Exception
com.squareup.okhttp.Request requestB
com.squareup.okhttp.Response responseB
public void interceptorMakesAnUnrelatedAsyncRequest () throws java.lang.Exception
com.squareup.okhttp.Request requestB
com.squareup.okhttp.RecordingCallback callbackB
public void applicationkInterceptorThrowsRuntimeExceptionSynchronous () throws java.lang.Exception
public void networkInterceptorThrowsRuntimeExceptionSynchronous () throws java.lang.Exception
private void interceptorThrowsRuntimeExceptionSynchronous (java.util.List) throws java.lang.Exception
RuntimeException expected
java.util.List interceptors
com.squareup.okhttp.Request request
public void networkInterceptorModifiedRequestIsReturned () throws java.io.IOException
com.squareup.okhttp.Interceptor modifyHeaderInterceptor
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void applicationInterceptorThrowsRuntimeExceptionAsynchronous () throws java.lang.Exception
public void networkInterceptorThrowsRuntimeExceptionAsynchronous () throws java.lang.Exception
private void interceptorThrowsRuntimeExceptionAsynchronous (java.util.List) throws java.lang.Exception
java.util.List interceptors
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor executor
com.squareup.okhttp.Request request
public void applicationInterceptorReturnsNull () throws java.lang.Exception
NullPointerException expected
com.squareup.okhttp.Interceptor interceptor
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor executor
com.squareup.okhttp.Request request
public void networkInterceptorReturnsNull () throws java.lang.Exception
NullPointerException expected
com.squareup.okhttp.Interceptor interceptor
com.squareup.okhttp.InterceptorTest$ExceptionCatchingExecutor executor
com.squareup.okhttp.Request request
private com.squareup.okhttp.RequestBody uppercase (com.squareup.okhttp.RequestBody)
com.squareup.okhttp.RequestBody original
private okio.Sink uppercase (okio.BufferedSink)
okio.BufferedSink original
static com.squareup.okhttp.ResponseBody uppercase (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody original
private static okio.Source uppercase (okio.Source)
okio.Source original
private okio.Buffer gzip (java.lang.String) throws java.io.IOException
String data
okio.Buffer result
okio.BufferedSink sink
static synthetic com.squareup.okhttp.RequestBody access$000 (com.squareup.okhttp.InterceptorTest, com.squareup.okhttp.RequestBody)
com.squareup.okhttp.InterceptorTest x0
com.squareup.okhttp.RequestBody x1
static synthetic com.squareup.okhttp.OkHttpClient access$100 (com.squareup.okhttp.InterceptorTest)
com.squareup.okhttp.InterceptorTest x0
static synthetic okio.Sink access$200 (com.squareup.okhttp.InterceptorTest, okio.BufferedSink)
com.squareup.okhttp.InterceptorTest x0
okio.BufferedSink x1
}
com/squareup/okhttp/MediaTypeTest.class
MediaTypeTest.java
package com.squareup.okhttp
public com.squareup.okhttp.MediaTypeTest extends java.lang.Object {
public void <init> ()
public void testParse () throws java.lang.Exception
com.squareup.okhttp.MediaType mediaType
public void testValidParse () throws java.lang.Exception
public void testInvalidParse () throws java.lang.Exception
public void testParseWithSpecialCharacters () throws java.lang.Exception
com.squareup.okhttp.MediaType mediaType
public void testCharsetIsOneOfManyParameters () throws java.lang.Exception
com.squareup.okhttp.MediaType mediaType
public void testCharsetAndQuoting () throws java.lang.Exception
com.squareup.okhttp.MediaType mediaType
public void testDuplicatedCharsets ()
com.squareup.okhttp.MediaType mediaType
public void testMultipleCharsets ()
public void testIllegalCharsetName ()
com.squareup.okhttp.MediaType mediaType
public void testUnsupportedCharset ()
com.squareup.okhttp.MediaType mediaType
public void testDefaultCharset () throws java.lang.Exception
com.squareup.okhttp.MediaType noCharset
com.squareup.okhttp.MediaType charset
public void testParseDanglingSemicolon () throws java.lang.Exception
com.squareup.okhttp.MediaType mediaType
private void assertMediaType (java.lang.String)
String string
com.squareup.okhttp.MediaType mediaType
private void assertInvalid (java.lang.String)
String string
}
com/squareup/okhttp/MultipartBuilderTest$1StreamingBody.class
MultipartBuilderTest.java
package com.squareup.okhttp
com.squareup.okhttp.MultipartBuilderTest$1StreamingBody extends com.squareup.okhttp.RequestBody {
private final String body
final synthetic com.squareup.okhttp.MultipartBuilderTest this$0
void <init> (com.squareup.okhttp.MultipartBuilderTest, java.lang.String)
com.squareup.okhttp.MultipartBuilderTest this$0
String body
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/MultipartBuilderTest.class
MultipartBuilderTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.MultipartBuilderTest extends java.lang.Object {
public void <init> ()
public void onePartRequired () throws java.lang.Exception
public void singlePart () throws java.lang.Exception
String expected
com.squareup.okhttp.RequestBody requestBody
okio.Buffer buffer
public void threeParts () throws java.lang.Exception
String expected
com.squareup.okhttp.RequestBody requestBody
okio.Buffer buffer
public void fieldAndTwoFiles () throws java.lang.Exception
String expected
com.squareup.okhttp.RequestBody requestBody
okio.Buffer buffer
public void stringEscapingIsWeird () throws java.lang.Exception
String expected
com.squareup.okhttp.RequestBody requestBody
okio.Buffer buffer
public void streamingPartHasNoLength () throws java.lang.Exception
String expected
com.squareup.okhttp.RequestBody requestBody
okio.Buffer buffer
public void contentTypeHeaderIsForbidden () throws java.lang.Exception
public void contentLengthHeaderIsForbidden () throws java.lang.Exception
}
com/squareup/okhttp/OkHttpClientTest$1.class
OkHttpClientTest.java
package com.squareup.okhttp
com.squareup.okhttp.OkHttpClientTest$1 extends java.net.ResponseCache {
final synthetic com.squareup.okhttp.OkHttpClientTest this$0
void <init> (com.squareup.okhttp.OkHttpClientTest)
com.squareup.okhttp.OkHttpClientTest this$0
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection)
java.net.URI uri
java.net.URLConnection connection
}
com/squareup/okhttp/OkHttpClientTest.class
OkHttpClientTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.OkHttpClientTest extends java.lang.Object {
private static final java.net.ProxySelector DEFAULT_PROXY_SELECTOR
private static final java.net.CookieHandler DEFAULT_COOKIE_HANDLER
private static final java.net.ResponseCache DEFAULT_RESPONSE_CACHE
private static final java.net.Authenticator DEFAULT_AUTHENTICATOR
public void <init> ()
public void tearDown () throws java.lang.Exception
public void timeoutDefaults ()
com.squareup.okhttp.OkHttpClient client
public void timeoutValidRange ()
com.squareup.okhttp.OkHttpClient client
public void copyWithDefaultsWhenDefaultIsAConstant () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient client
public void copyWithDefaultsWhenDefaultIsGlobal () throws java.lang.Exception
java.net.ProxySelector proxySelector
java.net.CookieManager cookieManager
java.net.Authenticator authenticator
javax.net.SocketFactory socketFactory
com.squareup.okhttp.internal.tls.OkHostnameVerifier hostnameVerifier
com.squareup.okhttp.CertificatePinner certificatePinner
com.squareup.okhttp.OkHttpClient client
public void copyWithDefaultsCacheIsNull () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient client
public void copyWithDefaultsDoesNotHonorGlobalResponseCache ()
com.squareup.okhttp.OkHttpClient client
public void clonedInterceptorsListsAreIndependent () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient original
com.squareup.okhttp.OkHttpClient clone
public void cloneSharesStatefulInstances () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.OkHttpClient a
com.squareup.okhttp.OkHttpClient b
public void setProtocolsRejectsHttp10 () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient client
static void <clinit> ()
}
com/squareup/okhttp/OkUrlFactoryTest$1.class
OkUrlFactoryTest.java
package com.squareup.okhttp
com.squareup.okhttp.OkUrlFactoryTest$1 extends java.lang.Object implements com.squareup.okhttp.internal.URLFilter {
final synthetic java.net.URL val$blockedURL
final synthetic com.squareup.okhttp.OkUrlFactoryTest this$0
void <init> (com.squareup.okhttp.OkUrlFactoryTest, java.net.URL)
com.squareup.okhttp.OkUrlFactoryTest this$0
public void checkURLPermitted (java.net.URL) throws java.io.IOException
java.net.URL url
}
com/squareup/okhttp/OkUrlFactoryTest.class
OkUrlFactoryTest.java
package com.squareup.okhttp
public com.squareup.okhttp.OkUrlFactoryTest extends java.lang.Object {
public com.squareup.okhttp.mockwebserver.MockWebServer server
public com.squareup.okhttp.internal.io.InMemoryFileSystem fileSystem
private com.squareup.okhttp.OkUrlFactory factory
private com.squareup.okhttp.Cache cache
public void <init> ()
public void setUp () throws java.io.IOException
com.squareup.okhttp.OkHttpClient client
public void tearDown () throws java.io.IOException
public void originServerSends407 () throws java.lang.Exception
java.net.HttpURLConnection conn
public void networkResponseSourceHeader () throws java.lang.Exception
java.net.HttpURLConnection connection
public void networkFailureResponseSourceHeader () throws java.lang.Exception
java.net.HttpURLConnection connection
public void conditionalCacheHitResponseSourceHeaders () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void conditionalCacheMissResponseSourceHeaders () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void cacheResponseSourceHeaders () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void noneResponseSourceHeaders () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void setInstanceFollowRedirectsFalse () throws java.lang.Exception
java.net.HttpURLConnection connection
public void testURLFilter () throws java.lang.Exception
java.net.HttpURLConnection connection
java.io.IOException e
java.net.URL blockedURL
java.net.HttpURLConnection connection
private void assertResponseBody (java.net.HttpURLConnection, java.lang.String) throws java.lang.Exception
java.net.HttpURLConnection connection
String expected
okio.BufferedSource source
String actual
private void assertResponseHeader (java.net.HttpURLConnection, java.lang.String)
java.net.HttpURLConnection connection
String expected
private void assertResponseCode (java.net.HttpURLConnection, int) throws java.io.IOException
java.net.HttpURLConnection connection
int expected
private static java.lang.String formatDate (long, java.util.concurrent.TimeUnit)
long delta
java.util.concurrent.TimeUnit timeUnit
private static java.lang.String formatDate (java.util.Date)
java.util.Date date
java.text.DateFormat rfc1123
}
com/squareup/okhttp/RecordedResponse.class
RecordedResponse.java
package com.squareup.okhttp
public final com.squareup.okhttp.RecordedResponse extends java.lang.Object {
public final com.squareup.okhttp.Request request
public final com.squareup.okhttp.Response response
public final com.squareup.okhttp.ws.WebSocket webSocket
public final String body
public final java.io.IOException failure
public void <init> (com.squareup.okhttp.Request, com.squareup.okhttp.Response, com.squareup.okhttp.ws.WebSocket, java.lang.String, java.io.IOException)
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.ws.WebSocket webSocket
String body
java.io.IOException failure
public com.squareup.okhttp.RecordedResponse assertRequestUrl (java.net.URL)
java.net.URL url
public com.squareup.okhttp.RecordedResponse assertRequestMethod (java.lang.String)
String method
public transient com.squareup.okhttp.RecordedResponse assertRequestHeader (java.lang.String, java.lang.String[])
String name
String[] values
public com.squareup.okhttp.RecordedResponse assertCode (int)
int expectedCode
public com.squareup.okhttp.RecordedResponse assertSuccessful ()
public com.squareup.okhttp.RecordedResponse assertNotSuccessful ()
public transient com.squareup.okhttp.RecordedResponse assertHeader (java.lang.String, java.lang.String[])
String name
String[] values
public com.squareup.okhttp.RecordedResponse assertBody (java.lang.String)
String expectedBody
public com.squareup.okhttp.RecordedResponse assertHandshake ()
com.squareup.okhttp.Handshake handshake
public com.squareup.okhttp.RecordedResponse priorResponse ()
com.squareup.okhttp.Response priorResponse
public com.squareup.okhttp.RecordedResponse networkResponse ()
com.squareup.okhttp.Response networkResponse
public com.squareup.okhttp.RecordedResponse assertNoNetworkResponse ()
public com.squareup.okhttp.RecordedResponse assertNoCacheResponse ()
public com.squareup.okhttp.RecordedResponse cacheResponse ()
com.squareup.okhttp.Response cacheResponse
public transient void assertFailure (java.lang.String[])
String[] messages
}
com/squareup/okhttp/RecordingCallback.class
RecordingCallback.java
package com.squareup.okhttp
public com.squareup.okhttp.RecordingCallback extends java.lang.Object implements com.squareup.okhttp.Callback {
public static final long TIMEOUT_MILLIS
private final java.util.List responses
public void <init> ()
public synchronized void onFailure (com.squareup.okhttp.Request, java.io.IOException)
com.squareup.okhttp.Request request
java.io.IOException e
public synchronized void onResponse (com.squareup.okhttp.Response) throws java.io.IOException
com.squareup.okhttp.Response response
String body
public synchronized com.squareup.okhttp.RecordedResponse await (com.squareup.okhttp.HttpUrl) throws java.lang.Exception
com.squareup.okhttp.RecordedResponse recordedResponse
java.util.Iterator i
long nowMillis
com.squareup.okhttp.HttpUrl url
long timeoutMillis
public synchronized void assertNoResponse (com.squareup.okhttp.HttpUrl) throws java.lang.Exception
com.squareup.okhttp.RecordedResponse recordedResponse
com.squareup.okhttp.HttpUrl url
static void <clinit> ()
}
com/squareup/okhttp/RequestTest.class
RequestTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.RequestTest extends java.lang.Object {
public void <init> ()
public void string () throws java.lang.Exception
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
public void stringWithDefaultCharsetAdded () throws java.lang.Exception
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
public void stringWithNonDefaultCharsetSpecified () throws java.lang.Exception
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
public void byteArray () throws java.lang.Exception
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
public void byteArrayRange () throws java.lang.Exception
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
public void file () throws java.lang.Exception
java.io.File file
java.io.FileWriter writer
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
public void crudVerbs () throws java.io.IOException
com.squareup.okhttp.MediaType contentType
com.squareup.okhttp.RequestBody body
com.squareup.okhttp.Request get
com.squareup.okhttp.Request head
com.squareup.okhttp.Request delete
com.squareup.okhttp.Request post
com.squareup.okhttp.Request put
com.squareup.okhttp.Request patch
public void uninitializedURI () throws java.lang.Exception
com.squareup.okhttp.Request request
public void newBuilderUrlResetsUrl () throws java.lang.Exception
com.squareup.okhttp.Request requestWithoutCache
com.squareup.okhttp.Request builtRequestWithoutCache
com.squareup.okhttp.Request requestWithCache
com.squareup.okhttp.Request builtRequestWithCache
public void cacheControl () throws java.lang.Exception
com.squareup.okhttp.Request request
public void emptyCacheControlClearsAllCacheControlHeaders () throws java.lang.Exception
com.squareup.okhttp.Request request
public void headerAcceptsPermittedCharacters () throws java.lang.Exception
com.squareup.okhttp.Request$Builder builder
public void emptyNameForbidden () throws java.lang.Exception
com.squareup.okhttp.Request$Builder builder
public void headerAllowsTabOnlyInValues () throws java.lang.Exception
com.squareup.okhttp.Request$Builder builder
public void headerForbidsControlCharacters () throws java.lang.Exception
private void assertForbiddenHeader (java.lang.String)
String s
com.squareup.okhttp.Request$Builder builder
private java.lang.String bodyToHex (com.squareup.okhttp.RequestBody) throws java.io.IOException
com.squareup.okhttp.RequestBody body
okio.Buffer buffer
}
com/squareup/okhttp/SocksProxy$1.class
SocksProxy.java
package com.squareup.okhttp
com.squareup.okhttp.SocksProxy$1 extends com.squareup.okhttp.internal.NamedRunnable {
final synthetic com.squareup.okhttp.SocksProxy this$0
transient void <init> (com.squareup.okhttp.SocksProxy, java.lang.String, java.lang.Object[])
com.squareup.okhttp.SocksProxy this$0
String arg0
Object[] arg1
protected void execute ()
java.net.Socket socket
java.net.SocketException e
java.io.IOException e
}
com/squareup/okhttp/SocksProxy$2.class
SocksProxy.java
package com.squareup.okhttp
com.squareup.okhttp.SocksProxy$2 extends com.squareup.okhttp.internal.NamedRunnable {
final synthetic java.net.Socket val$from
final synthetic com.squareup.okhttp.SocksProxy this$0
transient void <init> (com.squareup.okhttp.SocksProxy, java.lang.String, java.lang.Object[], java.net.Socket)
com.squareup.okhttp.SocksProxy this$0
String arg0
Object[] arg1
protected void execute ()
okio.BufferedSource fromSource
okio.BufferedSink fromSink
java.io.IOException e
}
com/squareup/okhttp/SocksProxy$3.class
SocksProxy.java
package com.squareup.okhttp
com.squareup.okhttp.SocksProxy$3 extends com.squareup.okhttp.internal.NamedRunnable {
final synthetic okio.BufferedSource val$source
final synthetic okio.BufferedSink val$sink
final synthetic com.squareup.okhttp.SocksProxy this$0
transient void <init> (com.squareup.okhttp.SocksProxy, java.lang.String, java.lang.Object[], okio.BufferedSource, okio.BufferedSink)
com.squareup.okhttp.SocksProxy this$0
String arg0
Object[] arg1
protected void execute ()
long byteCount
java.net.SocketException e
java.io.IOException e
java.io.IOException e
java.io.IOException e
okio.Buffer buffer
}
com/squareup/okhttp/SocksProxy.class
SocksProxy.java
package com.squareup.okhttp
public final com.squareup.okhttp.SocksProxy extends java.lang.Object {
public final String HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS
private static final int VERSION_5
private static final int METHOD_NONE
private static final int METHOD_NO_AUTHENTICATION_REQUIRED
private static final int ADDRESS_TYPE_IPV4
private static final int ADDRESS_TYPE_DOMAIN_NAME
private static final int COMMAND_CONNECT
private static final int REPLY_SUCCEEDED
private static final java.util.logging.Logger logger
private final java.util.concurrent.ExecutorService executor
private java.net.ServerSocket serverSocket
private java.util.concurrent.atomic.AtomicInteger connectionCount
public void <init> ()
public void play () throws java.io.IOException
public java.net.Proxy proxy ()
public int connectionCount ()
public void shutdown () throws java.lang.Exception
private void service (java.net.Socket)
java.net.Socket from
private void hello (okio.BufferedSource, okio.BufferedSink) throws java.io.IOException
int candidateMethod
int i
okio.BufferedSource fromSource
okio.BufferedSink fromSink
int version
int methodCount
int selectedMethod
private void acceptCommand (java.net.InetAddress, okio.BufferedSource, okio.BufferedSink) throws java.io.IOException
java.net.InetAddress toAddress
java.net.InetAddress toAddress
int domainNameLength
String domainName
java.net.Socket toSocket
byte[] localAddress
okio.BufferedSource toSource
okio.BufferedSink toSink
java.net.InetAddress fromAddress
okio.BufferedSource fromSource
okio.BufferedSink fromSink
int version
int command
int reserved
int addressType
java.net.InetAddress toAddress
int port
private void transfer (java.net.InetAddress, java.net.InetAddress, okio.BufferedSource, okio.BufferedSink)
java.net.InetAddress fromAddress
java.net.InetAddress toAddress
okio.BufferedSource source
okio.BufferedSink sink
static synthetic java.net.ServerSocket access$000 (com.squareup.okhttp.SocksProxy)
com.squareup.okhttp.SocksProxy x0
static synthetic java.util.concurrent.atomic.AtomicInteger access$100 (com.squareup.okhttp.SocksProxy)
com.squareup.okhttp.SocksProxy x0
static synthetic void access$200 (com.squareup.okhttp.SocksProxy, java.net.Socket)
com.squareup.okhttp.SocksProxy x0
java.net.Socket x1
static synthetic java.util.logging.Logger access$300 ()
static synthetic void access$400 (com.squareup.okhttp.SocksProxy, okio.BufferedSource, okio.BufferedSink) throws java.io.IOException
com.squareup.okhttp.SocksProxy x0
okio.BufferedSource x1
okio.BufferedSink x2
static synthetic void access$500 (com.squareup.okhttp.SocksProxy, java.net.InetAddress, okio.BufferedSource, okio.BufferedSink) throws java.io.IOException
com.squareup.okhttp.SocksProxy x0
java.net.InetAddress x1
okio.BufferedSource x2
okio.BufferedSink x3
static void <clinit> ()
}
com/squareup/okhttp/SocksProxyTest$1.class
SocksProxyTest.java
package com.squareup.okhttp
com.squareup.okhttp.SocksProxyTest$1 extends java.net.ProxySelector {
final synthetic com.squareup.okhttp.SocksProxyTest this$0
void <init> (com.squareup.okhttp.SocksProxyTest)
com.squareup.okhttp.SocksProxyTest this$0
public java.util.List select (java.net.URI)
java.net.URI uri
public void connectFailed (java.net.URI, java.net.SocketAddress, java.io.IOException)
java.net.URI uri
java.net.SocketAddress socketAddress
java.io.IOException e
}
com/squareup/okhttp/SocksProxyTest.class
SocksProxyTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.SocksProxyTest extends java.lang.Object {
private final com.squareup.okhttp.SocksProxy socksProxy
private final com.squareup.okhttp.mockwebserver.MockWebServer server
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void proxy () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.Request request1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Request request2
com.squareup.okhttp.Response response2
public void proxySelector () throws java.lang.Exception
java.net.ProxySelector proxySelector
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
public void checkRemoteDNSResolve () throws java.lang.Exception
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.HttpUrl url
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response1
static synthetic com.squareup.okhttp.SocksProxy access$000 (com.squareup.okhttp.SocksProxyTest)
com.squareup.okhttp.SocksProxyTest x0
}
com/squareup/okhttp/TestLogHandler.class
TestLogHandler.java
package com.squareup.okhttp
public final com.squareup.okhttp.TestLogHandler extends java.util.logging.Handler {
private final java.util.List logs
public void <init> ()
public synchronized void publish (java.util.logging.LogRecord)
java.util.logging.LogRecord logRecord
public void flush ()
public void close () throws java.lang.SecurityException
public synchronized java.lang.String take () throws java.lang.InterruptedException
}
com/squareup/okhttp/TestUtil.class
TestUtil.java
package com.squareup.okhttp
public final com.squareup.okhttp.TestUtil extends java.lang.Object {
private void <init> ()
public static transient java.util.List headerEntries (java.lang.String[])
int i
String[] elements
java.util.List result
public static transient java.util.Set setOf (java.lang.Object[])
Object[] elements
public static java.util.Set setOf (java.util.Collection)
java.util.Collection elements
public static java.lang.String repeat (char, int)
char c
int count
char[] array
}
com/squareup/okhttp/URLConnectionTest$1.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$1 extends javax.net.SocketFactory {
final synthetic com.squareup.okhttp.URLConnectionTest this$0
void <init> (com.squareup.okhttp.URLConnectionTest)
com.squareup.okhttp.URLConnectionTest this$0
public java.net.Socket createSocket ()
public java.net.Socket createSocket (java.net.InetAddress, int)
java.net.InetAddress host
int port
public java.net.Socket createSocket (java.net.InetAddress, int, java.net.InetAddress, int)
java.net.InetAddress address
int port
java.net.InetAddress localAddress
int localPort
public java.net.Socket createSocket (java.lang.String, int)
String host
int port
public java.net.Socket createSocket (java.lang.String, int, java.net.InetAddress, int)
String host
int port
java.net.InetAddress localHost
int localPort
}
com/squareup/okhttp/URLConnectionTest$2.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$2 extends java.net.ProxySelector {
final synthetic java.util.List val$proxySelectionRequests
final synthetic com.squareup.okhttp.URLConnectionTest this$0
void <init> (com.squareup.okhttp.URLConnectionTest, java.util.List)
com.squareup.okhttp.URLConnectionTest this$0
public java.util.List select (java.net.URI)
java.net.URI uri
com.squareup.okhttp.mockwebserver.MockWebServer proxyServer
public void connectFailed (java.net.URI, java.net.SocketAddress, java.io.IOException)
java.net.URI uri
java.net.SocketAddress address
java.io.IOException failure
}
com/squareup/okhttp/URLConnectionTest$3.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$3 extends com.squareup.okhttp.DelegatingServerSocketFactory {
final synthetic com.squareup.okhttp.URLConnectionTest this$0
void <init> (com.squareup.okhttp.URLConnectionTest, javax.net.ServerSocketFactory)
com.squareup.okhttp.URLConnectionTest this$0
javax.net.ServerSocketFactory delegate
protected java.net.ServerSocket configureServerSocket (java.net.ServerSocket) throws java.io.IOException
java.net.ServerSocket serverSocket
}
com/squareup/okhttp/URLConnectionTest$4.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$4 extends com.squareup.okhttp.DelegatingSocketFactory {
final synthetic com.squareup.okhttp.URLConnectionTest this$0
void <init> (com.squareup.okhttp.URLConnectionTest, javax.net.SocketFactory)
com.squareup.okhttp.URLConnectionTest this$0
javax.net.SocketFactory delegate
protected java.net.Socket configureSocket (java.net.Socket) throws java.io.IOException
java.net.Socket socket
}
com/squareup/okhttp/URLConnectionTest$5.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$5 extends java.lang.Object implements com.squareup.okhttp.Interceptor {
final synthetic com.squareup.okhttp.URLConnectionTest this$0
void <init> (com.squareup.okhttp.URLConnectionTest)
com.squareup.okhttp.URLConnectionTest this$0
public com.squareup.okhttp.Response intercept (com.squareup.okhttp.Interceptor$Chain) throws java.io.IOException
com.squareup.okhttp.Interceptor$Chain chain
}
com/squareup/okhttp/URLConnectionTest$FakeProxySelector.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$FakeProxySelector extends java.net.ProxySelector {
java.util.List proxies
private void <init> ()
public java.util.List select (java.net.URI)
java.net.URI uri
public void connectFailed (java.net.URI, java.net.SocketAddress, java.io.IOException)
java.net.URI uri
java.net.SocketAddress sa
java.io.IOException ioe
synthetic void <init> (com.squareup.okhttp.URLConnectionTest$1)
com.squareup.okhttp.URLConnectionTest$1 x0
}
com/squareup/okhttp/URLConnectionTest$ProxyConfig$1.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig$1 extends com.squareup.okhttp.URLConnectionTest$ProxyConfig {
void <init> (java.lang.String, int)
public java.net.HttpURLConnection connect (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.OkUrlFactory, java.net.URL) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
com.squareup.okhttp.OkUrlFactory streamHandlerFactory
java.net.URL url
}
com/squareup/okhttp/URLConnectionTest$ProxyConfig$2.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig$2 extends com.squareup.okhttp.URLConnectionTest$ProxyConfig {
void <init> (java.lang.String, int)
public java.net.HttpURLConnection connect (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.OkUrlFactory, java.net.URL) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
com.squareup.okhttp.OkUrlFactory streamHandlerFactory
java.net.URL url
}
com/squareup/okhttp/URLConnectionTest$ProxyConfig$3.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig$3 extends com.squareup.okhttp.URLConnectionTest$ProxyConfig {
void <init> (java.lang.String, int)
public java.net.HttpURLConnection connect (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.OkUrlFactory, java.net.URL) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
com.squareup.okhttp.OkUrlFactory streamHandlerFactory
java.net.URL url
}
com/squareup/okhttp/URLConnectionTest$ProxyConfig$4.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig$4 extends com.squareup.okhttp.URLConnectionTest$ProxyConfig {
void <init> (java.lang.String, int)
public java.net.HttpURLConnection connect (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.OkUrlFactory, java.net.URL) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
com.squareup.okhttp.OkUrlFactory streamHandlerFactory
java.net.URL url
}
com/squareup/okhttp/URLConnectionTest$ProxyConfig$5.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig$5 extends com.squareup.okhttp.URLConnectionTest$ProxyConfig {
void <init> (java.lang.String, int)
public java.net.HttpURLConnection connect (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.OkUrlFactory, java.net.URL) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
com.squareup.okhttp.OkUrlFactory streamHandlerFactory
java.net.URL url
}
com/squareup/okhttp/URLConnectionTest$ProxyConfig.class
URLConnectionTest.java
package com.squareup.okhttp
abstract enum com.squareup.okhttp.URLConnectionTest$ProxyConfig extends java.lang.Enum {
public static final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig NO_PROXY
public static final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig CREATE_ARG
public static final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig PROXY_SYSTEM_PROPERTY
public static final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig HTTP_PROXY_SYSTEM_PROPERTY
public static final enum com.squareup.okhttp.URLConnectionTest$ProxyConfig HTTPS_PROXY_SYSTEM_PROPERTY
private static final synthetic com.squareup.okhttp.URLConnectionTest$ProxyConfig[] $VALUES
public static com.squareup.okhttp.URLConnectionTest$ProxyConfig[] values ()
public static com.squareup.okhttp.URLConnectionTest$ProxyConfig valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
public abstract java.net.HttpURLConnection connect (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.OkUrlFactory, java.net.URL) throws java.io.IOException
private static synthetic com.squareup.okhttp.URLConnectionTest$ProxyConfig[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.URLConnectionTest$1)
String x0
int x1
com.squareup.okhttp.URLConnectionTest$1 x2
static void <clinit> ()
}
com/squareup/okhttp/URLConnectionTest$RecordingTrustManager.class
URLConnectionTest.java
package com.squareup.okhttp
com.squareup.okhttp.URLConnectionTest$RecordingTrustManager extends java.lang.Object implements javax.net.ssl.X509TrustManager {
private final java.util.List calls
private final javax.net.ssl.X509TrustManager delegate
public void <init> (javax.net.ssl.SSLContext)
javax.net.ssl.SSLContext sslContext
public java.security.cert.X509Certificate[] getAcceptedIssuers ()
public void checkClientTrusted (java.security.cert.X509Certificate[], java.lang.String) throws java.security.cert.CertificateException
java.security.cert.X509Certificate[] chain
String authType
public void checkServerTrusted (java.security.cert.X509Certificate[], java.lang.String) throws java.security.cert.CertificateException
java.security.cert.X509Certificate[] chain
String authType
private java.lang.String certificatesToString (java.security.cert.X509Certificate[])
java.security.cert.X509Certificate certificate
java.security.cert.X509Certificate[] certificates
java.util.List result
static synthetic java.util.List access$100 (com.squareup.okhttp.URLConnectionTest$RecordingTrustManager)
com.squareup.okhttp.URLConnectionTest$RecordingTrustManager x0
}
com/squareup/okhttp/URLConnectionTest$StreamingMode.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$StreamingMode extends java.lang.Enum {
public static final enum com.squareup.okhttp.URLConnectionTest$StreamingMode FIXED_LENGTH
public static final enum com.squareup.okhttp.URLConnectionTest$StreamingMode CHUNKED
private static final synthetic com.squareup.okhttp.URLConnectionTest$StreamingMode[] $VALUES
public static com.squareup.okhttp.URLConnectionTest$StreamingMode[] values ()
public static com.squareup.okhttp.URLConnectionTest$StreamingMode valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
private static synthetic com.squareup.okhttp.URLConnectionTest$StreamingMode[] $values ()
static void <clinit> ()
}
com/squareup/okhttp/URLConnectionTest$TransferKind$1.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$TransferKind$1 extends com.squareup.okhttp.URLConnectionTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
void setForRequest (java.net.HttpURLConnection, int)
java.net.HttpURLConnection connection
int contentLength
}
com/squareup/okhttp/URLConnectionTest$TransferKind$2.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$TransferKind$2 extends com.squareup.okhttp.URLConnectionTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
void setForRequest (java.net.HttpURLConnection, int)
java.net.HttpURLConnection connection
int contentLength
}
com/squareup/okhttp/URLConnectionTest$TransferKind$3.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$TransferKind$3 extends com.squareup.okhttp.URLConnectionTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
void setForRequest (java.net.HttpURLConnection, int)
java.net.HttpURLConnection connection
int contentLength
}
com/squareup/okhttp/URLConnectionTest$TransferKind.class
URLConnectionTest.java
package com.squareup.okhttp
abstract enum com.squareup.okhttp.URLConnectionTest$TransferKind extends java.lang.Enum {
public static final enum com.squareup.okhttp.URLConnectionTest$TransferKind CHUNKED
public static final enum com.squareup.okhttp.URLConnectionTest$TransferKind FIXED_LENGTH
public static final enum com.squareup.okhttp.URLConnectionTest$TransferKind END_OF_STREAM
private static final synthetic com.squareup.okhttp.URLConnectionTest$TransferKind[] $VALUES
public static com.squareup.okhttp.URLConnectionTest$TransferKind[] values ()
public static com.squareup.okhttp.URLConnectionTest$TransferKind valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
abstract void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
abstract void setForRequest (java.net.HttpURLConnection, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
String content
int chunkSize
private static synthetic com.squareup.okhttp.URLConnectionTest$TransferKind[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.URLConnectionTest$1)
String x0
int x1
com.squareup.okhttp.URLConnectionTest$1 x2
static void <clinit> ()
}
com/squareup/okhttp/URLConnectionTest$WriteKind.class
URLConnectionTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.URLConnectionTest$WriteKind extends java.lang.Enum {
public static final enum com.squareup.okhttp.URLConnectionTest$WriteKind BYTE_BY_BYTE
public static final enum com.squareup.okhttp.URLConnectionTest$WriteKind SMALL_BUFFERS
public static final enum com.squareup.okhttp.URLConnectionTest$WriteKind LARGE_BUFFERS
private static final synthetic com.squareup.okhttp.URLConnectionTest$WriteKind[] $VALUES
public static com.squareup.okhttp.URLConnectionTest$WriteKind[] values ()
public static com.squareup.okhttp.URLConnectionTest$WriteKind valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
private static synthetic com.squareup.okhttp.URLConnectionTest$WriteKind[] $values ()
static void <clinit> ()
}
com/squareup/okhttp/URLConnectionTest.class
URLConnectionTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.URLConnectionTest extends java.lang.Object {
public final com.squareup.okhttp.mockwebserver.MockWebServer server
public final com.squareup.okhttp.mockwebserver.MockWebServer server2
public final org.junit.rules.TemporaryFolder tempDir
private static final com.squareup.okhttp.ConnectionSpec TLS_SPEC_1_3
private static final com.squareup.okhttp.ConnectionSpec TLS_SPEC_1_2
private static final java.util.List TLS_SPEC_NO_V1
private javax.net.ssl.SSLContext sslContext
private com.squareup.okhttp.OkUrlFactory client
private java.net.HttpURLConnection connection
private com.squareup.okhttp.Cache cache
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void requestHeaders () throws java.io.IOException java.lang.InterruptedException
java.util.Map requestHeaders
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void getRequestPropertyReturnsLastValue () throws java.lang.Exception
public void responseHeaders () throws java.io.IOException java.lang.InterruptedException
java.util.Map responseHeaders
public void serverSendsInvalidResponseHeaders () throws java.lang.Exception
public void serverSendsInvalidCodeTooLarge () throws java.lang.Exception
public void serverSendsInvalidCodeNotANumber () throws java.lang.Exception
public void serverSendsUnnecessaryWhitespace () throws java.lang.Exception
public void connectRetriesUntilConnectedOrFailed () throws java.lang.Exception
java.net.URL url
public void requestBodySurvivesRetriesWithFixedLength () throws java.lang.Exception
public void requestBodySurvivesRetriesWithChunkedStreaming () throws java.lang.Exception
public void requestBodySurvivesRetriesWithBufferedBody () throws java.lang.Exception
private void testRequestBodySurvivesRetries (com.squareup.okhttp.URLConnectionTest$TransferKind) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
com.squareup.okhttp.URLConnectionTest$FakeProxySelector proxySelector
public void getErrorStreamOnSuccessfulRequest () throws java.lang.Exception
public void getErrorStreamOnUnsuccessfulRequest () throws java.lang.Exception
public void bug2939 () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.HttpURLConnection c1
java.net.HttpURLConnection c2
public void bug10100 () throws java.lang.Exception
public void connectionsArePooled () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
public void chunkedConnectionsArePooled () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
public void serverClosesSocket () throws java.lang.Exception
public void serverShutdownInput () throws java.lang.Exception
public void serverShutdownOutput () throws java.lang.Exception
public void invalidHost () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection connection
private void testServerClosesOutput (com.squareup.okhttp.mockwebserver.SocketPolicy) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.SocketPolicy socketPolicy
com.squareup.okhttp.mockwebserver.SocketShutdownListener shutdownListener
com.squareup.okhttp.mockwebserver.MockResponse responseAfter
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
com.squareup.okhttp.mockwebserver.RecordedRequest requestAfter
public void chunkedUpload_byteByByte () throws java.lang.Exception
public void chunkedUpload_smallBuffers () throws java.lang.Exception
public void chunkedUpload_largeBuffers () throws java.lang.Exception
public void fixedLengthUpload_byteByByte () throws java.lang.Exception
public void fixedLengthUpload_smallBuffers () throws java.lang.Exception
public void fixedLengthUpload_largeBuffers () throws java.lang.Exception
private void doUpload (com.squareup.okhttp.URLConnectionTest$TransferKind, com.squareup.okhttp.URLConnectionTest$WriteKind) throws java.lang.Exception
int i
int i
byte[] buf
com.squareup.okhttp.URLConnectionTest$TransferKind uploadKind
com.squareup.okhttp.URLConnectionTest$WriteKind writeKind
int n
java.net.HttpURLConnection conn
java.io.OutputStream out
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void getResponseCodeNoResponseBody () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection conn
public void connectViaHttps () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void inspectHandshakeThroughoutRequestLifecycle () throws java.lang.Exception
javax.net.ssl.HttpsURLConnection httpsConnection
public void connectViaHttpsReusingConnections () throws java.io.IOException java.lang.InterruptedException
javax.net.ssl.SSLSocketFactory clientSocketFactory
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
public void connectViaHttpsReusingConnectionsDifferentFactories () throws java.io.IOException java.lang.InterruptedException
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void connectViaHttpsWithSSLFallback () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void connectViaHttpsWithSSLFallbackFailuresRecorded () throws java.lang.Exception
java.io.IOException expected
public void sslFallbackNotUsedWhenRecycledConnectionFails () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.SocketShutdownListener shutdownListener
java.util.Set tlsVersions
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
public void connectViaHttpsToUntrustedServer () throws java.io.IOException java.lang.InterruptedException
javax.net.ssl.SSLHandshakeException expected
public void connectViaProxyUsingProxyArg () throws java.lang.Exception
public void connectViaProxyUsingProxySystemProperty () throws java.lang.Exception
public void connectViaProxyUsingHttpProxySystemProperty () throws java.lang.Exception
private void testConnectViaProxy (com.squareup.okhttp.URLConnectionTest$ProxyConfig) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$ProxyConfig proxyConfig
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void contentDisagreesWithContentLengthHeaderBodyTooLong () throws java.io.IOException
public void contentDisagreesWithContentLengthHeaderBodyTooShort () throws java.io.IOException
public void testConnectViaSocketFactory (boolean) throws java.io.IOException
boolean useHttps
javax.net.SocketFactory uselessSocketFactory
public void connectHttpViaSocketFactory () throws java.lang.Exception
public void connectHttpsViaSocketFactory () throws java.lang.Exception
public void contentDisagreesWithChunkedHeaderBodyTooLong () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
okio.Buffer buffer
public void contentDisagreesWithChunkedHeaderBodyTooShort () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
okio.Buffer truncatedBody
okio.Buffer fullBody
public void connectViaHttpProxyToHttpsUsingProxyArgWithNoProxy () throws java.lang.Exception
public void connectViaHttpProxyToHttpsUsingHttpProxySystemProperty () throws java.lang.Exception
private void testConnectViaDirectProxyToHttps (com.squareup.okhttp.URLConnectionTest$ProxyConfig) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$ProxyConfig proxyConfig
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void connectViaHttpProxyToHttpsUsingProxyArg () throws java.lang.Exception
public void connectViaHttpProxyToHttpsUsingProxySystemProperty () throws java.lang.Exception
public void connectViaHttpProxyToHttpsUsingHttpsProxySystemProperty () throws java.lang.Exception
private void testConnectViaHttpProxyToHttps (com.squareup.okhttp.URLConnectionTest$ProxyConfig) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$ProxyConfig proxyConfig
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest connect
com.squareup.okhttp.mockwebserver.RecordedRequest get
public void connectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse badProxyResponse
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest connect
private void initResponseCache () throws java.io.IOException
public void proxyConnectIncludesProxyHeadersOnly () throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest connect
com.squareup.okhttp.mockwebserver.RecordedRequest get
public void proxyAuthenticateOnConnect () throws java.lang.Exception
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest connect1
com.squareup.okhttp.mockwebserver.RecordedRequest connect2
com.squareup.okhttp.mockwebserver.RecordedRequest get
public void proxyWithConnectionClose () throws java.io.IOException
java.net.URL url
public void proxyWithConnectionReuse () throws java.io.IOException
javax.net.ssl.SSLSocketFactory socketFactory
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
java.net.URL url
public void disconnectedConnection () throws java.io.IOException
java.io.InputStream in
public void disconnectBeforeConnect () throws java.io.IOException
public void defaultRequestProperty () throws java.lang.Exception
private java.lang.String readAscii (java.io.InputStream, int) throws java.io.IOException
int value
int i
java.io.InputStream in
int count
StringBuilder result
public void markAndResetWithContentLengthHeader () throws java.io.IOException
public void markAndResetWithChunkedEncoding () throws java.io.IOException
public void markAndResetWithNoLengthHeaders () throws java.io.IOException
private void testMarkAndReset (com.squareup.okhttp.URLConnectionTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response
java.io.InputStream in
public void unauthorizedResponseHandling () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL url
java.net.HttpURLConnection conn
public void nonHexChunkSize () throws java.io.IOException
java.net.URLConnection connection
public void malformedChunkSize () throws java.io.IOException
java.net.URLConnection connection
public void extensionAfterChunkSize () throws java.io.IOException
java.net.HttpURLConnection connection
public void missingChunkBody () throws java.io.IOException
java.net.URLConnection connection
public void gzipEncodingEnabledByDefault () throws java.io.IOException java.lang.InterruptedException
java.net.URLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void clientConfiguredGzipContentEncoding () throws java.lang.Exception
okio.Buffer bodyBytes
java.net.URLConnection connection
java.io.InputStream gunzippedIn
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void gzipAndConnectionReuseWithFixedLength () throws java.lang.Exception
public void gzipAndConnectionReuseWithChunkedEncoding () throws java.lang.Exception
public void gzipAndConnectionReuseWithFixedLengthAndTls () throws java.lang.Exception
public void gzipAndConnectionReuseWithChunkedEncodingAndTls () throws java.lang.Exception
public void clientConfiguredCustomContentEncoding () throws java.lang.Exception
java.net.URLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest request
private void testClientConfiguredGzipContentEncodingAndConnectionReuse (com.squareup.okhttp.URLConnectionTest$TransferKind, boolean) throws java.lang.Exception
javax.net.ssl.SSLSocketFactory socketFactory
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
boolean tls
com.squareup.okhttp.mockwebserver.MockResponse responseOne
com.squareup.okhttp.mockwebserver.MockResponse responseTwo
java.net.HttpURLConnection connection1
java.io.InputStream gunzippedIn
java.net.HttpURLConnection connection2
public void transparentGzipWorksAfterExceptionRecovery () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.SocketShutdownListener shutdownListener
public void endOfStreamResponseIsNotPooled () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
java.net.HttpURLConnection connection
public void earlyDisconnectDoesntHarmPoolingWithChunkedEncoding () throws java.lang.Exception
public void earlyDisconnectDoesntHarmPoolingWithFixedLengthEncoding () throws java.lang.Exception
private void testEarlyDisconnectDoesntHarmPooling (com.squareup.okhttp.URLConnectionTest$TransferKind) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response1
com.squareup.okhttp.mockwebserver.MockResponse response2
java.net.HttpURLConnection connection1
java.io.InputStream in1
java.net.HttpURLConnection connection2
java.io.InputStream in2
public void streamDiscardingIsTimely () throws java.lang.Exception
long startNanos
java.net.URLConnection connection1
java.io.InputStream in
long elapsedNanos
long elapsedMillis
public void setChunkedStreamingMode () throws java.io.IOException java.lang.InterruptedException
String body
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void authenticateWithFixedLengthStreaming () throws java.lang.Exception
public void authenticateWithChunkedStreaming () throws java.lang.Exception
private void testAuthenticateWithStreamingPost (com.squareup.okhttp.URLConnectionTest$StreamingMode) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$StreamingMode streamingMode
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
byte[] requestBody
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void postBodyRetransmittedAfterAuthorizationFail () throws java.lang.Exception
public void postBodyRetransmittedAfterAuthorizationFail_SPDY_3 () throws java.lang.Exception
public void postBodyRetransmittedAfterAuthorizationFail_HTTP_2 () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail_SPDY_3 () throws java.lang.Exception
public void postEmptyBodyRetransmittedAfterAuthorizationFail_HTTP_2 () throws java.lang.Exception
private void postBodyRetransmittedAfterAuthorizationFail (java.lang.String) throws java.lang.Exception
String body
String credential
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest1
com.squareup.okhttp.mockwebserver.RecordedRequest recordedRequest2
public void nonStandardAuthenticationScheme () throws java.lang.Exception
java.util.List calls
public void nonStandardAuthenticationSchemeWithRealm () throws java.lang.Exception
java.util.List calls
public void digestAuthentication () throws java.lang.Exception
java.util.List calls
public void allAttributesSetInServerAuthenticationCallbacks () throws java.lang.Exception
java.util.List calls
java.net.URL url
String call
public void allAttributesSetInProxyAuthenticationCallbacks () throws java.lang.Exception
java.util.List calls
java.net.URL url
String call
private java.util.List authCallsForHeader (java.lang.String) throws java.io.IOException
String authHeader
boolean proxy
int responseCode
com.squareup.okhttp.internal.RecordingAuthenticator authenticator
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
public void setValidRequestMethod () throws java.lang.Exception
private void assertValidRequestMethod (java.lang.String) throws java.lang.Exception
String requestMethod
public void setInvalidRequestMethodLowercase () throws java.lang.Exception
public void setInvalidRequestMethodConnect () throws java.lang.Exception
private void assertInvalidRequestMethod (java.lang.String) throws java.lang.Exception
String requestMethod
public void shoutcast () throws java.lang.Exception
public void cannotSetNegativeFixedLengthStreamingMode () throws java.lang.Exception
public void canSetNegativeChunkedStreamingMode () throws java.lang.Exception
public void cannotSetFixedLengthStreamingModeAfterConnect () throws java.lang.Exception
public void cannotSetChunkedStreamingModeAfterConnect () throws java.lang.Exception
public void cannotSetFixedLengthStreamingModeAfterChunkedStreamingMode () throws java.lang.Exception
public void cannotSetChunkedStreamingModeAfterFixedLengthStreamingMode () throws java.lang.Exception
public void secureFixedLengthStreaming () throws java.lang.Exception
public void secureChunkedStreaming () throws java.lang.Exception
private void testSecureStreamingPost (com.squareup.okhttp.URLConnectionTest$StreamingMode) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$StreamingMode streamingMode
byte[] requestBody
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void authenticateWithPost () throws java.lang.Exception
int i
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
byte[] requestBody
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void authenticateWithGet () throws java.lang.Exception
int i
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void authenticateWithGetAndTransparentGzip () throws java.lang.Exception
int i
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
com.squareup.okhttp.mockwebserver.MockResponse successfulResponse
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void authenticateRealmUppercase () throws java.lang.Exception
public void redirectedWithChunkedEncoding () throws java.lang.Exception
public void redirectedWithContentLengthHeader () throws java.lang.Exception
public void redirectedWithNoLengthHeaders () throws java.lang.Exception
private void testRedirected (com.squareup.okhttp.URLConnectionTest$TransferKind, boolean) throws java.lang.Exception
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
boolean reuse
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest first
com.squareup.okhttp.mockwebserver.RecordedRequest retry
public void redirectedOnHttps () throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.RecordedRequest first
com.squareup.okhttp.mockwebserver.RecordedRequest retry
public void notRedirectedFromHttpsToHttp () throws java.io.IOException java.lang.InterruptedException
public void notRedirectedFromHttpToHttps () throws java.io.IOException java.lang.InterruptedException
public void redirectedFromHttpsToHttpFollowingProtocolRedirects () throws java.lang.Exception
javax.net.ssl.HttpsURLConnection connection
public void redirectedFromHttpToHttpsFollowingProtocolRedirects () throws java.lang.Exception
public void redirectToAnotherOriginServer () throws java.lang.Exception
public void redirectToAnotherOriginServerWithHttps () throws java.lang.Exception
private void redirectToAnotherOriginServer (boolean) throws java.lang.Exception
boolean https
String server1Host
String server2Host
public void redirectWithProxySelector () throws java.lang.Exception
java.util.List proxySelectionRequests
public void redirectWithAuthentication () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest redirectRequest
public void response300MultipleChoiceWithPost () throws java.lang.Exception
public void response301MovedPermanentlyWithPost () throws java.lang.Exception
public void response302MovedTemporarilyWithPost () throws java.lang.Exception
public void response303SeeOtherWithPost () throws java.lang.Exception
public void postRedirectToGetWithChunkedRequest () throws java.lang.Exception
public void postRedirectToGetWithStreamedRequest () throws java.lang.Exception
private void testResponseRedirectedWithPost (int, com.squareup.okhttp.URLConnectionTest$TransferKind) throws java.lang.Exception
int redirectCode
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
byte[] requestBody
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest page1
com.squareup.okhttp.mockwebserver.RecordedRequest page2
public void redirectedPostStripsRequestBodyHeaders () throws java.lang.Exception
java.io.OutputStream outputStream
com.squareup.okhttp.mockwebserver.RecordedRequest page2
public void response305UseProxy () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest page1
public void response307WithGet () throws java.lang.Exception
public void response307WithHead () throws java.lang.Exception
public void response307WithOptions () throws java.lang.Exception
public void response307WithPost () throws java.lang.Exception
public void response308WithGet () throws java.lang.Exception
public void response308WithHead () throws java.lang.Exception
public void response308WithOptions () throws java.lang.Exception
public void response308WithPost () throws java.lang.Exception
private void testRedirect (boolean, java.lang.String) throws java.lang.Exception
java.io.OutputStream outputStream
boolean temporary
String method
com.squareup.okhttp.mockwebserver.MockResponse response1
byte[] requestBody
String response
com.squareup.okhttp.mockwebserver.RecordedRequest page1
com.squareup.okhttp.mockwebserver.RecordedRequest page2
public void follow20Redirects () throws java.lang.Exception
int i
public void doesNotFollow21Redirects () throws java.lang.Exception
int i
java.net.ProtocolException expected
public void httpsWithCustomTrustManager () throws java.lang.Exception
com.squareup.okhttp.testing.RecordingHostnameVerifier hostnameVerifier
com.squareup.okhttp.URLConnectionTest$RecordingTrustManager trustManager
javax.net.ssl.SSLContext sc
java.net.URL url
public void readTimeouts () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse timeout
java.net.URLConnection connection
java.io.InputStream in
public void writeTimeouts () throws java.io.IOException
byte[] data
com.squareup.okhttp.mockwebserver.MockWebServer server
int SOCKET_BUFFER_SIZE
java.io.OutputStream out
public void setChunkedEncodingAsRequestProperty () throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void connectionCloseInRequest () throws java.io.IOException java.lang.InterruptedException
java.net.HttpURLConnection a
java.net.HttpURLConnection b
public void connectionCloseInResponse () throws java.io.IOException java.lang.InterruptedException
java.net.HttpURLConnection a
java.net.HttpURLConnection b
public void connectionCloseWithRedirect () throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URLConnection connection
public void sameConnectionRedirectAndReuse () throws java.lang.Exception
public void responseCodeDisagreesWithHeaders () throws java.io.IOException java.lang.InterruptedException
java.net.URLConnection connection
public void singleByteReadIsSigned () throws java.io.IOException
java.io.InputStream in
public void flushAfterStreamTransmittedWithChunkedEncoding () throws java.io.IOException
public void flushAfterStreamTransmittedWithFixedLength () throws java.io.IOException
public void flushAfterStreamTransmittedWithNoLengthHeaders () throws java.io.IOException
private void testFlushAfterStreamTransmitted (com.squareup.okhttp.URLConnectionTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
byte[] upload
java.io.OutputStream out
public void getHeadersThrows () throws java.io.IOException
public void dnsFailureThrowsIOException () throws java.io.IOException
public void malformedUrlThrowsUnknownHostException () throws java.io.IOException
public void getKeepAlive () throws java.lang.Exception
java.net.HttpURLConnection connection2
java.net.HttpURLConnection connection1
java.io.InputStream input
public void readAfterLastByte () throws java.lang.Exception
java.io.InputStream in
public void getContent () throws java.lang.Exception
java.io.InputStream in
public void getContentOfType () throws java.lang.Exception
public void getOutputStreamOnGetFails () throws java.lang.Exception
public void getOutputAfterGetInputStreamFails () throws java.lang.Exception
public void setDoOutputOrDoInputAfterConnectFails () throws java.lang.Exception
public void clientSendsContentLength () throws java.lang.Exception
java.io.OutputStream out
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void getContentLengthConnects () throws java.lang.Exception
public void getContentTypeConnects () throws java.lang.Exception
public void getContentEncodingConnects () throws java.lang.Exception
public void urlContainsQueryButNoPath () throws java.lang.Exception
java.net.URL url
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void doOutputForMethodThatDoesntSupportOutput () throws java.lang.Exception
public void inputStreamAvailableWithChunkedEncoding () throws java.lang.Exception
public void inputStreamAvailableWithContentLengthHeader () throws java.lang.Exception
public void inputStreamAvailableWithNoLengthHeaders () throws java.lang.Exception
private void testInputStreamAvailable (com.squareup.okhttp.URLConnectionTest$TransferKind) throws java.io.IOException
int i
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
String body
com.squareup.okhttp.mockwebserver.MockResponse response
java.io.InputStream in
public void postFailsWithBufferedRequestForSmallRequest () throws java.lang.Exception
public void postFailsWithBufferedRequestForLargeRequest () throws java.lang.Exception
public void postFailsWithChunkedRequestForSmallRequest () throws java.lang.Exception
public void postFailsWithChunkedRequestForLargeRequest () throws java.lang.Exception
public void postFailsWithFixedLengthRequestForSmallRequest () throws java.lang.Exception
public void postFailsWithFixedLengthRequestForLargeRequest () throws java.lang.Exception
private void reusedConnectionFailsWithPost (com.squareup.okhttp.URLConnectionTest$TransferKind, int) throws java.lang.Exception
int i
java.io.IOException socketException
int j
com.squareup.okhttp.URLConnectionTest$TransferKind transferKind
int requestSize
com.squareup.okhttp.mockwebserver.SocketShutdownListener shutdownListener
byte[] requestBody
com.squareup.okhttp.mockwebserver.RecordedRequest requestA
com.squareup.okhttp.mockwebserver.RecordedRequest requestB
public void postBodyRetransmittedOnFailureRecovery () throws java.lang.Exception
java.net.HttpURLConnection post
com.squareup.okhttp.mockwebserver.RecordedRequest get
com.squareup.okhttp.mockwebserver.RecordedRequest post1
com.squareup.okhttp.mockwebserver.RecordedRequest post2
public void fullyBufferedPostIsTooShort () throws java.lang.Exception
java.io.OutputStream out
public void fullyBufferedPostIsTooLong () throws java.lang.Exception
java.io.OutputStream out
public void testPooledConnectionsDetectHttp10 ()
public void postBodiesRetransmittedOnAuthProblems ()
public void cookiesAndTrailers ()
public void headerNamesContainingNullCharacter ()
public void headerValuesContainingNullCharacter ()
public void emptyRequestHeaderValueIsAllowed () throws java.lang.Exception
public void emptyResponseHeaderValueIsAllowed () throws java.lang.Exception
public void emptyRequestHeaderNameIsStrict () throws java.lang.Exception
public void emptyResponseHeaderNameIsLenient () throws java.lang.Exception
com.squareup.okhttp.Headers$Builder headers
public void requestHeaderValidationIsStrict () throws java.lang.Exception
public void responseHeaderParsingIsLenient () throws java.lang.Exception
com.squareup.okhttp.Headers headers
public void deflateCompression ()
public void postBodiesRetransmittedOnIpAddressProblems ()
public void pooledConnectionProblemsNotReportedToProxySelector ()
public void customBasicAuthenticator () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
String credential
com.squareup.okhttp.internal.RecordingOkAuthenticator authenticator
com.squareup.okhttp.Response response
public void customTokenAuthenticator () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse pleaseAuthenticate
com.squareup.okhttp.internal.RecordingOkAuthenticator authenticator
com.squareup.okhttp.Response response
public void authenticateCallsTrackedAsRedirects () throws java.lang.Exception
com.squareup.okhttp.internal.RecordingOkAuthenticator authenticator
com.squareup.okhttp.Response challengeResponse
com.squareup.okhttp.Response redirectedBy
public void attemptAuthorization20Times () throws java.lang.Exception
int i
String credential
public void doesNotAttemptAuthorization21Times () throws java.lang.Exception
int i
java.net.ProtocolException expected
String credential
public void setsNegotiatedProtocolHeader_SPDY_3 () throws java.lang.Exception
public void setsNegotiatedProtocolHeader_HTTP_2 () throws java.lang.Exception
private void setsNegotiatedProtocolHeader (com.squareup.okhttp.Protocol) throws java.io.IOException
com.squareup.okhttp.Protocol protocol
java.util.List protocolValues
public void http10SelectedProtocol () throws java.lang.Exception
java.util.List protocolValues
public void http11SelectedProtocol () throws java.lang.Exception
java.util.List protocolValues
public void zeroLengthPost () throws java.io.IOException java.lang.InterruptedException
public void zeroLengthPost_SPDY_3 () throws java.lang.Exception
public void zeroLengthPost_HTTP_2 () throws java.lang.Exception
public void zeroLengthPut () throws java.io.IOException java.lang.InterruptedException
public void zeroLengthPut_SPDY_3 () throws java.lang.Exception
public void zeroLengthPut_HTTP_2 () throws java.lang.Exception
private void zeroLengthPayload (java.lang.String) throws java.io.IOException java.lang.InterruptedException
String method
com.squareup.okhttp.mockwebserver.RecordedRequest zeroLengthPayload
public void unspecifiedRequestBodyContentTypeGetsDefault () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void setProtocols () throws java.lang.Exception
public void setProtocolsWithoutHttp11 () throws java.lang.Exception
public void setProtocolsWithNull () throws java.lang.Exception
public void veryLargeFixedLengthRequest () throws java.lang.Exception
int byteCount
long bytesWritten
long contentLength
java.io.OutputStream out
byte[] buffer
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void noTransparentGzipFor304NotModified () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
com.squareup.okhttp.mockwebserver.RecordedRequest requestA
com.squareup.okhttp.mockwebserver.RecordedRequest requestB
public void gzipWithRedirectAndConnectionReuse () throws java.lang.Exception
java.net.HttpURLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest requestA
com.squareup.okhttp.mockwebserver.RecordedRequest requestB
public void bodyPermittedOnDelete () throws java.lang.Exception
java.net.HttpURLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void userAgentPicksUpHttpAgentSystemProperty () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void userAgentSystemPropertyIsNotAscii () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void userAgentDefaultsToOkHttpVersion () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void interceptorsNotInvoked () throws java.lang.Exception
com.squareup.okhttp.Interceptor interceptor
public void urlWithSpaceInHost () throws java.lang.Exception
java.net.URLConnection urlConnection
public void urlWithSpaceInHostViaHttpProxy () throws java.lang.Exception
java.net.URLConnection urlConnection
public void urlHostWithNul () throws java.lang.Exception
java.net.URLConnection urlConnection
public void urlRedirectToHostWithNul () throws java.lang.Exception
String redirectUrl
java.net.HttpURLConnection urlConnection
public void urlWithBadAsciiHost () throws java.lang.Exception
java.net.URLConnection urlConnection
public void instanceFollowsRedirects () throws java.lang.Exception
private void testInstanceFollowsRedirects (java.lang.String) throws java.lang.Exception
String spec
java.net.URL url
java.net.HttpURLConnection urlConnection
public okio.Buffer gzip (java.lang.String) throws java.io.IOException
String data
okio.Buffer result
okio.BufferedSink gzipSink
private void assertContent (java.lang.String, java.net.HttpURLConnection, int) throws java.io.IOException
String expected
java.net.HttpURLConnection connection
int limit
private void assertContent (java.lang.String, java.net.HttpURLConnection) throws java.io.IOException
String expected
java.net.HttpURLConnection connection
private transient java.util.Set newSet (java.lang.String[])
String[] elements
private void enableProtocol (com.squareup.okhttp.Protocol)
com.squareup.okhttp.Protocol protocol
private void suppressTlsFallbackScsv (com.squareup.okhttp.OkHttpClient)
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.FallbackTestClientSocketFactory clientSocketFactory
static void <clinit> ()
}
com/squareup/okhttp/UrlComponentEncodingTester$1.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
synthetic com.squareup.okhttp.UrlComponentEncodingTester$1 extends java.lang.Object {
}
com/squareup/okhttp/UrlComponentEncodingTester$Component$1.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Component$1 extends com.squareup.okhttp.UrlComponentEncodingTester$Component {
void <init> (java.lang.String, int)
public java.lang.String urlString (java.lang.String)
String value
public java.lang.String encodedValue (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
public void set (com.squareup.okhttp.HttpUrl$Builder, java.lang.String)
com.squareup.okhttp.HttpUrl$Builder builder
String value
public java.lang.String get (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
}
com/squareup/okhttp/UrlComponentEncodingTester$Component$2.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Component$2 extends com.squareup.okhttp.UrlComponentEncodingTester$Component {
void <init> (java.lang.String, int)
public java.lang.String urlString (java.lang.String)
String value
public java.lang.String encodedValue (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
public void set (com.squareup.okhttp.HttpUrl$Builder, java.lang.String)
com.squareup.okhttp.HttpUrl$Builder builder
String value
public java.lang.String get (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
}
com/squareup/okhttp/UrlComponentEncodingTester$Component$3.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Component$3 extends com.squareup.okhttp.UrlComponentEncodingTester$Component {
void <init> (java.lang.String, int)
public java.lang.String urlString (java.lang.String)
String value
public java.lang.String encodedValue (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
String path
public void set (com.squareup.okhttp.HttpUrl$Builder, java.lang.String)
com.squareup.okhttp.HttpUrl$Builder builder
String value
public java.lang.String get (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
String pathSegment
}
com/squareup/okhttp/UrlComponentEncodingTester$Component$4.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Component$4 extends com.squareup.okhttp.UrlComponentEncodingTester$Component {
void <init> (java.lang.String, int)
public java.lang.String urlString (java.lang.String)
String value
public java.lang.String encodedValue (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
String query
public void set (com.squareup.okhttp.HttpUrl$Builder, java.lang.String)
com.squareup.okhttp.HttpUrl$Builder builder
String value
public java.lang.String get (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
String query
}
com/squareup/okhttp/UrlComponentEncodingTester$Component$5.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Component$5 extends com.squareup.okhttp.UrlComponentEncodingTester$Component {
void <init> (java.lang.String, int)
public java.lang.String urlString (java.lang.String)
String value
public java.lang.String encodedValue (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
String fragment
public void set (com.squareup.okhttp.HttpUrl$Builder, java.lang.String)
com.squareup.okhttp.HttpUrl$Builder builder
String value
public java.lang.String get (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
String fragment
}
com/squareup/okhttp/UrlComponentEncodingTester$Component.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
public abstract enum com.squareup.okhttp.UrlComponentEncodingTester$Component extends java.lang.Enum {
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Component USER
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Component PASSWORD
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Component PATH
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Component QUERY
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Component FRAGMENT
private static final synthetic com.squareup.okhttp.UrlComponentEncodingTester$Component[] $VALUES
public static com.squareup.okhttp.UrlComponentEncodingTester$Component[] values ()
public static com.squareup.okhttp.UrlComponentEncodingTester$Component valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
public abstract java.lang.String urlString (java.lang.String)
public abstract java.lang.String encodedValue (com.squareup.okhttp.HttpUrl)
public abstract void set (com.squareup.okhttp.HttpUrl$Builder, java.lang.String)
public abstract java.lang.String get (com.squareup.okhttp.HttpUrl)
private static synthetic com.squareup.okhttp.UrlComponentEncodingTester$Component[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.UrlComponentEncodingTester$1)
String x0
int x1
com.squareup.okhttp.UrlComponentEncodingTester$1 x2
static void <clinit> ()
}
com/squareup/okhttp/UrlComponentEncodingTester$Encoding$1.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Encoding$1 extends com.squareup.okhttp.UrlComponentEncodingTester$Encoding {
void <init> (java.lang.String, int)
public java.lang.String encode (int)
int codePoint
}
com/squareup/okhttp/UrlComponentEncodingTester$Encoding$2.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlComponentEncodingTester$Encoding$2 extends com.squareup.okhttp.UrlComponentEncodingTester$Encoding {
void <init> (java.lang.String, int)
public java.lang.String encode (int)
int i
int codePoint
okio.ByteString utf8
okio.Buffer percentEncoded
}
com/squareup/okhttp/UrlComponentEncodingTester$Encoding.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
public enum com.squareup.okhttp.UrlComponentEncodingTester$Encoding extends java.lang.Enum {
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Encoding IDENTITY
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Encoding PERCENT
public static final enum com.squareup.okhttp.UrlComponentEncodingTester$Encoding SKIP
private static final synthetic com.squareup.okhttp.UrlComponentEncodingTester$Encoding[] $VALUES
public static com.squareup.okhttp.UrlComponentEncodingTester$Encoding[] values ()
public static com.squareup.okhttp.UrlComponentEncodingTester$Encoding valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
public java.lang.String encode (int)
int codePoint
private static synthetic com.squareup.okhttp.UrlComponentEncodingTester$Encoding[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.UrlComponentEncodingTester$1)
String x0
int x1
com.squareup.okhttp.UrlComponentEncodingTester$1 x2
static void <clinit> ()
}
com/squareup/okhttp/UrlComponentEncodingTester.class
UrlComponentEncodingTester.java
package com.squareup.okhttp
com.squareup.okhttp.UrlComponentEncodingTester extends java.lang.Object {
private static final int UNICODE_2
private static final int UNICODE_3
private static final int UNICODE_4
private static final java.util.Map defaultEncodings
private final java.util.Map encodings
private final StringBuilder uriEscapedCodePoints
public void <init> ()
public transient com.squareup.okhttp.UrlComponentEncodingTester override (com.squareup.okhttp.UrlComponentEncodingTester$Encoding, int[])
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
int[] codePoints
public com.squareup.okhttp.UrlComponentEncodingTester identityForNonAscii ()
public transient com.squareup.okhttp.UrlComponentEncodingTester skipForUri (int[])
int[] codePoints
public com.squareup.okhttp.UrlComponentEncodingTester test (com.squareup.okhttp.UrlComponentEncodingTester$Component)
boolean uriEscaped
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
int codePoint
java.util.Map$Entry entry
com.squareup.okhttp.UrlComponentEncodingTester$Component component
private void testParseAlreadyEncoded (int, com.squareup.okhttp.UrlComponentEncodingTester$Encoding, com.squareup.okhttp.UrlComponentEncodingTester$Component)
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
com.squareup.okhttp.UrlComponentEncodingTester$Component component
String encoded
String urlString
com.squareup.okhttp.HttpUrl url
private void testEncodeAndDecode (int, com.squareup.okhttp.UrlComponentEncodingTester$Component)
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Component component
String expected
com.squareup.okhttp.HttpUrl$Builder builder
com.squareup.okhttp.HttpUrl url
String actual
private void testParseOriginal (int, com.squareup.okhttp.UrlComponentEncodingTester$Encoding, com.squareup.okhttp.UrlComponentEncodingTester$Component)
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
com.squareup.okhttp.UrlComponentEncodingTester$Component component
String encoded
String identity
String urlString
com.squareup.okhttp.HttpUrl url
String s
private void testToUrl (int, com.squareup.okhttp.UrlComponentEncodingTester$Encoding, com.squareup.okhttp.UrlComponentEncodingTester$Component)
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
com.squareup.okhttp.UrlComponentEncodingTester$Component component
String encoded
com.squareup.okhttp.HttpUrl httpUrl
java.net.URL javaNetUrl
private void testFromUrl (int, com.squareup.okhttp.UrlComponentEncodingTester$Encoding, com.squareup.okhttp.UrlComponentEncodingTester$Component)
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
com.squareup.okhttp.UrlComponentEncodingTester$Component component
String encoded
com.squareup.okhttp.HttpUrl httpUrl
com.squareup.okhttp.HttpUrl toAndFromJavaNetUrl
private void testUri (int, com.squareup.okhttp.UrlComponentEncodingTester$Encoding, com.squareup.okhttp.UrlComponentEncodingTester$Component, boolean)
int codePoint
com.squareup.okhttp.UrlComponentEncodingTester$Encoding encoding
com.squareup.okhttp.UrlComponentEncodingTester$Component component
boolean uriEscaped
String string
String encoded
com.squareup.okhttp.HttpUrl httpUrl
java.net.URI uri
com.squareup.okhttp.HttpUrl toAndFromUri
static void <clinit> ()
java.util.Map map
}
com/squareup/okhttp/UrlConnectionCacheTest$1.class
UrlConnectionCacheTest.java
package com.squareup.okhttp
com.squareup.okhttp.UrlConnectionCacheTest$1 extends java.lang.Object implements javax.net.ssl.HostnameVerifier {
void <init> ()
public boolean verify (java.lang.String, javax.net.ssl.SSLSession)
String s
javax.net.ssl.SSLSession sslSession
}
com/squareup/okhttp/UrlConnectionCacheTest$TransferKind$1.class
UrlConnectionCacheTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind$1 extends com.squareup.okhttp.UrlConnectionCacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/UrlConnectionCacheTest$TransferKind$2.class
UrlConnectionCacheTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind$2 extends com.squareup.okhttp.UrlConnectionCacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/UrlConnectionCacheTest$TransferKind$3.class
UrlConnectionCacheTest.java
package com.squareup.okhttp
final enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind$3 extends com.squareup.okhttp.UrlConnectionCacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/UrlConnectionCacheTest$TransferKind.class
UrlConnectionCacheTest.java
package com.squareup.okhttp
abstract enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind extends java.lang.Enum {
public static final enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind CHUNKED
public static final enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind FIXED_LENGTH
public static final enum com.squareup.okhttp.UrlConnectionCacheTest$TransferKind END_OF_STREAM
private static final synthetic com.squareup.okhttp.UrlConnectionCacheTest$TransferKind[] $VALUES
public static com.squareup.okhttp.UrlConnectionCacheTest$TransferKind[] values ()
public static com.squareup.okhttp.UrlConnectionCacheTest$TransferKind valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
abstract void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
String content
int chunkSize
private static synthetic com.squareup.okhttp.UrlConnectionCacheTest$TransferKind[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.UrlConnectionCacheTest$1)
String x0
int x1
com.squareup.okhttp.UrlConnectionCacheTest$1 x2
static void <clinit> ()
}
com/squareup/okhttp/UrlConnectionCacheTest.class
UrlConnectionCacheTest.java
package com.squareup.okhttp
public final com.squareup.okhttp.UrlConnectionCacheTest extends java.lang.Object {
private static final javax.net.ssl.HostnameVerifier NULL_HOSTNAME_VERIFIER
public com.squareup.okhttp.mockwebserver.MockWebServer server
public com.squareup.okhttp.mockwebserver.MockWebServer server2
public com.squareup.okhttp.internal.io.InMemoryFileSystem fileSystem
private final javax.net.ssl.SSLContext sslContext
private final com.squareup.okhttp.OkUrlFactory client
private com.squareup.okhttp.Cache cache
private final java.net.CookieManager cookieManager
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void responseCacheAccessWithOkHttpMember () throws java.io.IOException
public void responseCachingByResponseCode () throws java.lang.Exception
private void assertCached (boolean, int) throws java.lang.Exception
boolean shouldPut
int responseCode
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL url
java.net.HttpURLConnection conn
com.squareup.okhttp.Response cached
public void responseCachingAndInputStreamSkipWithFixedLength () throws java.io.IOException
public void responseCachingAndInputStreamSkipWithChunkedEncoding () throws java.io.IOException
public void responseCachingAndInputStreamSkipWithNoLengthHeaders () throws java.io.IOException
private void testResponseCaching (com.squareup.okhttp.UrlConnectionCacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.UrlConnectionCacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.HttpURLConnection urlConnection
java.io.InputStream in
public void secureResponseCaching () throws java.io.IOException
javax.net.ssl.HttpsURLConnection c1
String suite
java.util.List localCerts
java.util.List serverCerts
java.security.Principal peerPrincipal
java.security.Principal localPrincipal
javax.net.ssl.HttpsURLConnection c2
public void responseCachingAndRedirects () throws java.lang.Exception
java.net.HttpURLConnection connection
public void redirectToCachedResult () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
com.squareup.okhttp.mockwebserver.RecordedRequest request3
public void secureResponseCachingAndRedirects () throws java.io.IOException
javax.net.ssl.HttpsURLConnection connection1
javax.net.ssl.HttpsURLConnection connection2
public void secureResponseCachingAndProtocolRedirects () throws java.io.IOException
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void serverDisconnectsPrematurelyWithContentLengthHeader () throws java.io.IOException
public void serverDisconnectsPrematurelyWithChunkedEncoding () throws java.io.IOException
public void serverDisconnectsPrematurelyWithNoLengthHeaders () throws java.io.IOException
private void testServerPrematureDisconnect (com.squareup.okhttp.UrlConnectionCacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.UrlConnectionCacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response
java.io.BufferedReader reader
java.net.URLConnection connection
public void clientPrematureDisconnectWithContentLengthHeader () throws java.io.IOException
public void clientPrematureDisconnectWithChunkedEncoding () throws java.io.IOException
public void clientPrematureDisconnectWithNoLengthHeaders () throws java.io.IOException
private void testClientPrematureDisconnect (com.squareup.okhttp.UrlConnectionCacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.UrlConnectionCacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URLConnection connection
java.io.InputStream in
public void defaultExpirationDateFullyCachedForLessThan24Hours () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void defaultExpirationDateConditionallyCached () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void defaultExpirationDateFullyCachedForMoreThan24Hours () throws java.lang.Exception
java.net.URLConnection connection
public void noDefaultExpirationForUrlsWithQueryString () throws java.lang.Exception
java.net.URL url
public void expirationDateInThePastWithLastModifiedHeader () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void expirationDateInThePastWithNoLastModifiedHeader () throws java.lang.Exception
public void expirationDateInTheFuture () throws java.lang.Exception
public void maxAgePreferredWithMaxAgeAndExpires () throws java.lang.Exception
public void maxAgeInThePastWithDateAndLastModifiedHeaders () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void maxAgeInThePastWithDateHeaderButNoLastModifiedHeader () throws java.lang.Exception
public void maxAgeInTheFutureWithDateHeader () throws java.lang.Exception
public void maxAgeInTheFutureWithNoDateHeader () throws java.lang.Exception
public void maxAgeWithLastModifiedButNoServedDate () throws java.lang.Exception
public void maxAgeInTheFutureWithDateAndLastModifiedHeaders () throws java.lang.Exception
public void maxAgePreferredOverLowerSharedMaxAge () throws java.lang.Exception
public void maxAgePreferredOverHigherMaxAge () throws java.lang.Exception
public void requestMethodOptionsIsNotCached () throws java.lang.Exception
public void requestMethodGetIsCached () throws java.lang.Exception
public void requestMethodHeadIsNotCached () throws java.lang.Exception
public void requestMethodPostIsNotCached () throws java.lang.Exception
public void requestMethodPutIsNotCached () throws java.lang.Exception
public void requestMethodDeleteIsNotCached () throws java.lang.Exception
public void requestMethodTraceIsNotCached () throws java.lang.Exception
private void testRequestMethod (java.lang.String, boolean) throws java.lang.Exception
String requestMethod
boolean expectCached
java.net.URL url
java.net.HttpURLConnection request1
java.net.URLConnection request2
public void postInvalidatesCache () throws java.lang.Exception
public void putInvalidatesCache () throws java.lang.Exception
public void deleteMethodInvalidatesCache () throws java.lang.Exception
private void testMethodInvalidates (java.lang.String) throws java.lang.Exception
String requestMethod
java.net.URL url
java.net.HttpURLConnection invalidate
public void postInvalidatesCacheWithUncacheableResponse () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection invalidate
public void etag () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void etagAndExpirationDateInThePast () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void etagAndExpirationDateInTheFuture () throws java.lang.Exception
public void cacheControlNoCache () throws java.lang.Exception
public void cacheControlNoCacheAndExpirationDateInTheFuture () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void pragmaNoCache () throws java.lang.Exception
public void pragmaNoCacheAndExpirationDateInTheFuture () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void cacheControlNoStore () throws java.lang.Exception
public void cacheControlNoStoreAndExpirationDateInTheFuture () throws java.lang.Exception
public void partialRangeResponsesDoNotCorruptCache () throws java.lang.Exception
java.net.URL url
java.net.URLConnection range
public void serverReturnsDocumentOlderThanCache () throws java.lang.Exception
java.net.URL url
public void nonIdentityEncodingAndConditionalCache () throws java.lang.Exception
public void nonIdentityEncodingAndFullCache () throws java.lang.Exception
private void assertNonIdentityEncodingCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
public void notModifiedSpecifiesEncoding () throws java.lang.Exception
public void gzipAndVaryOnAcceptEncoding () throws java.lang.Exception
public void conditionalCacheHitIsNotDoublePooled () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool pool
public void expiresDateBeforeModifiedDate () throws java.lang.Exception
public void requestMaxAge () throws java.io.IOException
java.net.URLConnection connection
public void requestMinFresh () throws java.io.IOException
java.net.URLConnection connection
public void requestMaxStale () throws java.io.IOException
java.net.URLConnection connection
public void requestMaxStaleNotHonoredWithMustRevalidate () throws java.io.IOException
java.net.URLConnection connection
public void requestOnlyIfCachedWithNoResponseCached () throws java.io.IOException
java.net.HttpURLConnection connection
public void requestOnlyIfCachedWithFullResponseCached () throws java.io.IOException
java.net.URLConnection connection
public void requestOnlyIfCachedWithConditionalResponseCached () throws java.io.IOException
java.net.HttpURLConnection connection
public void requestOnlyIfCachedWithUnhelpfulResponseCached () throws java.io.IOException
java.net.HttpURLConnection connection
public void requestCacheControlNoCache () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void requestPragmaNoCache () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void clientSuppliedIfModifiedSinceWithCachedResult () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
String ifModifiedSinceDate
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void clientSuppliedIfNoneMatchSinceWithCachedResult () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.mockwebserver.RecordedRequest request
private com.squareup.okhttp.mockwebserver.RecordedRequest assertClientSuppliedCondition (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, java.lang.String) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse seed
String conditionName
String conditionValue
java.net.URL url
java.net.HttpURLConnection connection
public void setIfModifiedSince () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest request
String ifModifiedSinceHeader
public void retainServedDateFormat () throws java.lang.Exception
java.util.Date lastModifiedDate
java.util.Date servedDate
java.text.DateFormat dateFormat
String lastModifiedString
String servedString
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
public void clientSuppliedConditionWithoutCachedResult () throws java.lang.Exception
java.net.HttpURLConnection connection
String clientIfModifiedSince
public void authorizationRequestFullyCached () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void contentLocationDoesNotPopulateCache () throws java.lang.Exception
public void useCachesFalseDoesNotWriteToCache () throws java.lang.Exception
java.net.URLConnection connection
public void useCachesFalseDoesNotReadFromCache () throws java.lang.Exception
java.net.URLConnection connection
public void defaultUseCachesSetsInitialValueOnly () throws java.lang.Exception
java.net.URLConnection c3
java.net.URL url
java.net.URLConnection c1
java.net.URLConnection c2
public void connectionIsReturnedToPoolAfterConditionalSuccess () throws java.lang.Exception
public void statisticsConditionalCacheMiss () throws java.lang.Exception
public void statisticsConditionalCacheHit () throws java.lang.Exception
public void statisticsFullCacheHit () throws java.lang.Exception
public void varyMatchesChangedRequestHeaderField () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection frConnection
java.net.HttpURLConnection enConnection
public void varyMatchesUnchangedRequestHeaderField () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection1
java.net.URLConnection connection2
public void varyMatchesAbsentRequestHeaderField () throws java.lang.Exception
public void varyMatchesAddedRequestHeaderField () throws java.lang.Exception
java.net.URLConnection fooConnection
public void varyMatchesRemovedRequestHeaderField () throws java.lang.Exception
java.net.URLConnection fooConnection
public void varyFieldsAreCaseInsensitive () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection1
java.net.URLConnection connection2
public void varyMultipleFieldsWithMatch () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection1
java.net.URLConnection connection2
public void varyMultipleFieldsWithNoMatch () throws java.lang.Exception
java.net.URL url
java.net.URLConnection frConnection
java.net.URLConnection enConnection
public void varyMultipleFieldValuesWithMatch () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection1
java.net.URLConnection connection2
public void varyMultipleFieldValuesWithNoMatch () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection1
java.net.URLConnection connection2
public void varyAsterisk () throws java.lang.Exception
public void varyAndHttps () throws java.lang.Exception
java.net.URL url
javax.net.ssl.HttpsURLConnection connection1
javax.net.ssl.HttpsURLConnection connection2
public void cachePlusCookies () throws java.lang.Exception
java.net.URL url
public void getHeadersReturnsNetworkEndToEndHeaders () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public void getHeadersReturnsCachedHopByHopHeaders () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public void getHeadersDeletesCached100LevelWarnings () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public void getHeadersRetainsCached200LevelWarnings () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public transient void assertCookies (java.net.URL, java.lang.String[]) throws java.lang.Exception
java.net.HttpCookie cookie
java.net.URL url
String[] expectedCookies
java.util.List actualCookies
public void cachePlusRange () throws java.lang.Exception
public void conditionalHitUpdatesCache () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
java.net.HttpURLConnection connection3
public void responseSourceHeaderCached () throws java.io.IOException
java.net.URLConnection connection
public void responseSourceHeaderConditionalCacheFetched () throws java.io.IOException
java.net.HttpURLConnection connection
public void responseSourceHeaderConditionalCacheNotFetched () throws java.io.IOException
java.net.HttpURLConnection connection
public void responseSourceHeaderFetched () throws java.io.IOException
java.net.URLConnection connection
public void emptyResponseHeaderNameFromCacheIsLenient () throws java.lang.Exception
com.squareup.okhttp.Headers$Builder headers
java.net.HttpURLConnection connection
public void testGoldenCacheResponse () throws java.lang.Exception
java.net.URL url
String urlKey
String entryMetadata
String entryBody
String journalBody
java.net.HttpURLConnection connection
private void writeFile (java.io.File, java.lang.String, java.lang.String) throws java.io.IOException
java.io.File directory
String file
String content
okio.BufferedSink sink
private java.lang.String formatDate (long, java.util.concurrent.TimeUnit)
long delta
java.util.concurrent.TimeUnit timeUnit
private java.lang.String formatDate (java.util.Date)
java.util.Date date
java.text.DateFormat rfc1123
private void addRequestBodyIfNecessary (java.lang.String, java.net.HttpURLConnection) throws java.io.IOException
java.io.OutputStream requestBody
String requestMethod
java.net.HttpURLConnection invalidate
private void assertNotCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL url
private com.squareup.okhttp.mockwebserver.RecordedRequest assertConditionallyCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL valid
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
java.net.URL invalid
java.net.HttpURLConnection connection3
java.net.HttpURLConnection connection4
private void assertFullyCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL url
private com.squareup.okhttp.mockwebserver.MockResponse truncateViolently (com.squareup.okhttp.mockwebserver.MockResponse, int)
com.squareup.okhttp.mockwebserver.MockResponse response
int numBytesToKeep
com.squareup.okhttp.Headers headers
okio.Buffer truncatedBody
private java.lang.String readAscii (java.net.URLConnection, int) throws java.io.IOException
int value
int i
java.net.URLConnection connection
int count
java.net.HttpURLConnection httpConnection
java.io.InputStream in
StringBuilder result
private java.lang.String readAscii (java.net.URLConnection) throws java.io.IOException
java.net.URLConnection connection
private void reliableSkip (java.io.InputStream, int) throws java.io.IOException
java.io.InputStream in
int length
private void assertGatewayTimeout (java.net.HttpURLConnection) throws java.io.IOException
java.net.HttpURLConnection connection
private java.util.List toListOrNull (java.lang.Object[])
Object[] arrayOrNull
public okio.Buffer gzip (java.lang.String) throws java.io.IOException
String data
okio.Buffer result
okio.BufferedSink sink
static void <clinit> ()
}
com/squareup/okhttp/WebPlatformUrlTestData.class
WebPlatformUrlTestData.java
package com.squareup.okhttp
public final com.squareup.okhttp.WebPlatformUrlTestData extends java.lang.Object {
String input
String base
String scheme
String username
String password
String host
String port
String path
String query
String fragment
public void <init> ()
public boolean expectParseFailure ()
private void set (java.lang.String, java.lang.String)
String name
String value
public java.lang.String toString ()
public static java.util.List load (okio.BufferedSource) throws java.io.IOException
String piece
String[] nameAndValue
int i
String[] parts
com.squareup.okhttp.WebPlatformUrlTestData element
String base
String line
okio.BufferedSource source
java.util.List list
private static java.lang.String unescape (java.lang.String) throws java.io.EOFException
int c
String s
okio.Buffer in
StringBuilder result
}
com/squareup/okhttp/android/
com/squareup/okhttp/android/HttpResponseCache.class
HttpResponseCache.java
package com.squareup.okhttp.android
public final com.squareup.okhttp.android.HttpResponseCache extends java.net.ResponseCache implements java.io.Closeable com.squareup.okhttp.OkCacheContainer {
private com.squareup.okhttp.AndroidShimResponseCache shimResponseCache
private void <init> (com.squareup.okhttp.AndroidShimResponseCache)
com.squareup.okhttp.AndroidShimResponseCache shimResponseCache
public static com.squareup.okhttp.android.HttpResponseCache getInstalled ()
java.net.ResponseCache installed
public static synchronized com.squareup.okhttp.android.HttpResponseCache install (java.io.File, long) throws java.io.IOException
com.squareup.okhttp.android.HttpResponseCache installedResponseCache
com.squareup.okhttp.AndroidShimResponseCache trueResponseCache
java.io.File directory
long maxSize
java.net.ResponseCache installed
com.squareup.okhttp.AndroidShimResponseCache trueResponseCache
com.squareup.okhttp.android.HttpResponseCache newResponseCache
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection urlConnection
public long size ()
java.io.IOException e
public long maxSize ()
public void flush ()
public int getNetworkCount ()
public int getHitCount ()
public int getRequestCount ()
public void close () throws java.io.IOException
public void delete () throws java.io.IOException
public com.squareup.okhttp.Cache getCache ()
}
com/squareup/okhttp/android/HttpResponseCacheTest$1.class
HttpResponseCacheTest.java
package com.squareup.okhttp.android
com.squareup.okhttp.android.HttpResponseCacheTest$1 extends java.net.ResponseCache {
final synthetic com.squareup.okhttp.android.HttpResponseCacheTest this$0
void <init> (com.squareup.okhttp.android.HttpResponseCacheTest)
com.squareup.okhttp.android.HttpResponseCacheTest this$0
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map)
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection)
java.net.URI uri
java.net.URLConnection connection
}
com/squareup/okhttp/android/HttpResponseCacheTest.class
HttpResponseCacheTest.java
package com.squareup.okhttp.android
public final com.squareup.okhttp.android.HttpResponseCacheTest extends java.lang.Object {
public org.junit.rules.TemporaryFolder cacheRule
public com.squareup.okhttp.mockwebserver.MockWebServer server
private java.io.File cacheDir
private com.squareup.okhttp.OkUrlFactory client
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void install () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache installed
public void secondEquivalentInstallDoesNothing () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache first
com.squareup.okhttp.android.HttpResponseCache another
public void installClosesPreviouslyInstalled () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache first
com.squareup.okhttp.android.HttpResponseCache another
public void getInstalledWithWrongTypeInstalled ()
public void closeCloses () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache cache
public void closeUninstalls () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache cache
public void deleteUninstalls () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache cache
public void statisticsTracking () throws java.lang.Exception
com.squareup.okhttp.android.HttpResponseCache cache
java.net.URLConnection c1
java.io.InputStream inputStream
java.net.URLConnection c2
java.net.URLConnection c3
private java.net.URLConnection openUrl (com.squareup.okhttp.HttpUrl)
com.squareup.okhttp.HttpUrl url
java.net.ResponseCache responseCache
private void initializeCache (com.squareup.okhttp.android.HttpResponseCache)
com.squareup.okhttp.android.HttpResponseCache cache
}
com/squareup/okhttp/internal/
com/squareup/okhttp/internal/ConnectionSpecSelectorTest.class
ConnectionSpecSelectorTest.java
package com.squareup.okhttp.internal
public com.squareup.okhttp.internal.ConnectionSpecSelectorTest extends java.lang.Object {
public static final javax.net.ssl.SSLHandshakeException RETRYABLE_EXCEPTION
private javax.net.ssl.SSLContext sslContext
private static final com.squareup.okhttp.ConnectionSpec TLS_SPEC_1_3
private static final com.squareup.okhttp.ConnectionSpec TLS_SPEC_1_2
public void <init> ()
public void nonRetryableIOException () throws java.lang.Exception
com.squareup.okhttp.internal.ConnectionSpecSelector connectionSpecSelector
javax.net.ssl.SSLSocket socket
boolean retry
public void nonRetryableSSLHandshakeException () throws java.lang.Exception
com.squareup.okhttp.internal.ConnectionSpecSelector connectionSpecSelector
javax.net.ssl.SSLSocket socket
javax.net.ssl.SSLHandshakeException trustIssueException
boolean retry
public void retryableSSLHandshakeException () throws java.lang.Exception
com.squareup.okhttp.internal.ConnectionSpecSelector connectionSpecSelector
javax.net.ssl.SSLSocket socket
boolean retry
public void someFallbacksSupported () throws java.lang.Exception
com.squareup.okhttp.ConnectionSpec sslV3
com.squareup.okhttp.internal.ConnectionSpecSelector connectionSpecSelector
com.squareup.okhttp.TlsVersion[] enabledSocketTlsVersions
javax.net.ssl.SSLSocket socket
boolean retry
private static transient com.squareup.okhttp.internal.ConnectionSpecSelector createConnectionSpecSelector (com.squareup.okhttp.ConnectionSpec[])
com.squareup.okhttp.ConnectionSpec[] connectionSpecs
private transient javax.net.ssl.SSLSocket createSocketWithEnabledProtocols (com.squareup.okhttp.TlsVersion[]) throws java.io.IOException
com.squareup.okhttp.TlsVersion[] tlsVersions
javax.net.ssl.SSLSocket socket
private static transient void assertEnabledProtocols (javax.net.ssl.SSLSocket, com.squareup.okhttp.TlsVersion[])
javax.net.ssl.SSLSocket socket
com.squareup.okhttp.TlsVersion[] required
java.util.Set actual
java.util.Set expected
private static transient java.lang.String[] javaNames (com.squareup.okhttp.TlsVersion[])
int i
com.squareup.okhttp.TlsVersion[] tlsVersions
String[] protocols
static void <clinit> ()
}
com/squareup/okhttp/internal/DiskLruCacheTest$1.class
DiskLruCacheTest.java
package com.squareup.okhttp.internal
synthetic com.squareup.okhttp.internal.DiskLruCacheTest$1 extends java.lang.Object {
}
com/squareup/okhttp/internal/DiskLruCacheTest$TestExecutor.class
DiskLruCacheTest.java
package com.squareup.okhttp.internal
com.squareup.okhttp.internal.DiskLruCacheTest$TestExecutor extends java.lang.Object implements java.util.concurrent.Executor {
final java.util.Deque jobs
private void <init> ()
public void execute (java.lang.Runnable)
Runnable command
synthetic void <init> (com.squareup.okhttp.internal.DiskLruCacheTest$1)
com.squareup.okhttp.internal.DiskLruCacheTest$1 x0
}
com/squareup/okhttp/internal/DiskLruCacheTest.class
DiskLruCacheTest.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.DiskLruCacheTest extends java.lang.Object {
public final org.junit.rules.TemporaryFolder tempDir
public final org.junit.rules.Timeout timeout
private final com.squareup.okhttp.internal.FaultyFileSystem fileSystem
private final int appVersion
private java.io.File cacheDir
private java.io.File journalFile
private java.io.File journalBkpFile
private final com.squareup.okhttp.internal.DiskLruCacheTest$TestExecutor executor
private com.squareup.okhttp.internal.DiskLruCache cache
private final java.util.Deque toClose
public void <init> ()
private void createNewCache () throws java.io.IOException
private void createNewCacheWithSize (int) throws java.io.IOException
int maxSize
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void emptyCache () throws java.lang.Exception
public void validateKey () throws java.lang.Exception
IllegalArgumentException iae
IllegalArgumentException iae
IllegalArgumentException iae
IllegalArgumentException iae
IllegalArgumentException iae
IllegalArgumentException iae
String key
public void writeAndReadEntry () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void readAndWriteEntryAcrossCacheOpenAndClose () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void readAndWriteEntryWithoutProperClose () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void journalWithEditAndPublish () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
public void revertedNewFileIsRemoveInJournal () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
public void unterminatedEditIsRevertedOnClose () throws java.lang.Exception
public void journalDoesNotIncludeReadOfYetUnpublishedValue () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
public void journalWithEditAndPublishAndRead () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor k1Creator
com.squareup.okhttp.internal.DiskLruCache$Editor k2Creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot k1Snapshot
public void cannotOperateOnEditAfterPublish () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void cannotOperateOnEditAfterRevert () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void explicitRemoveAppliedToDiskImmediately () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
java.io.File k1
public void removePreventsActiveEditFromStoringAValue () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor a
public void readAndWriteOverlapsMaintainConsistency () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor v1Creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot1
okio.BufferedSource inV1
com.squareup.okhttp.internal.DiskLruCache$Editor v1Updater
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot2
public void openWithDirtyKeyDeletesAllFilesForThatKey () throws java.lang.Exception
java.io.File cleanFile0
java.io.File cleanFile1
java.io.File dirtyFile0
java.io.File dirtyFile1
public void openWithInvalidVersionClearsDirectory () throws java.lang.Exception
public void openWithInvalidAppVersionClearsDirectory () throws java.lang.Exception
public void openWithInvalidValueCountClearsDirectory () throws java.lang.Exception
public void openWithInvalidBlankLineClearsDirectory () throws java.lang.Exception
public void openWithInvalidJournalLineClearsDirectory () throws java.lang.Exception
public void openWithInvalidFileSizeClearsDirectory () throws java.lang.Exception
public void openWithTruncatedLineDiscardsThatLine () throws java.lang.Exception
okio.BufferedSink sink
public void openWithTooManyFileSizesClearsDirectory () throws java.lang.Exception
public void keyWithSpaceNotPermitted () throws java.lang.Exception
public void keyWithNewlineNotPermitted () throws java.lang.Exception
public void keyWithCarriageReturnNotPermitted () throws java.lang.Exception
public void nullKeyThrows () throws java.lang.Exception
public void createNewEntryWithTooFewValuesFails () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Editor creator2
public void revertWithTooFewValues () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
public void updateExistingEntryWithTooFewValuesReusesPreviousValues () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Editor updater
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void growMaxSize () throws java.lang.Exception
public void shrinkMaxSizeEvicts () throws java.lang.Exception
public void evictOnInsert () throws java.lang.Exception
public void evictOnUpdate () throws java.lang.Exception
public void evictionHonorsLruFromCurrentSession () throws java.lang.Exception
public void evictionHonorsLruFromPreviousSession () throws java.lang.Exception
public void cacheSingleEntryOfSizeGreaterThanMaxSize () throws java.lang.Exception
public void cacheSingleValueOfSizeGreaterThanMaxSize () throws java.lang.Exception
public void constructorDoesNotAllowZeroCacheSize () throws java.lang.Exception
public void constructorDoesNotAllowZeroValuesPerEntry () throws java.lang.Exception
public void removeAbsentElement () throws java.lang.Exception
public void readingTheSameStreamMultipleTimes () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void rebuildJournalOnRepeatedReads () throws java.lang.Exception
public void rebuildJournalOnRepeatedEdits () throws java.lang.Exception
public void rebuildJournalOnRepeatedReadsWithOpenAndClose () throws java.lang.Exception
public void rebuildJournalOnRepeatedEditsWithOpenAndClose () throws java.lang.Exception
public void restoreBackupFile () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void journalFileIsPreferredOverBackupFile () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor creator
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshotA
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshotB
public void openCreatesDirectoryIfNecessary () throws java.lang.Exception
java.io.File dir
public void fileDeletedExternally () throws java.lang.Exception
public void editSameVersion () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void editSnapshotAfterChangeAborted () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
com.squareup.okhttp.internal.DiskLruCache$Editor toAbort
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void editSnapshotAfterChangeCommitted () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
com.squareup.okhttp.internal.DiskLruCache$Editor toAbort
public void editSinceEvicted () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void editSinceEvictedAndRecreated () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
public void aggressiveClearingHandlesWrite () throws java.lang.Exception
public void aggressiveClearingHandlesEdit () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor a
public void removeHandlesMissingFile () throws java.lang.Exception
public void aggressiveClearingHandlesPartialEdit () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor a
public void aggressiveClearingHandlesRead () throws java.lang.Exception
public void trimToSizeWithActiveEdit () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor a
public void evictAll () throws java.lang.Exception
public void evictAllWithPartialCreate () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor a
public void evictAllWithPartialEditDoesNotStoreAValue () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor a
public void evictAllDoesntInterruptPartialRead () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
public void editSnapshotAfterEvictAllReturnsNullDueToStaleValue () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
public void iterator () throws java.lang.Exception
java.util.Iterator iterator
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
com.squareup.okhttp.internal.DiskLruCache$Snapshot b
com.squareup.okhttp.internal.DiskLruCache$Snapshot c
public void iteratorElementsAddedDuringIterationAreOmitted () throws java.lang.Exception
java.util.Iterator iterator
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
com.squareup.okhttp.internal.DiskLruCache$Snapshot b
public void iteratorElementsUpdatedDuringIterationAreUpdated () throws java.lang.Exception
java.util.Iterator iterator
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
com.squareup.okhttp.internal.DiskLruCache$Snapshot b
public void iteratorElementsRemovedDuringIterationAreOmitted () throws java.lang.Exception
java.util.Iterator iterator
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
public void iteratorRemove () throws java.lang.Exception
java.util.Iterator iterator
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
public void iteratorRemoveBeforeNext () throws java.lang.Exception
java.util.Iterator iterator
public void iteratorRemoveOncePerCallToNext () throws java.lang.Exception
java.util.Iterator iterator
com.squareup.okhttp.internal.DiskLruCache$Snapshot a
public void cacheClosedTruncatesIterator () throws java.lang.Exception
java.util.Iterator iterator
public void isClosed_uninitializedCache () throws java.lang.Exception
public void journalWriteFailsDuringEdit () throws java.lang.Exception
public void journalWriteFailsDuringEditorCommit () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void journalWriteFailsDuringEditorAbort () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void journalWriteFailsDuringRemove () throws java.lang.Exception
public void noSizeCorruptionAfterCreatorDetached () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void noSizeCorruptionAfterEditorDetached () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void noNewSourceAfterEditorDetached () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public void editsDiscardedAfterEditorDetached () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
okio.BufferedSink sink
public void abortAfterDetach () throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
private transient void assertJournalEquals (java.lang.String[]) throws java.lang.Exception
String[] expectedBodyLines
java.util.List expectedLines
private transient void createJournal (java.lang.String[]) throws java.lang.Exception
String[] bodyLines
private transient void createJournalWithHeader (java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String[]) throws java.lang.Exception
String line
String magic
String version
String appVersion
String valueCount
String blank
String[] bodyLines
okio.BufferedSink sink
private java.util.List readJournalLines () throws java.lang.Exception
String line
java.util.List result
okio.BufferedSource source
private java.io.File getCleanFile (java.lang.String, int)
String key
int index
private java.io.File getDirtyFile (java.lang.String, int)
String key
int index
private java.lang.String readFile (java.io.File) throws java.lang.Exception
java.io.File file
okio.BufferedSource source
String result
public void writeFile (java.io.File, java.lang.String) throws java.lang.Exception
java.io.File file
String content
okio.BufferedSink sink
private static void assertInoperable (com.squareup.okhttp.internal.DiskLruCache$Editor) throws java.lang.Exception
com.squareup.okhttp.internal.DiskLruCache$Editor editor
private void generateSomeGarbageFiles () throws java.lang.Exception
java.io.File dir1
java.io.File dir2
private void assertGarbageFilesAllDeleted () throws java.lang.Exception
private void set (java.lang.String, java.lang.String, java.lang.String) throws java.lang.Exception
String key
String value0
String value1
com.squareup.okhttp.internal.DiskLruCache$Editor editor
public static void setString (com.squareup.okhttp.internal.DiskLruCache$Editor, int, java.lang.String) throws java.io.IOException
com.squareup.okhttp.internal.DiskLruCache$Editor editor
int index
String value
okio.BufferedSink writer
private void assertAbsent (java.lang.String) throws java.lang.Exception
String key
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
private void assertValue (java.lang.String, java.lang.String, java.lang.String) throws java.lang.Exception
String key
String value0
String value1
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
private void assertSnapshotValue (com.squareup.okhttp.internal.DiskLruCache$Snapshot, int, java.lang.String) throws java.io.IOException
com.squareup.okhttp.internal.DiskLruCache$Snapshot snapshot
int index
String value
private java.lang.String sourceAsString (okio.Source) throws java.io.IOException
okio.Source source
private void copyFile (java.io.File, java.io.File) throws java.io.IOException
java.io.File from
java.io.File to
okio.Source source
okio.BufferedSink sink
}
com/squareup/okhttp/internal/DoubleInetAddressDns.class
DoubleInetAddressDns.java
package com.squareup.okhttp.internal
public com.squareup.okhttp.internal.DoubleInetAddressDns extends java.lang.Object implements com.squareup.okhttp.Dns {
public void <init> ()
public java.util.List lookup (java.lang.String) throws java.net.UnknownHostException
String hostname
java.util.List addresses
}
com/squareup/okhttp/internal/FaultyFileSystem$FaultySink.class
FaultyFileSystem.java
package com.squareup.okhttp.internal
com.squareup.okhttp.internal.FaultyFileSystem$FaultySink extends okio.ForwardingSink {
private final java.io.File file
final synthetic com.squareup.okhttp.internal.FaultyFileSystem this$0
public void <init> (com.squareup.okhttp.internal.FaultyFileSystem, okio.Sink, java.io.File)
okio.Sink delegate
java.io.File file
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
}
com/squareup/okhttp/internal/FaultyFileSystem.class
FaultyFileSystem.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.FaultyFileSystem extends java.lang.Object implements com.squareup.okhttp.internal.io.FileSystem {
private final com.squareup.okhttp.internal.io.FileSystem delegate
private final java.util.Set writeFaults
public void <init> (com.squareup.okhttp.internal.io.FileSystem)
com.squareup.okhttp.internal.io.FileSystem delegate
public void setFaulty (java.io.File, boolean)
java.io.File file
boolean faulty
public okio.Source source (java.io.File) throws java.io.FileNotFoundException
java.io.File file
public okio.Sink sink (java.io.File) throws java.io.FileNotFoundException
java.io.File file
public okio.Sink appendingSink (java.io.File) throws java.io.FileNotFoundException
java.io.File file
public void delete (java.io.File) throws java.io.IOException
java.io.File file
public boolean exists (java.io.File) throws java.io.IOException
java.io.File file
public long size (java.io.File)
java.io.File file
public void rename (java.io.File, java.io.File) throws java.io.IOException
java.io.File from
java.io.File to
public void deleteContents (java.io.File) throws java.io.IOException
java.io.File directory
static synthetic java.util.Set access$000 (com.squareup.okhttp.internal.FaultyFileSystem)
com.squareup.okhttp.internal.FaultyFileSystem x0
}
com/squareup/okhttp/internal/HeldCertificate$Builder.class
HeldCertificate.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.HeldCertificate$Builder extends java.lang.Object {
private final long duration
private String hostname
private String serialNumber
private java.security.KeyPair keyPair
private com.squareup.okhttp.internal.HeldCertificate issuedBy
private int maxIntermediateCas
public void <init> ()
public com.squareup.okhttp.internal.HeldCertificate$Builder serialNumber (java.lang.String)
String serialNumber
public com.squareup.okhttp.internal.HeldCertificate$Builder commonName (java.lang.String)
String hostname
public com.squareup.okhttp.internal.HeldCertificate$Builder keyPair (java.security.KeyPair)
java.security.KeyPair keyPair
public com.squareup.okhttp.internal.HeldCertificate$Builder issuedBy (com.squareup.okhttp.internal.HeldCertificate)
com.squareup.okhttp.internal.HeldCertificate signedBy
public com.squareup.okhttp.internal.HeldCertificate$Builder ca (int)
int maxIntermediateCas
public com.squareup.okhttp.internal.HeldCertificate build () throws java.security.GeneralSecurityException
java.security.KeyPair signedByKeyPair
javax.security.auth.x500.X500Principal signedByPrincipal
java.security.KeyPair heldKeyPair
javax.security.auth.x500.X500Principal subject
java.security.KeyPair signedByKeyPair
javax.security.auth.x500.X500Principal signedByPrincipal
long now
org.bouncycastle.x509.X509V3CertificateGenerator generator
java.security.cert.X509Certificate certificate
public java.security.KeyPair generateKeyPair () throws java.security.GeneralSecurityException
java.security.KeyPairGenerator keyPairGenerator
static void <clinit> ()
}
com/squareup/okhttp/internal/HeldCertificate.class
HeldCertificate.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.HeldCertificate extends java.lang.Object {
public final java.security.cert.X509Certificate certificate
public final java.security.KeyPair keyPair
public void <init> (java.security.cert.X509Certificate, java.security.KeyPair)
java.security.cert.X509Certificate certificate
java.security.KeyPair keyPair
}
com/squareup/okhttp/internal/OptionalMethodTest$1.class
OptionalMethodTest.java
package com.squareup.okhttp.internal
synthetic com.squareup.okhttp.internal.OptionalMethodTest$1 extends java.lang.Object {
}
com/squareup/okhttp/internal/OptionalMethodTest$BaseClass.class
OptionalMethodTest.java
package com.squareup.okhttp.internal
com.squareup.okhttp.internal.OptionalMethodTest$BaseClass extends java.lang.Object {
private void <init> ()
public java.lang.String stringMethod ()
public void voidMethod ()
synthetic void <init> (com.squareup.okhttp.internal.OptionalMethodTest$1)
com.squareup.okhttp.internal.OptionalMethodTest$1 x0
}
com/squareup/okhttp/internal/OptionalMethodTest$SubClass1.class
OptionalMethodTest.java
package com.squareup.okhttp.internal
com.squareup.okhttp.internal.OptionalMethodTest$SubClass1 extends com.squareup.okhttp.internal.OptionalMethodTest$BaseClass {
private void <init> ()
public java.lang.String subclassMethod ()
public java.lang.String methodWithArgs (java.lang.String)
String arg
synthetic void <init> (com.squareup.okhttp.internal.OptionalMethodTest$1)
com.squareup.okhttp.internal.OptionalMethodTest$1 x0
}
com/squareup/okhttp/internal/OptionalMethodTest$SubClass2.class
OptionalMethodTest.java
package com.squareup.okhttp.internal
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 extends com.squareup.okhttp.internal.OptionalMethodTest$BaseClass {
private void <init> ()
public int subclassMethod ()
public java.lang.String methodWithArgs (java.lang.String)
String arg
public void throwsException () throws java.io.IOException
public void throwsRuntimeException () throws java.lang.Exception
protected void nonPublic ()
synthetic void <init> (com.squareup.okhttp.internal.OptionalMethodTest$1)
com.squareup.okhttp.internal.OptionalMethodTest$1 x0
}
com/squareup/okhttp/internal/OptionalMethodTest.class
OptionalMethodTest.java
package com.squareup.okhttp.internal
public com.squareup.okhttp.internal.OptionalMethodTest extends java.lang.Object {
private static final com.squareup.okhttp.internal.OptionalMethod STRING_METHOD_RETURNS_ANY
private static final com.squareup.okhttp.internal.OptionalMethod STRING_METHOD_RETURNS_STRING
private static final com.squareup.okhttp.internal.OptionalMethod STRING_METHOD_RETURNS_INT
private static final com.squareup.okhttp.internal.OptionalMethod VOID_METHOD_RETURNS_ANY
private static final com.squareup.okhttp.internal.OptionalMethod VOID_METHOD_RETURNS_VOID
private static final com.squareup.okhttp.internal.OptionalMethod SUBCLASS_METHOD_RETURNS_ANY
private static final com.squareup.okhttp.internal.OptionalMethod SUBCLASS_METHOD_RETURNS_STRING
private static final com.squareup.okhttp.internal.OptionalMethod SUBCLASS_METHOD_RETURNS_INT
private static final com.squareup.okhttp.internal.OptionalMethod METHOD_WITH_ARGS_WRONG_PARAMS
private static final com.squareup.okhttp.internal.OptionalMethod METHOD_WITH_ARGS_CORRECT_PARAMS
private static final com.squareup.okhttp.internal.OptionalMethod THROWS_EXCEPTION
private static final com.squareup.okhttp.internal.OptionalMethod THROWS_RUNTIME_EXCEPTION
private static final com.squareup.okhttp.internal.OptionalMethod NON_PUBLIC
public void <init> ()
public void isSupported () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$BaseClass base
com.squareup.okhttp.internal.OptionalMethodTest$SubClass1 subClass1
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
public void invoke () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$BaseClass base
com.squareup.okhttp.internal.OptionalMethodTest$SubClass1 subClass1
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
public void invokeBadArgs () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$SubClass1 subClass1
public void invokeWithException () throws java.lang.Exception
java.lang.reflect.InvocationTargetException expected
java.lang.reflect.InvocationTargetException expected
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
public void invokeNonPublic () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
public void invokeOptional () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$BaseClass base
com.squareup.okhttp.internal.OptionalMethodTest$SubClass1 subClass1
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
public void invokeOptionalBadArgs () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$SubClass1 subClass1
public void invokeOptionalWithException () throws java.lang.Exception
java.lang.reflect.InvocationTargetException expected
java.lang.reflect.InvocationTargetException expected
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
public void invokeOptionalNonPublic () throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethodTest$SubClass2 subClass2
private static transient void assertErrorOnInvoke (com.squareup.okhttp.internal.OptionalMethod, java.lang.Object, java.lang.Object[]) throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethod optionalMethod
Object base
Object[] args
private static transient void assertIllegalArgumentExceptionOnInvoke (com.squareup.okhttp.internal.OptionalMethod, java.lang.Object, java.lang.Object[]) throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethod optionalMethod
Object base
Object[] args
private static transient void assertErrorOnInvokeOptional (com.squareup.okhttp.internal.OptionalMethod, java.lang.Object, java.lang.Object[]) throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethod optionalMethod
Object base
Object[] args
private static transient void assertIllegalArgumentExceptionOnInvokeOptional (com.squareup.okhttp.internal.OptionalMethod, java.lang.Object, java.lang.Object[]) throws java.lang.Exception
com.squareup.okhttp.internal.OptionalMethod optionalMethod
Object base
Object[] args
static void <clinit> ()
}
com/squareup/okhttp/internal/RecordingAuthenticator.class
RecordingAuthenticator.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.RecordingAuthenticator extends java.net.Authenticator {
public static final String BASE_64_CREDENTIALS
public final java.util.List calls
public final java.net.PasswordAuthentication authentication
public void <init> (java.net.PasswordAuthentication)
java.net.PasswordAuthentication authentication
public void <init> ()
protected java.net.PasswordAuthentication getPasswordAuthentication ()
}
com/squareup/okhttp/internal/RecordingOkAuthenticator.class
RecordingOkAuthenticator.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.RecordingOkAuthenticator extends java.lang.Object implements com.squareup.okhttp.Authenticator {
public final java.util.List responses
public final java.util.List proxies
public final String credential
public void <init> (java.lang.String)
String credential
public com.squareup.okhttp.Response onlyResponse ()
public java.net.Proxy onlyProxy ()
public com.squareup.okhttp.Request authenticate (java.net.Proxy, com.squareup.okhttp.Response)
java.net.Proxy proxy
com.squareup.okhttp.Response response
public com.squareup.okhttp.Request authenticateProxy (java.net.Proxy, com.squareup.okhttp.Response)
java.net.Proxy proxy
com.squareup.okhttp.Response response
}
com/squareup/okhttp/internal/SingleInetAddressDns.class
SingleInetAddressDns.java
package com.squareup.okhttp.internal
public com.squareup.okhttp.internal.SingleInetAddressDns extends java.lang.Object implements com.squareup.okhttp.Dns {
public void <init> ()
public java.util.List lookup (java.lang.String) throws java.net.UnknownHostException
String hostname
java.util.List addresses
}
com/squareup/okhttp/internal/SslContextBuilder.class
SslContextBuilder.java
package com.squareup.okhttp.internal
public final com.squareup.okhttp.internal.SslContextBuilder extends java.lang.Object {
private static javax.net.ssl.SSLContext localhost
private com.squareup.okhttp.internal.HeldCertificate[] chain
private java.util.List trustedCertificates
public void <init> ()
public static synchronized javax.net.ssl.SSLContext localhost ()
com.squareup.okhttp.internal.HeldCertificate heldCertificate
java.security.GeneralSecurityException e
java.net.UnknownHostException e
public transient com.squareup.okhttp.internal.SslContextBuilder certificateChain (com.squareup.okhttp.internal.HeldCertificate[])
com.squareup.okhttp.internal.HeldCertificate[] chain
public com.squareup.okhttp.internal.SslContextBuilder addTrustedCertificate (java.security.cert.X509Certificate)
java.security.cert.X509Certificate certificate
public javax.net.ssl.SSLContext build () throws java.security.GeneralSecurityException
int i
java.security.cert.Certificate[] certificates
int i
char[] password
java.security.KeyStore keyStore
javax.net.ssl.KeyManagerFactory keyManagerFactory
javax.net.ssl.TrustManagerFactory trustManagerFactory
javax.net.ssl.SSLContext sslContext
private java.security.KeyStore newEmptyKeyStore (char[]) throws java.security.GeneralSecurityException
java.security.KeyStore keyStore
java.io.InputStream in
java.io.IOException e
char[] password
}
com/squareup/okhttp/internal/framed/
com/squareup/okhttp/internal/framed/BaseTestHandler.class
BaseTestHandler.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.BaseTestHandler extends java.lang.Object implements com.squareup.okhttp.internal.framed.FrameReader$Handler {
void <init> ()
public void data (boolean, int, okio.BufferedSource, int) throws java.io.IOException
boolean inFinished
int streamId
okio.BufferedSource source
int length
public void headers (boolean, boolean, int, int, java.util.List, com.squareup.okhttp.internal.framed.HeadersMode)
boolean outFinished
boolean inFinished
int streamId
int associatedStreamId
java.util.List headerBlock
com.squareup.okhttp.internal.framed.HeadersMode headersMode
public void rstStream (int, com.squareup.okhttp.internal.framed.ErrorCode)
int streamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
public void settings (boolean, com.squareup.okhttp.internal.framed.Settings)
boolean clearPrevious
com.squareup.okhttp.internal.framed.Settings settings
public void ackSettings ()
public void ping (boolean, int, int)
boolean ack
int payload1
int payload2
public void goAway (int, com.squareup.okhttp.internal.framed.ErrorCode, okio.ByteString)
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
okio.ByteString debugData
public void windowUpdate (int, long)
int streamId
long windowSizeIncrement
public void priority (int, int, int, boolean)
int streamId
int streamDependency
int weight
boolean exclusive
public void pushPromise (int, int, java.util.List)
int streamId
int associatedStreamId
java.util.List headerBlock
public void alternateService (int, java.lang.String, okio.ByteString, java.lang.String, int, long)
int streamId
String origin
okio.ByteString protocol
String host
int port
long maxAge
}
com/squareup/okhttp/internal/framed/FramedServer.class
FramedServer.java
package com.squareup.okhttp.internal.framed
public final com.squareup.okhttp.internal.framed.FramedServer extends com.squareup.okhttp.internal.framed.FramedConnection$Listener {
static final java.util.logging.Logger logger
private final java.util.List framedProtocols
private final java.io.File baseDirectory
private final javax.net.ssl.SSLSocketFactory sslSocketFactory
public void <init> (java.io.File, javax.net.ssl.SSLSocketFactory)
java.io.File baseDirectory
javax.net.ssl.SSLSocketFactory sslSocketFactory
private void run () throws java.lang.Exception
javax.net.ssl.SSLSocket sslSocket
String protocolString
com.squareup.okhttp.Protocol protocol
com.squareup.okhttp.internal.framed.FramedConnection framedConnection
java.io.IOException e
Exception e
java.net.Socket socket
java.net.ServerSocket serverSocket
private javax.net.ssl.SSLSocket doSsl (java.net.Socket) throws java.io.IOException
java.net.Socket socket
javax.net.ssl.SSLSocket sslSocket
public void onStream (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
int i
int size
java.util.List requestHeaders
String path
java.io.File file
java.io.IOException e
com.squareup.okhttp.internal.framed.FramedStream stream
private void send404 (com.squareup.okhttp.internal.framed.FramedStream, java.lang.String) throws java.io.IOException
com.squareup.okhttp.internal.framed.FramedStream stream
String path
java.util.List responseHeaders
okio.BufferedSink out
private void serveDirectory (com.squareup.okhttp.internal.framed.FramedStream, java.io.File[]) throws java.io.IOException
String target
java.io.File file
com.squareup.okhttp.internal.framed.FramedStream stream
java.io.File[] files
java.util.List responseHeaders
okio.BufferedSink out
private void serveFile (com.squareup.okhttp.internal.framed.FramedStream, java.io.File) throws java.io.IOException
okio.BufferedSink out
com.squareup.okhttp.internal.framed.FramedStream stream
java.io.File file
java.util.List responseHeaders
okio.Source source
private java.lang.String contentType (java.io.File)
java.io.File file
public static transient void main (java.lang.String[]) throws java.lang.Exception
String[] args
com.squareup.okhttp.internal.framed.FramedServer server
static void <clinit> ()
}
com/squareup/okhttp/internal/framed/HpackTest.class
HpackTest.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.HpackTest extends java.lang.Object {
private final okio.Buffer bytesIn
private com.squareup.okhttp.internal.framed.Hpack$Reader hpackReader
private okio.Buffer bytesOut
private com.squareup.okhttp.internal.framed.Hpack$Writer hpackWriter
public void <init> ()
public void reset ()
public void largeHeaderValue () throws java.io.IOException
char[] value
java.util.List headerBlock
public void tooLargeToHPackIsStillEmitted () throws java.io.IOException
public void testEviction () throws java.io.IOException
com.squareup.okhttp.internal.framed.Header entry
public void dynamicallyGrowsBeyond64Entries () throws java.io.IOException
int i
public void huffmanDecodingSupported () throws java.io.IOException
com.squareup.okhttp.internal.framed.Header entry
public void readLiteralHeaderFieldWithIndexing () throws java.io.IOException
com.squareup.okhttp.internal.framed.Header entry
public void literalHeaderFieldWithoutIndexingIndexedName () throws java.io.IOException
java.util.List headerBlock
public void literalHeaderFieldWithoutIndexingNewName () throws java.io.IOException
java.util.List headerBlock
public void literalHeaderFieldNeverIndexedIndexedName () throws java.io.IOException
public void literalHeaderFieldNeverIndexedNewName () throws java.io.IOException
public void staticHeaderIsNotCopiedIntoTheIndexedTable () throws java.io.IOException
public void readIndexedHeaderFieldIndex0 () throws java.io.IOException
java.io.IOException e
public void readIndexedHeaderFieldTooLargeIndex () throws java.io.IOException
java.io.IOException e
public void readIndexedHeaderFieldInsidiousIndex () throws java.io.IOException
java.io.IOException e
public void minMaxHeaderTableSize () throws java.io.IOException
public void cannotSetTableSizeLargerThanSettingsValue () throws java.io.IOException
java.io.IOException e
public void readHeaderTableStateChangeInsidiousMaxHeaderByteCount () throws java.io.IOException
java.io.IOException e
public void readIndexedHeaderFieldFromStaticTableWithoutBuffering () throws java.io.IOException
public void readRequestExamplesWithoutHuffman () throws java.io.IOException
private void firstRequestWithoutHuffman ()
private void checkReadFirstRequestWithoutHuffman ()
com.squareup.okhttp.internal.framed.Header entry
private void secondRequestWithoutHuffman ()
private void checkReadSecondRequestWithoutHuffman ()
com.squareup.okhttp.internal.framed.Header entry
private void thirdRequestWithoutHuffman ()
private void checkReadThirdRequestWithoutHuffman ()
com.squareup.okhttp.internal.framed.Header entry
public void readRequestExamplesWithHuffman () throws java.io.IOException
private void firstRequestWithHuffman ()
private void checkReadFirstRequestWithHuffman ()
com.squareup.okhttp.internal.framed.Header entry
private void secondRequestWithHuffman ()
private void checkReadSecondRequestWithHuffman ()
com.squareup.okhttp.internal.framed.Header entry
private void thirdRequestWithHuffman ()
private void checkReadThirdRequestWithHuffman ()
com.squareup.okhttp.internal.framed.Header entry
public void readSingleByteInt () throws java.io.IOException
public void readMultibyteInt () throws java.io.IOException
public void writeSingleByteInt () throws java.io.IOException
public void writeMultibyteInt () throws java.io.IOException
public void max31BitValue () throws java.io.IOException
public void prefixMask () throws java.io.IOException
public void prefixMaskMinusOne () throws java.io.IOException
public void zero () throws java.io.IOException
public void lowercaseHeaderNameBeforeEmit () throws java.io.IOException
public void mixedCaseHeaderNameIsMalformed () throws java.io.IOException
java.io.IOException e
public void emptyHeaderName () throws java.io.IOException
private com.squareup.okhttp.internal.framed.Hpack$Reader newReader (okio.Buffer)
okio.Buffer source
private transient okio.Buffer byteStream (int[])
int[] bytes
private void checkEntry (com.squareup.okhttp.internal.framed.Header, java.lang.String, java.lang.String, int)
com.squareup.okhttp.internal.framed.Header entry
String name
String value
int size
private transient void assertBytes (int[]) throws java.io.IOException
int[] bytes
okio.ByteString expected
okio.ByteString actual
private okio.ByteString intArrayToByteArray (int[])
int i
int[] bytes
byte[] data
private int headerTableLength ()
}
com/squareup/okhttp/internal/framed/Http2ConnectionTest$1.class
Http2ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2ConnectionTest$1 extends java.lang.Object implements com.squareup.okhttp.internal.framed.PushObserver {
void <init> ()
public boolean onRequest (int, java.util.List)
int streamId
java.util.List requestHeaders
public boolean onHeaders (int, java.util.List, boolean)
int streamId
java.util.List responseHeaders
boolean last
public boolean onData (int, okio.BufferedSource, int, boolean) throws java.io.IOException
int streamId
okio.BufferedSource source
int byteCount
boolean last
public void onReset (int, com.squareup.okhttp.internal.framed.ErrorCode)
int streamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
}
com/squareup/okhttp/internal/framed/Http2ConnectionTest$RecordingPushObserver.class
Http2ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2ConnectionTest$RecordingPushObserver extends java.lang.Object implements com.squareup.okhttp.internal.framed.PushObserver {
final java.util.List events
private void <init> ()
public synchronized java.lang.Object takeEvent () throws java.lang.InterruptedException
public synchronized boolean onRequest (int, java.util.List)
int streamId
java.util.List requestHeaders
public synchronized boolean onHeaders (int, java.util.List, boolean)
int streamId
java.util.List responseHeaders
boolean last
public synchronized boolean onData (int, okio.BufferedSource, int, boolean)
int streamId
okio.BufferedSource source
int byteCount
boolean last
public synchronized void onReset (int, com.squareup.okhttp.internal.framed.ErrorCode)
int streamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
synthetic void <init> (com.squareup.okhttp.internal.framed.Http2ConnectionTest$1)
com.squareup.okhttp.internal.framed.Http2ConnectionTest$1 x0
}
com/squareup/okhttp/internal/framed/Http2ConnectionTest.class
Http2ConnectionTest.java
package com.squareup.okhttp.internal.framed
public final com.squareup.okhttp.internal.framed.Http2ConnectionTest extends java.lang.Object {
private static final com.squareup.okhttp.internal.framed.Variant HTTP_2
static final com.squareup.okhttp.internal.framed.PushObserver IGNORE
public void <init> ()
public void serverPingsClientHttp2 () throws java.lang.Exception
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientPingsServerHttp2 () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.Ping ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame pingFrame
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void peerHttp2ServerLowersInitialWindowSize () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings initial
com.squareup.okhttp.internal.framed.Settings shouldntImpactConnection
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ackFrame
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void peerHttp2ServerZerosCompressionTable () throws java.lang.Exception
boolean client
com.squareup.okhttp.internal.framed.Settings settings
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.Http2$Reader frameReader
public void peerHttp2ClientDisablesPush () throws java.lang.Exception
boolean client
com.squareup.okhttp.internal.framed.Settings settings
com.squareup.okhttp.internal.framed.FramedConnection connection
public void peerIncreasesMaxFrameSize () throws java.lang.Exception
int newMaxFrameSize
com.squareup.okhttp.internal.framed.Settings settings
com.squareup.okhttp.internal.framed.FramedConnection connection
public void receiveGoAwayHttp2 () throws java.lang.Exception
java.io.IOException expected
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream1
com.squareup.okhttp.internal.framed.FramedStream stream2
okio.BufferedSink sink1
okio.BufferedSink sink2
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream1
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream2
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame data1
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void readSendsWindowUpdateHttp2 () throws java.lang.Exception
int i
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame windowUpdate
int j
java.util.List windowUpdateStreamIds
int i
int windowSize
int windowUpdateThreshold
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source in
okio.Buffer buffer
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
private okio.Buffer data (int)
int byteCount
public void serverSendsEmptyDataClientDoesntSendWindowUpdateHttp2 () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream client
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientSendsEmptyDataServerDoesntSendWindowUpdateHttp2 () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream client
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void maxFrameSizeHonored () throws java.lang.Exception
byte[] buff
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame data
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void pushPromiseStream () throws java.lang.Exception
java.util.List expectedRequestHeaders
java.util.List expectedResponseHeaders
com.squareup.okhttp.internal.framed.Http2ConnectionTest$RecordingPushObserver observer
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream client
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void doublePushPromise () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void pushPromiseStreamsAutomaticallyCancel () throws java.lang.Exception
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void socketExceptionWhileWritingHeaders () throws java.lang.Exception
String longString
java.net.Socket socket
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
private com.squareup.okhttp.internal.framed.FramedConnection sendHttp2SettingsAndCheckForAck (boolean, com.squareup.okhttp.internal.framed.Settings) throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ackFrame
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
boolean client
com.squareup.okhttp.internal.framed.Settings settings
private com.squareup.okhttp.internal.framed.FramedConnection connection (com.squareup.okhttp.internal.framed.MockSpdyPeer, com.squareup.okhttp.internal.framed.Variant) throws java.io.IOException
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
com.squareup.okhttp.internal.framed.Variant variant
private com.squareup.okhttp.internal.framed.FramedConnection$Builder connectionBuilder (com.squareup.okhttp.internal.framed.MockSpdyPeer, com.squareup.okhttp.internal.framed.Variant) throws java.io.IOException
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
com.squareup.okhttp.internal.framed.Variant variant
static void <clinit> ()
}
com/squareup/okhttp/internal/framed/Http2FrameLoggerTest.class
Http2FrameLoggerTest.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.Http2FrameLoggerTest extends java.lang.Object {
public void <init> ()
public void exampleStream ()
public void flagOverlapOn0x1 ()
public void flagOverlapOn0x4 ()
public void flagOverlapOn0x20 ()
public void allFormattedFlagsWithValidBits ()
byte i
java.util.List formattedFlags
}
com/squareup/okhttp/internal/framed/Http2Test$1.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$1 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic java.util.List val$sentHeaders
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, java.util.List)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void headers (boolean, boolean, int, int, java.util.List, com.squareup.okhttp.internal.framed.HeadersMode)
boolean outFinished
boolean inFinished
int streamId
int associatedStreamId
java.util.List headerBlock
com.squareup.okhttp.internal.framed.HeadersMode headersMode
}
com/squareup/okhttp/internal/framed/Http2Test$10.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$10 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void windowUpdate (int, long)
int streamId
long windowSizeIncrement
}
com/squareup/okhttp/internal/framed/Http2Test$11.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$11 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.ErrorCode val$expectedError
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, com.squareup.okhttp.internal.framed.ErrorCode)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void goAway (int, com.squareup.okhttp.internal.framed.ErrorCode, okio.ByteString)
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
okio.ByteString debugData
}
com/squareup/okhttp/internal/framed/Http2Test$12.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$12 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.ErrorCode val$expectedError
final synthetic okio.ByteString val$expectedData
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, com.squareup.okhttp.internal.framed.ErrorCode, okio.ByteString)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void goAway (int, com.squareup.okhttp.internal.framed.ErrorCode, okio.ByteString)
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
okio.ByteString debugData
}
com/squareup/okhttp/internal/framed/Http2Test$13.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$13 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void headers (boolean, boolean, int, int, java.util.List, com.squareup.okhttp.internal.framed.HeadersMode)
boolean outFinished
boolean inFinished
int streamId
int associatedStreamId
java.util.List headerBlock
com.squareup.okhttp.internal.framed.HeadersMode headersMode
}
com/squareup/okhttp/internal/framed/Http2Test$14.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$14 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void data (boolean, int, okio.BufferedSource, int) throws java.io.IOException
byte b
boolean inFinished
int streamId
okio.BufferedSource source
int length
okio.ByteString data
}
com/squareup/okhttp/internal/framed/Http2Test$2.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$2 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic java.util.List val$sentHeaders
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, java.util.List)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void priority (int, int, int, boolean)
int streamId
int streamDependency
int weight
boolean exclusive
public void headers (boolean, boolean, int, int, java.util.List, com.squareup.okhttp.internal.framed.HeadersMode)
boolean outFinished
boolean inFinished
int streamId
int associatedStreamId
java.util.List nameValueBlock
com.squareup.okhttp.internal.framed.HeadersMode headersMode
}
com/squareup/okhttp/internal/framed/Http2Test$3.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$3 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic java.util.List val$sentHeaders
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, java.util.List)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void headers (boolean, boolean, int, int, java.util.List, com.squareup.okhttp.internal.framed.HeadersMode)
boolean outFinished
boolean inFinished
int streamId
int associatedStreamId
java.util.List headerBlock
com.squareup.okhttp.internal.framed.HeadersMode headersMode
}
com/squareup/okhttp/internal/framed/Http2Test$4.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$4 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic java.util.List val$pushPromise
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, java.util.List)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void pushPromise (int, int, java.util.List)
int streamId
int promisedStreamId
java.util.List headerBlock
}
com/squareup/okhttp/internal/framed/Http2Test$5.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$5 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic java.util.List val$pushPromise
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test, java.util.List)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void pushPromise (int, int, java.util.List)
int streamId
int promisedStreamId
java.util.List headerBlock
}
com/squareup/okhttp/internal/framed/Http2Test$6.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$6 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void rstStream (int, com.squareup.okhttp.internal.framed.ErrorCode)
int streamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
}
com/squareup/okhttp/internal/framed/Http2Test$7.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$7 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void settings (boolean, com.squareup.okhttp.internal.framed.Settings)
boolean clearPrevious
com.squareup.okhttp.internal.framed.Settings settings
}
com/squareup/okhttp/internal/framed/Http2Test$8.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$8 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void ping (boolean, int, int)
boolean ack
int payload1
int payload2
}
com/squareup/okhttp/internal/framed/Http2Test$9.class
Http2Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Http2Test$9 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.Http2Test this$0
void <init> (com.squareup.okhttp.internal.framed.Http2Test)
com.squareup.okhttp.internal.framed.Http2Test this$0
public void data (boolean, int, okio.BufferedSource, int) throws java.io.IOException
byte b
boolean inFinished
int streamId
okio.BufferedSource source
int length
okio.ByteString data
}
com/squareup/okhttp/internal/framed/Http2Test.class
Http2Test.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.Http2Test extends java.lang.Object {
final okio.Buffer frame
final com.squareup.okhttp.internal.framed.FrameReader fr
final int expectedStreamId
public void <init> ()
public void unknownFrameTypeSkipped () throws java.io.IOException
public void onlyOneLiteralHeadersFrame () throws java.io.IOException
java.util.List sentHeaders
okio.Buffer headerBytes
public void headersWithPriority () throws java.io.IOException
java.util.List sentHeaders
okio.Buffer headerBytes
public void headersFrameThenContinuation () throws java.io.IOException
java.util.List sentHeaders
okio.Buffer headerBlock
public void pushPromise () throws java.io.IOException
int expectedPromisedStreamId
java.util.List pushPromise
okio.Buffer headerBytes
public void pushPromiseThenContinuation () throws java.io.IOException
int expectedPromisedStreamId
java.util.List pushPromise
okio.Buffer headerBlock
public void readRstStreamFrame () throws java.io.IOException
public void readSettingsFrame () throws java.io.IOException
int reducedTableSizeBytes
public void readSettingsFrameInvalidPushValue () throws java.io.IOException
java.io.IOException e
public void readSettingsFrameInvalidSettingId () throws java.io.IOException
java.io.IOException e
public void readSettingsFrameNegativeWindowSize () throws java.io.IOException
java.io.IOException e
public void readSettingsFrameNegativeFrameLength () throws java.io.IOException
java.io.IOException e
public void readSettingsFrameTooShortFrameLength () throws java.io.IOException
java.io.IOException e
public void readSettingsFrameTooLongFrameLength () throws java.io.IOException
java.io.IOException e
public void pingRoundTrip () throws java.io.IOException
int expectedPayload1
int expectedPayload2
public void maxLengthDataFrame () throws java.io.IOException
byte[] expectedData
public void compressedDataFrameWhenSettingDisabled () throws java.io.IOException
java.io.IOException e
byte[] expectedData
okio.Buffer zipped
int zippedSize
public void readPaddedDataFrame () throws java.io.IOException
int dataLength
byte[] expectedData
int paddingLength
byte[] padding
public void readPaddedDataFrameZeroPadding () throws java.io.IOException
int dataLength
byte[] expectedData
public void readPaddedHeadersFrame () throws java.io.IOException
int paddingLength
byte[] padding
okio.Buffer headerBlock
public void readPaddedHeadersFrameZeroPadding () throws java.io.IOException
okio.Buffer headerBlock
public void readPaddedHeadersFrameThenContinuation () throws java.io.IOException
int paddingLength
byte[] padding
okio.Buffer headerBlock
public void tooLargeDataFrame () throws java.io.IOException
IllegalArgumentException e
public void windowUpdateRoundTrip () throws java.io.IOException
long expectedWindowSizeIncrement
public void badWindowSizeIncrement () throws java.io.IOException
IllegalArgumentException e
IllegalArgumentException e
public void goAwayWithoutDebugDataRoundTrip () throws java.io.IOException
com.squareup.okhttp.internal.framed.ErrorCode expectedError
public void goAwayWithDebugDataRoundTrip () throws java.io.IOException
com.squareup.okhttp.internal.framed.ErrorCode expectedError
okio.ByteString expectedData
public void frameSizeError () throws java.io.IOException
IllegalArgumentException e
com.squareup.okhttp.internal.framed.Http2$Writer writer
public void ackSettingsAppliesMaxFrameSize () throws java.io.IOException
int newMaxFrameSize
com.squareup.okhttp.internal.framed.Http2$Writer writer
public void streamIdHasReservedBit () throws java.io.IOException
int streamId
IllegalArgumentException e
com.squareup.okhttp.internal.framed.Http2$Writer writer
private okio.Buffer literalHeaders (java.util.List) throws java.io.IOException
java.util.List sentHeaders
okio.Buffer out
private okio.Buffer sendHeaderFrames (boolean, java.util.List) throws java.io.IOException
boolean outFinished
java.util.List headers
okio.Buffer out
private okio.Buffer sendPushPromiseFrames (int, java.util.List) throws java.io.IOException
int streamId
java.util.List headers
okio.Buffer out
private okio.Buffer sendPingFrame (boolean, int, int) throws java.io.IOException
boolean ack
int payload1
int payload2
okio.Buffer out
private okio.Buffer sendGoAway (int, com.squareup.okhttp.internal.framed.ErrorCode, byte[]) throws java.io.IOException
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
byte[] debugData
okio.Buffer out
private okio.Buffer sendDataFrame (okio.Buffer) throws java.io.IOException
okio.Buffer data
okio.Buffer out
private okio.Buffer windowUpdate (long) throws java.io.IOException
long windowSizeIncrement
okio.Buffer out
private com.squareup.okhttp.internal.framed.FrameReader$Handler assertHeaderBlock ()
private com.squareup.okhttp.internal.framed.FrameReader$Handler assertData ()
private static okio.Buffer gzip (byte[]) throws java.io.IOException
byte[] data
okio.Buffer buffer
private static java.util.List largeHeaders ()
int i
String[] nameValues
char[] chars
private static void writeMedium (okio.BufferedSink, int) throws java.io.IOException
okio.BufferedSink sink
int i
}
com/squareup/okhttp/internal/framed/HttpOverHttp2Test.class
HttpOverHttp2Test.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.HttpOverHttp2Test extends com.squareup.okhttp.internal.framed.HttpOverSpdyTest {
public void <init> ()
public void serverSendsPushPromise_GET () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.PushPromise pushPromise
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.mockwebserver.RecordedRequest request
com.squareup.okhttp.mockwebserver.RecordedRequest pushedRequest
public void serverSendsPushPromise_HEAD () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.PushPromise pushPromise
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.mockwebserver.RecordedRequest request
com.squareup.okhttp.mockwebserver.RecordedRequest pushedRequest
public void settingsLimitsMaxConcurrentStreams () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings settings
java.net.HttpURLConnection settingsConnection
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
java.net.HttpURLConnection connection3
}
com/squareup/okhttp/internal/framed/HttpOverSpdy3Test.class
HttpOverSpdy3Test.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.HttpOverSpdy3Test extends com.squareup.okhttp.internal.framed.HttpOverSpdyTest {
public void <init> ()
}
com/squareup/okhttp/internal/framed/HttpOverSpdyTest$SpdyRequest.class
HttpOverSpdyTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.HttpOverSpdyTest$SpdyRequest extends java.lang.Object implements java.lang.Runnable {
String path
java.util.concurrent.CountDownLatch countDownLatch
final synthetic com.squareup.okhttp.internal.framed.HttpOverSpdyTest this$0
public void <init> (com.squareup.okhttp.internal.framed.HttpOverSpdyTest, java.lang.String, java.util.concurrent.CountDownLatch)
com.squareup.okhttp.internal.framed.HttpOverSpdyTest this$0
String path
java.util.concurrent.CountDownLatch countDownLatch
public void run ()
java.net.HttpURLConnection conn
Exception e
}
com/squareup/okhttp/internal/framed/HttpOverSpdyTest.class
HttpOverSpdyTest.java
package com.squareup.okhttp.internal.framed
public abstract com.squareup.okhttp.internal.framed.HttpOverSpdyTest extends java.lang.Object {
public final org.junit.rules.TemporaryFolder tempDir
public final com.squareup.okhttp.mockwebserver.MockWebServer server
private final com.squareup.okhttp.Protocol protocol
protected String hostHeader
protected javax.net.ssl.SSLContext sslContext
protected javax.net.ssl.HostnameVerifier hostnameVerifier
protected final com.squareup.okhttp.OkUrlFactory client
protected java.net.HttpURLConnection connection
protected com.squareup.okhttp.Cache cache
byte[] postBytes
protected void <init> (com.squareup.okhttp.Protocol)
com.squareup.okhttp.Protocol protocol
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void get () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void emptyResponse () throws java.io.IOException
public void noDefaultContentLengthOnStreamingPost () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void userSuppliedContentLengthHeader () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void closeAfterFlush () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void setFixedLengthStreamingModeSetsContentLength () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void spdyConnectionReuse () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void synchronousSpdyRequest () throws java.lang.Exception
java.util.concurrent.ExecutorService executor
java.util.concurrent.CountDownLatch countDownLatch
public void gzippedResponseBody () throws java.lang.Exception
public void authenticate () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest denied
com.squareup.okhttp.mockwebserver.RecordedRequest accepted
public void redirect () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
public void readAfterLastByte () throws java.lang.Exception
java.io.InputStream in
public void readResponseHeaderTimeout () throws java.lang.Exception
public void readTimeoutMoreGranularThanBodySize () throws java.lang.Exception
char[] body
public void readTimeoutOnSlowConnection () throws java.lang.Exception
java.net.SocketTimeoutException expected
char[] body
public void spdyConnectionTimeout () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void responsesAreCached () throws java.io.IOException
public void conditionalCache () throws java.io.IOException
public void responseCachedWithoutConsumingFullBody () throws java.io.IOException
java.net.HttpURLConnection connection1
java.io.InputStream in1
java.net.HttpURLConnection connection2
java.io.InputStream in2
public void acceptAndTransmitCookies () throws java.lang.Exception
java.net.CookieManager cookieManager
com.squareup.okhttp.HttpUrl url
java.util.Map requestHeaders
com.squareup.okhttp.mockwebserver.RecordedRequest requestA
com.squareup.okhttp.mockwebserver.RecordedRequest requestB
public void disconnectWithStreamNotEstablished () throws java.lang.Exception
com.squareup.okhttp.ConnectionPool connectionPool
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
void assertContent (java.lang.String, java.net.HttpURLConnection, int) throws java.io.IOException
String expected
java.net.HttpURLConnection connection
int limit
private java.lang.String readAscii (java.io.InputStream, int) throws java.io.IOException
int value
int i
java.io.InputStream in
int count
StringBuilder result
public okio.Buffer gzip (java.lang.String) throws java.io.IOException
String bytes
okio.Buffer bytesOut
okio.BufferedSink sink
static synthetic java.lang.String access$000 (com.squareup.okhttp.internal.framed.HttpOverSpdyTest, java.io.InputStream, int) throws java.io.IOException
com.squareup.okhttp.internal.framed.HttpOverSpdyTest x0
java.io.InputStream x1
int x2
}
com/squareup/okhttp/internal/framed/HuffmanTest.class
HuffmanTest.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.HuffmanTest extends java.lang.Object {
public void <init> ()
public void roundTripForRequestAndResponse () throws java.io.IOException
int i
String s
java.util.Random random
byte[] buf
private void assertRoundTrip (byte[]) throws java.io.IOException
byte[] buf
java.io.ByteArrayOutputStream baos
java.io.DataOutputStream dos
byte[] decodedBytes
}
com/squareup/okhttp/internal/framed/MockSpdyPeer$1.class
MockSpdyPeer.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.MockSpdyPeer$1 extends java.lang.Object implements java.lang.Runnable {
final synthetic java.util.concurrent.CountDownLatch val$startSignal
final synthetic com.squareup.okhttp.internal.framed.MockSpdyPeer this$0
void <init> (com.squareup.okhttp.internal.framed.MockSpdyPeer, java.util.concurrent.CountDownLatch)
com.squareup.okhttp.internal.framed.MockSpdyPeer this$0
public void run ()
java.io.IOException e
}
com/squareup/okhttp/internal/framed/MockSpdyPeer$InFrame.class
MockSpdyPeer.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame extends java.lang.Object implements com.squareup.okhttp.internal.framed.FrameReader$Handler {
public final int sequence
public final com.squareup.okhttp.internal.framed.FrameReader reader
public int type
public boolean clearPrevious
public boolean outFinished
public boolean inFinished
public int streamId
public int associatedStreamId
public com.squareup.okhttp.internal.framed.ErrorCode errorCode
public long windowSizeIncrement
public java.util.List headerBlock
public byte[] data
public com.squareup.okhttp.internal.framed.Settings settings
public com.squareup.okhttp.internal.framed.HeadersMode headersMode
public boolean ack
public int payload1
public int payload2
public void <init> (int, com.squareup.okhttp.internal.framed.FrameReader)
int sequence
com.squareup.okhttp.internal.framed.FrameReader reader
public void settings (boolean, com.squareup.okhttp.internal.framed.Settings)
boolean clearPrevious
com.squareup.okhttp.internal.framed.Settings settings
public void ackSettings ()
public void headers (boolean, boolean, int, int, java.util.List, com.squareup.okhttp.internal.framed.HeadersMode)
boolean outFinished
boolean inFinished
int streamId
int associatedStreamId
java.util.List headerBlock
com.squareup.okhttp.internal.framed.HeadersMode headersMode
public void data (boolean, int, okio.BufferedSource, int) throws java.io.IOException
boolean inFinished
int streamId
okio.BufferedSource source
int length
public void rstStream (int, com.squareup.okhttp.internal.framed.ErrorCode)
int streamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
public void ping (boolean, int, int)
boolean ack
int payload1
int payload2
public void goAway (int, com.squareup.okhttp.internal.framed.ErrorCode, okio.ByteString)
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
okio.ByteString debugData
public void windowUpdate (int, long)
int streamId
long windowSizeIncrement
public void priority (int, int, int, boolean)
int streamId
int streamDependency
int weight
boolean exclusive
public void pushPromise (int, int, java.util.List)
int streamId
int associatedStreamId
java.util.List headerBlock
public void alternateService (int, java.lang.String, okio.ByteString, java.lang.String, int, long)
int streamId
String origin
okio.ByteString protocol
String host
int port
long maxAge
}
com/squareup/okhttp/internal/framed/MockSpdyPeer$OutFrame.class
MockSpdyPeer.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame extends java.lang.Object {
private final int sequence
private final long start
private final boolean truncated
private void <init> (int, long, boolean)
int sequence
long start
boolean truncated
synthetic void <init> (int, long, boolean, com.squareup.okhttp.internal.framed.MockSpdyPeer$1)
int x0
long x1
boolean x2
com.squareup.okhttp.internal.framed.MockSpdyPeer$1 x3
static synthetic long access$100 (com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame)
com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame x0
static synthetic int access$200 (com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame)
com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame x0
static synthetic boolean access$500 (com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame)
com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame x0
}
com/squareup/okhttp/internal/framed/MockSpdyPeer.class
MockSpdyPeer.java
package com.squareup.okhttp.internal.framed
public final com.squareup.okhttp.internal.framed.MockSpdyPeer extends java.lang.Object implements java.io.Closeable {
private static final java.util.logging.Logger logger
private int frameCount
private boolean client
private com.squareup.okhttp.internal.framed.Variant variant
private final okio.Buffer bytesOut
private com.squareup.okhttp.internal.framed.FrameWriter frameWriter
private final java.util.List outFrames
private final java.util.concurrent.BlockingQueue inFrames
private int port
private final java.util.concurrent.ExecutorService executor
private java.net.ServerSocket serverSocket
private java.net.Socket socket
public void <init> ()
public void setVariantAndClient (com.squareup.okhttp.internal.framed.Variant, boolean)
com.squareup.okhttp.internal.framed.Variant variant
boolean client
public void acceptFrame ()
public int maxOutboundDataLength ()
public int frameCount ()
public com.squareup.okhttp.internal.framed.FrameWriter sendFrame ()
public void sendFrame (byte[]) throws java.io.IOException
byte[] frame
public com.squareup.okhttp.internal.framed.FrameWriter truncateLastFrame (int)
int length
com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame lastFrame
okio.Buffer fullBuffer
public com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame takeFrame () throws java.lang.InterruptedException
public void play () throws java.io.IOException
java.util.concurrent.CountDownLatch startSignal
private void readAndWriteFrames () throws java.io.IOException
boolean truncated
long end
long start
boolean truncated
long end
int length
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame inFrame
int i
java.io.OutputStream out
java.io.InputStream in
com.squareup.okhttp.internal.framed.FrameReader reader
java.util.Iterator outFramesIterator
byte[] outBytes
com.squareup.okhttp.internal.framed.MockSpdyPeer$OutFrame nextOutFrame
public java.net.Socket openSocket () throws java.io.IOException
public synchronized void close () throws java.io.IOException
public java.lang.String toString ()
static synthetic void access$300 (com.squareup.okhttp.internal.framed.MockSpdyPeer) throws java.io.IOException
com.squareup.okhttp.internal.framed.MockSpdyPeer x0
static synthetic java.util.logging.Logger access$400 ()
static void <clinit> ()
}
com/squareup/okhttp/internal/framed/SettingsTest.class
SettingsTest.java
package com.squareup.okhttp.internal.framed
public final com.squareup.okhttp.internal.framed.SettingsTest extends java.lang.Object {
public void <init> ()
public void unsetField ()
com.squareup.okhttp.internal.framed.Settings settings
public void setFields ()
com.squareup.okhttp.internal.framed.Settings settings
public void isPersisted ()
com.squareup.okhttp.internal.framed.Settings settings
public void persistValue ()
com.squareup.okhttp.internal.framed.Settings settings
public void merge ()
com.squareup.okhttp.internal.framed.Settings a
com.squareup.okhttp.internal.framed.Settings b
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest$1.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest$1 extends com.squareup.okhttp.internal.framed.FramedConnection$Listener {
final synthetic java.util.concurrent.atomic.AtomicInteger val$receiveCount
final synthetic java.util.List val$pushHeaders
final synthetic com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3ConnectionTest, java.util.concurrent.atomic.AtomicInteger, java.util.List)
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
public void onStream (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
com.squareup.okhttp.internal.framed.FramedStream stream
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest$2.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest$2 extends com.squareup.okhttp.internal.framed.FramedConnection$Listener {
final synthetic java.util.concurrent.atomic.AtomicInteger val$receiveCount
final synthetic com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3ConnectionTest, java.util.concurrent.atomic.AtomicInteger)
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
public void onStream (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
com.squareup.okhttp.internal.framed.FramedStream stream
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest$3.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest$3 extends com.squareup.okhttp.internal.framed.FramedConnection$Listener {
final synthetic java.util.concurrent.atomic.AtomicInteger val$maxConcurrentStreams
final synthetic com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3ConnectionTest, java.util.concurrent.atomic.AtomicInteger)
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
public void onStream (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
com.squareup.okhttp.internal.framed.FramedStream stream
public void onSettings (com.squareup.okhttp.internal.framed.FramedConnection)
com.squareup.okhttp.internal.framed.FramedConnection connection
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest$4.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest$4 extends com.squareup.okhttp.internal.framed.FramedConnection$Listener {
final synthetic java.util.concurrent.atomic.AtomicInteger val$receiveCount
final synthetic com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3ConnectionTest, java.util.concurrent.atomic.AtomicInteger)
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
public void onStream (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
com.squareup.okhttp.internal.framed.FramedStream stream
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest$5.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest$5 extends java.lang.Thread {
final synthetic long val$delayMillis
final synthetic Thread val$toInterrupt
final synthetic com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3ConnectionTest, java.lang.String, long, java.lang.Thread)
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
String arg0
public void run ()
InterruptedException e
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest$6.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest$6 extends okio.AsyncTimeout {
final synthetic java.util.concurrent.CountDownLatch val$latch
final synthetic com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3ConnectionTest, java.util.concurrent.CountDownLatch)
com.squareup.okhttp.internal.framed.Spdy3ConnectionTest this$0
protected void timedOut ()
}
com/squareup/okhttp/internal/framed/Spdy3ConnectionTest.class
Spdy3ConnectionTest.java
package com.squareup.okhttp.internal.framed
public final com.squareup.okhttp.internal.framed.Spdy3ConnectionTest extends java.lang.Object {
private static final com.squareup.okhttp.internal.framed.Variant SPDY3
public void <init> ()
public void clientCreatesStreamAndServerReplies () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame requestData
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void headersOnlyStreamIsClosedAfterReplyHeaders () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientCreatesStreamAndServerRepliesWithFin () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void serverCreatesStreamAndClientReplies () throws java.lang.Exception
java.util.List pushHeaders
java.util.concurrent.atomic.AtomicInteger receiveCount
com.squareup.okhttp.internal.framed.FramedConnection$Listener handler
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame reply
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void replyWithNoData () throws java.lang.Exception
java.util.concurrent.atomic.AtomicInteger receiveCount
com.squareup.okhttp.internal.framed.FramedConnection$Listener listener
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame reply
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void serverPingsClient () throws java.lang.Exception
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientPingsServer () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.Ping ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame pingFrame
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void unexpectedPingIsNotReturned () throws java.lang.Exception
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping2
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping4
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void serverSendsSettingsToClient () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings settings
java.util.concurrent.atomic.AtomicInteger maxConcurrentStreams
com.squareup.okhttp.internal.framed.FramedConnection$Listener listener
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void multipleSettingsFramesAreMerged () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings settings1
com.squareup.okhttp.internal.framed.Settings settings2
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clearSettingsBeforeMerge () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings settings1
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.Settings settings2
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void bogusDataFrameDoesNotDisruptConnection () throws java.lang.Exception
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void bogusReplyFrameDoesNotDisruptConnection () throws java.lang.Exception
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientClosesClientOutputStream () throws java.lang.Exception
Exception expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame data
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame fin
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void serverClosesClientOutputStream () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientClosesClientInputStream () throws java.lang.Exception
java.io.IOException expected
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source in
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientClosesClientInputStreamIfOutputStreamIsClosed () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source source
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame data
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame fin
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void serverClosesClientInputStream () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source source
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void remoteDoubleSynReply () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void remoteDoubleSynStream () throws java.lang.Exception
java.util.concurrent.atomic.AtomicInteger receiveCount
com.squareup.okhttp.internal.framed.FramedConnection$Listener listener
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame reply
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void remoteSendsDataAfterInFinished () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientDoesNotLimitFlowControl () throws java.lang.Exception
int dataLength
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void remoteSendsRefusedStreamBeforeReplyHeaders () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void receiveGoAway () throws java.lang.Exception
java.io.IOException expected
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream1
com.squareup.okhttp.internal.framed.FramedStream stream2
okio.BufferedSink sink1
okio.BufferedSink sink2
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream1
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream2
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame data1
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void sendGoAway () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.Ping ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream1
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame pingFrame
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame goaway
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void noPingsAfterShutdown () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame goaway
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void close () throws java.lang.Exception
java.io.IOException expected
java.io.IOException expected
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.BufferedSink sink
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame goaway
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void closeCancelsPings () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.Ping ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void getResponseHeadersTimesOut () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
long startNanos
long elapsedNanos
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void readTimesOut () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source source
long startNanos
long elapsedNanos
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void writeTimesOutAwaitingStreamWindow () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings peerSettings
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Sink sink
long startNanos
long elapsedNanos
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void writeTimesOutAwaitingConnectionWindow () throws java.lang.Exception
com.squareup.okhttp.internal.framed.Settings peerSettings
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Sink sink
long startNanos
long elapsedNanos
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void outgoingWritesAreBatched () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Sink sink
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame data
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void headers () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void headersBeforeReply () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame ping
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame rstStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void readSendsWindowUpdate () throws java.lang.Exception
int i
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame windowUpdate
int j
java.util.List windowUpdateStreamIds
int i
int windowSize
int windowUpdateThreshold
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source in
okio.Buffer buffer
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
private okio.Buffer data (int)
int byteCount
public void serverSendsEmptyDataClientDoesntSendWindowUpdate () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream client
com.squareup.okhttp.internal.framed.MockSpdyPeer$InFrame synStream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void clientSendsEmptyDataServerDoesntSendWindowUpdate () throws java.lang.Exception
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream client
okio.BufferedSink out
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void testTruncatedDataFrame () throws java.lang.Exception
java.io.IOException expected
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
okio.Source in
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void blockedStreamDoesntStarveNewStream () throws java.lang.Exception
int i
int framesThatFillWindow
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream1
okio.BufferedSink out1
com.squareup.okhttp.internal.framed.FramedStream stream2
okio.BufferedSink out2
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
public void headerBlockHasTrailingCompressedBytes512 () throws java.lang.Exception
String frame
public void headerBlockHasTrailingCompressedBytes2048 () throws java.lang.Exception
String frame
private void headerBlockHasTrailingCompressedBytes (java.lang.String, int) throws java.io.IOException
byte[] trailingCompressedBytes
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
String frame
int length
public void socketExceptionWhileWritingHeaders () throws java.lang.Exception
String longString
java.net.Socket socket
com.squareup.okhttp.internal.framed.FramedConnection connection
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
private byte[] randomBytes (int)
int length
byte[] bytes
private com.squareup.okhttp.internal.framed.FramedConnection connection (com.squareup.okhttp.internal.framed.MockSpdyPeer, com.squareup.okhttp.internal.framed.Variant) throws java.io.IOException
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
com.squareup.okhttp.internal.framed.Variant variant
private com.squareup.okhttp.internal.framed.FramedConnection$Builder connectionBuilder (com.squareup.okhttp.internal.framed.MockSpdyPeer, com.squareup.okhttp.internal.framed.Variant) throws java.io.IOException
com.squareup.okhttp.internal.framed.MockSpdyPeer peer
com.squareup.okhttp.internal.framed.Variant variant
private void assertStreamData (java.lang.String, okio.Source) throws java.io.IOException
String expected
okio.Source source
String actual
private void interruptAfterDelay (long)
long delayMillis
Thread toInterrupt
private void awaitWatchdogIdle () throws java.lang.InterruptedException
java.util.concurrent.CountDownLatch latch
okio.AsyncTimeout watchdogJob
static int roundUp (int, int)
int num
int divisor
static void <clinit> ()
}
com/squareup/okhttp/internal/framed/Spdy3Test$1.class
Spdy3Test.java
package com.squareup.okhttp.internal.framed
com.squareup.okhttp.internal.framed.Spdy3Test$1 extends com.squareup.okhttp.internal.framed.BaseTestHandler {
final synthetic com.squareup.okhttp.internal.framed.ErrorCode val$expectedError
final synthetic com.squareup.okhttp.internal.framed.Spdy3Test this$0
void <init> (com.squareup.okhttp.internal.framed.Spdy3Test, com.squareup.okhttp.internal.framed.ErrorCode)
com.squareup.okhttp.internal.framed.Spdy3Test this$0
public void goAway (int, com.squareup.okhttp.internal.framed.ErrorCode, okio.ByteString)
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
okio.ByteString debugData
}
com/squareup/okhttp/internal/framed/Spdy3Test.class
Spdy3Test.java
package com.squareup.okhttp.internal.framed
public com.squareup.okhttp.internal.framed.Spdy3Test extends java.lang.Object {
static final int expectedStreamId
public void <init> ()
public void tooLargeDataFrame () throws java.io.IOException
IllegalArgumentException e
public void badWindowSizeIncrement () throws java.io.IOException
IllegalArgumentException e
IllegalArgumentException e
public void goAwayRoundTrip () throws java.io.IOException
okio.Buffer frame
com.squareup.okhttp.internal.framed.ErrorCode expectedError
com.squareup.okhttp.internal.framed.FrameReader fr
private void sendDataFrame (okio.Buffer) throws java.io.IOException
okio.Buffer source
com.squareup.okhttp.internal.framed.Spdy3$Writer writer
private void windowUpdate (long) throws java.io.IOException
long increment
private okio.Buffer sendGoAway (int, com.squareup.okhttp.internal.framed.ErrorCode, byte[]) throws java.io.IOException
int lastGoodStreamId
com.squareup.okhttp.internal.framed.ErrorCode errorCode
byte[] debugData
okio.Buffer out
}
com/squareup/okhttp/internal/http/
com/squareup/okhttp/internal/http/CookiesTest$1.class
CookiesTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.CookiesTest$1 extends java.net.CookieManager {
final synthetic java.util.Map val$cookieHandlerHeaders
final synthetic com.squareup.okhttp.internal.http.CookiesTest this$0
void <init> (com.squareup.okhttp.internal.http.CookiesTest, java.util.Map)
com.squareup.okhttp.internal.http.CookiesTest this$0
public java.util.Map get (java.net.URI, java.util.Map) throws java.io.IOException
java.net.URI uri
java.util.Map requestHeaders
java.util.Map result
}
com/squareup/okhttp/internal/http/CookiesTest$2.class
CookiesTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.CookiesTest$2 extends java.net.CookieManager {
final synthetic com.squareup.okhttp.internal.http.CookiesTest this$0
void <init> (com.squareup.okhttp.internal.http.CookiesTest)
com.squareup.okhttp.internal.http.CookiesTest this$0
public java.util.Map get (java.net.URI, java.util.Map) throws java.io.IOException
java.net.URI uri
java.util.Map requestHeaders
java.util.Map result
}
com/squareup/okhttp/internal/http/CookiesTest.class
CookiesTest.java
package com.squareup.okhttp.internal.http
public com.squareup.okhttp.internal.http.CookiesTest extends java.lang.Object {
private com.squareup.okhttp.OkHttpClient client
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void testNetscapeResponse () throws java.lang.Exception
java.net.CookieManager cookieManager
com.squareup.okhttp.mockwebserver.MockWebServer server
java.util.List cookies
java.net.HttpCookie cookie
public void testRfc2109Response () throws java.lang.Exception
java.net.CookieManager cookieManager
com.squareup.okhttp.mockwebserver.MockWebServer server
java.util.List cookies
java.net.HttpCookie cookie
public void testRfc2965Response () throws java.lang.Exception
java.net.CookieManager cookieManager
com.squareup.okhttp.mockwebserver.MockWebServer server
java.util.List cookies
java.net.HttpCookie cookie
public void testQuotedAttributeValues () throws java.lang.Exception
java.net.CookieManager cookieManager
com.squareup.okhttp.mockwebserver.MockWebServer server
java.util.List cookies
java.net.HttpCookie cookie
public void testSendingCookiesFromStore () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockWebServer server
java.net.CookieManager cookieManager
java.net.HttpCookie cookieA
java.net.HttpCookie cookieB
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void testRedirectsDoNotIncludeTooManyCookies () throws java.lang.Exception
String header
com.squareup.okhttp.mockwebserver.MockWebServer redirectTarget
com.squareup.okhttp.mockwebserver.MockWebServer redirectSource
java.net.CookieManager cookieManager
java.net.HttpCookie cookie
String portList
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void testHeadersSentToCookieHandler () throws java.io.IOException java.lang.InterruptedException
java.util.Map cookieHandlerHeaders
com.squareup.okhttp.mockwebserver.MockWebServer server
java.net.HttpURLConnection connection
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void testCookiesSentIgnoresCase () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockWebServer server
com.squareup.okhttp.mockwebserver.RecordedRequest request
private void assertContains (java.util.Collection, java.lang.String)
String c
java.util.Collection collection
String element
private transient void assertContainsAll (java.util.Collection, java.lang.String[])
String s
java.util.Collection collection
String[] toFind
private java.util.Map get (com.squareup.okhttp.mockwebserver.MockWebServer, java.lang.String) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockWebServer server
String path
java.net.URLConnection connection
java.util.Map headers
}
com/squareup/okhttp/internal/http/DisconnectTest$1.class
DisconnectTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.DisconnectTest$1 extends com.squareup.okhttp.DelegatingServerSocketFactory {
final synthetic com.squareup.okhttp.internal.http.DisconnectTest this$0
void <init> (com.squareup.okhttp.internal.http.DisconnectTest, javax.net.ServerSocketFactory)
com.squareup.okhttp.internal.http.DisconnectTest this$0
javax.net.ServerSocketFactory delegate
protected java.net.ServerSocket configureServerSocket (java.net.ServerSocket) throws java.io.IOException
java.net.ServerSocket serverSocket
}
com/squareup/okhttp/internal/http/DisconnectTest$2.class
DisconnectTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.DisconnectTest$2 extends com.squareup.okhttp.DelegatingSocketFactory {
final synthetic com.squareup.okhttp.internal.http.DisconnectTest this$0
void <init> (com.squareup.okhttp.internal.http.DisconnectTest, javax.net.SocketFactory)
com.squareup.okhttp.internal.http.DisconnectTest this$0
javax.net.SocketFactory delegate
protected java.net.Socket configureSocket (java.net.Socket) throws java.io.IOException
java.net.Socket socket
}
com/squareup/okhttp/internal/http/DisconnectTest$3.class
DisconnectTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.DisconnectTest$3 extends java.lang.Thread {
final synthetic int val$delayMillis
final synthetic java.net.HttpURLConnection val$connection
final synthetic com.squareup.okhttp.internal.http.DisconnectTest this$0
void <init> (com.squareup.okhttp.internal.http.DisconnectTest, int, java.net.HttpURLConnection)
com.squareup.okhttp.internal.http.DisconnectTest this$0
public void run ()
InterruptedException e
}
com/squareup/okhttp/internal/http/DisconnectTest.class
DisconnectTest.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.DisconnectTest extends java.lang.Object {
private static final int SOCKET_BUFFER_SIZE
private com.squareup.okhttp.mockwebserver.MockWebServer server
private com.squareup.okhttp.OkHttpClient client
public void <init> ()
public void setUp () throws java.lang.Exception
public void interruptWritingRequestBody () throws java.lang.Exception
int i
int requestBodySize
java.net.HttpURLConnection connection
java.io.OutputStream requestBody
byte[] buffer
public void interruptReadingResponseBody () throws java.lang.Exception
int responseBodySize
java.net.HttpURLConnection connection
java.io.InputStream responseBody
byte[] buffer
private void disconnectLater (java.net.HttpURLConnection, int)
java.net.HttpURLConnection connection
int delayMillis
Thread interruptingCow
}
com/squareup/okhttp/internal/http/ExternalHttp2Example$1.class
ExternalHttp2Example.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.ExternalHttp2Example$1 extends java.lang.Object implements javax.net.ssl.HostnameVerifier {
void <init> ()
public boolean verify (java.lang.String, javax.net.ssl.SSLSession)
String s
javax.net.ssl.SSLSession sslSession
}
com/squareup/okhttp/internal/http/ExternalHttp2Example.class
ExternalHttp2Example.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.ExternalHttp2Example extends java.lang.Object {
public void <init> ()
public static void main (java.lang.String[]) throws java.lang.Exception
String[] args
java.net.URL url
com.squareup.okhttp.OkHttpClient client
javax.net.ssl.HttpsURLConnection connection
int responseCode
java.util.List protocolValues
java.io.BufferedReader reader
String line
}
com/squareup/okhttp/internal/http/ExternalSpdyExample$1.class
ExternalSpdyExample.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.ExternalSpdyExample$1 extends java.lang.Object implements javax.net.ssl.HostnameVerifier {
void <init> ()
public boolean verify (java.lang.String, javax.net.ssl.SSLSession)
String s
javax.net.ssl.SSLSession sslSession
}
com/squareup/okhttp/internal/http/ExternalSpdyExample.class
ExternalSpdyExample.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.ExternalSpdyExample extends java.lang.Object {
public void <init> ()
public static void main (java.lang.String[]) throws java.lang.Exception
String[] args
java.net.URL url
com.squareup.okhttp.OkHttpClient client
javax.net.ssl.HttpsURLConnection connection
int responseCode
java.util.List protocolValues
java.io.BufferedReader reader
String line
}
com/squareup/okhttp/internal/http/FakeDns.class
FakeDns.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.FakeDns extends java.lang.Object implements com.squareup.okhttp.Dns {
private java.util.List requestedHosts
private java.util.List addresses
public void <init> ()
public com.squareup.okhttp.internal.http.FakeDns addresses (java.util.List)
java.util.List addresses
public com.squareup.okhttp.internal.http.FakeDns unknownHost ()
public java.net.InetAddress address (int)
int index
public java.util.List lookup (java.lang.String) throws java.net.UnknownHostException
String hostname
public transient void assertRequests (java.lang.String[])
String[] expectedHosts
}
com/squareup/okhttp/internal/http/HeadersTest.class
HeadersTest.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.HeadersTest extends java.lang.Object {
public void <init> ()
public void parseNameValueBlock () throws java.io.IOException
java.util.List headerBlock
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.Headers headers
public void readNameValueBlockDropsForbiddenHeadersSpdy3 () throws java.io.IOException
java.util.List headerBlock
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.Headers headers
public void readNameValueBlockDropsForbiddenHeadersHttp2 () throws java.io.IOException
java.util.List headerBlock
com.squareup.okhttp.Request request
com.squareup.okhttp.Response response
com.squareup.okhttp.Headers headers
public void spdy3HeadersList ()
com.squareup.okhttp.Request request
java.util.List headerBlock
java.util.List expected
public void spdy3HeadersListDropsForbiddenHeadersSpdy3 ()
com.squareup.okhttp.Request request
java.util.List expected
public void http2HeadersListDropsForbiddenHeadersHttp2 ()
com.squareup.okhttp.Request request
java.util.List expected
public void ofTrims ()
com.squareup.okhttp.Headers headers
public void addParsing ()
com.squareup.okhttp.Headers headers
public void addThrowsOnEmptyName ()
public void addThrowsOnNoColon ()
public void addThrowsOnMultiColon ()
public void ofThrowsOddNumberOfHeaders ()
public void ofThrowsOnNull ()
public void ofThrowsOnEmptyName ()
public void ofAcceptsEmptyValue ()
com.squareup.okhttp.Headers headers
public void ofMakesDefensiveCopy ()
String[] namesAndValues
com.squareup.okhttp.Headers headers
public void ofRejectsNulChar ()
public void ofMapThrowsOnNull ()
public void ofMapThrowsOnEmptyName ()
public void ofMapThrowsOnBlankName ()
public void ofMapAcceptsEmptyValue ()
com.squareup.okhttp.Headers headers
public void ofMapTrimsKey ()
com.squareup.okhttp.Headers headers
public void ofMapTrimsValue ()
com.squareup.okhttp.Headers headers
public void ofMapMakesDefensiveCopy ()
java.util.Map namesAndValues
com.squareup.okhttp.Headers headers
public void ofMapRejectsNulCharInName ()
public void ofMapRejectsNulCharInValue ()
public void toMultimapGroupsHeaders ()
com.squareup.okhttp.Headers headers
java.util.Map headerMap
}
com/squareup/okhttp/internal/http/HttpDateTest.class
HttpDateTest.java
package com.squareup.okhttp.internal.http
public com.squareup.okhttp.internal.http.HttpDateTest extends java.lang.Object {
private java.util.TimeZone originalDefault
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void parseStandardFormats () throws java.lang.Exception
public void format () throws java.lang.Exception
public void parseNonStandardStrings () throws java.lang.Exception
}
com/squareup/okhttp/internal/http/RecordingProxySelector.class
RecordingProxySelector.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.RecordingProxySelector extends java.net.ProxySelector {
final java.util.List requestedUris
java.util.List proxies
final java.util.List failures
public void <init> ()
public java.util.List select (java.net.URI)
java.net.URI uri
public transient void assertRequests (java.net.URI[])
java.net.URI[] expectedUris
public void connectFailed (java.net.URI, java.net.SocketAddress, java.io.IOException)
java.net.URI uri
java.net.SocketAddress sa
java.io.IOException ioe
java.net.InetSocketAddress socketAddress
}
com/squareup/okhttp/internal/http/RouteExceptionTest.class
RouteExceptionTest.java
package com.squareup.okhttp.internal.http
public com.squareup.okhttp.internal.http.RouteExceptionTest extends java.lang.Object {
public void <init> ()
public void getConnectionIOException_single ()
java.io.IOException firstException
com.squareup.okhttp.internal.http.RouteException re
public void getConnectionIOException_multiple ()
java.io.IOException firstException
java.io.IOException secondException
java.io.IOException thirdException
com.squareup.okhttp.internal.http.RouteException re
java.io.IOException connectionIOException
Throwable[] thirdSuppressedExceptions
Throwable[] secondSuppressedException
}
com/squareup/okhttp/internal/http/RouteSelectorTest.class
RouteSelectorTest.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.RouteSelectorTest extends java.lang.Object {
public final java.util.List connectionSpecs
private static final int proxyAPort
private static final String proxyAHost
private static final java.net.Proxy proxyA
private static final int proxyBPort
private static final String proxyBHost
private static final java.net.Proxy proxyB
private String uriHost
private int uriPort
private javax.net.SocketFactory socketFactory
private final javax.net.ssl.SSLContext sslContext
private final javax.net.ssl.SSLSocketFactory sslSocketFactory
private javax.net.ssl.HostnameVerifier hostnameVerifier
private final com.squareup.okhttp.Authenticator authenticator
private final java.util.List protocols
private final com.squareup.okhttp.internal.http.FakeDns dns
private final com.squareup.okhttp.internal.http.RecordingProxySelector proxySelector
private com.squareup.okhttp.internal.RouteDatabase routeDatabase
public void <init> ()
public void setUp () throws java.lang.Exception
public void singleRoute () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void singleRouteReturnsFailedRoute () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
com.squareup.okhttp.Route route
public void explicitProxyTriesThatProxysAddressesOnly () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void explicitDirectProxy () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void proxySelectorReturnsNull () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void proxySelectorReturnsNoProxies () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void proxySelectorReturnsMultipleProxies () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void proxySelectorDirectConnectionsAreSkipped () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void proxyDnsFailureContinuesToNextProxy () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void multipleProxiesMultipleInetAddressesMultipleConfigurations () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
public void failedRoutesAreLast () throws java.lang.Exception
com.squareup.okhttp.Address address
com.squareup.okhttp.internal.http.RouteSelector routeSelector
int numberOfAddresses
java.util.List regularRoutes
java.util.List routesWithFailedRoute
public void getHostString () throws java.lang.Exception
java.net.InetSocketAddress socketAddress
private void assertRoute (com.squareup.okhttp.Route, com.squareup.okhttp.Address, java.net.Proxy, java.net.InetAddress, int)
com.squareup.okhttp.Route route
com.squareup.okhttp.Address address
java.net.Proxy proxy
java.net.InetAddress socketAddress
int socketPort
private com.squareup.okhttp.Address httpAddress ()
private com.squareup.okhttp.Address httpsAddress ()
private static java.util.List makeFakeAddresses (int, int)
int i
java.util.List result
java.net.UnknownHostException e
int prefix
int count
static void <clinit> ()
}
com/squareup/okhttp/internal/http/StatusLineTest.class
StatusLineTest.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.StatusLineTest extends java.lang.Object {
public void <init> ()
public void parse () throws java.io.IOException
String message
int version
int code
com.squareup.okhttp.internal.http.StatusLine statusLine
public void emptyMessage () throws java.io.IOException
int version
int code
com.squareup.okhttp.internal.http.StatusLine statusLine
public void emptyMessageAndNoLeadingSpace () throws java.io.IOException
int version
int code
com.squareup.okhttp.internal.http.StatusLine statusLine
public void shoutcast () throws java.io.IOException
com.squareup.okhttp.internal.http.StatusLine statusLine
public void missingProtocol () throws java.io.IOException
public void protocolVersions () throws java.io.IOException
public void nonThreeDigitCode () throws java.io.IOException
public void truncated () throws java.io.IOException
public void wrongMessageDelimiter () throws java.io.IOException
private void assertInvalid (java.lang.String) throws java.io.IOException
String statusLine
}
com/squareup/okhttp/internal/http/ThreadInterruptTest$1.class
ThreadInterruptTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.ThreadInterruptTest$1 extends com.squareup.okhttp.DelegatingServerSocketFactory {
final synthetic com.squareup.okhttp.internal.http.ThreadInterruptTest this$0
void <init> (com.squareup.okhttp.internal.http.ThreadInterruptTest, javax.net.ServerSocketFactory)
com.squareup.okhttp.internal.http.ThreadInterruptTest this$0
javax.net.ServerSocketFactory delegate
protected java.net.ServerSocket configureServerSocket (java.net.ServerSocket) throws java.io.IOException
java.net.ServerSocket serverSocket
}
com/squareup/okhttp/internal/http/ThreadInterruptTest$2.class
ThreadInterruptTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.ThreadInterruptTest$2 extends com.squareup.okhttp.DelegatingSocketFactory {
final synthetic com.squareup.okhttp.internal.http.ThreadInterruptTest this$0
void <init> (com.squareup.okhttp.internal.http.ThreadInterruptTest, javax.net.SocketFactory)
com.squareup.okhttp.internal.http.ThreadInterruptTest this$0
javax.net.SocketFactory delegate
protected java.net.Socket configureSocket (java.net.Socket) throws java.io.IOException
java.net.Socket socket
}
com/squareup/okhttp/internal/http/ThreadInterruptTest$3.class
ThreadInterruptTest.java
package com.squareup.okhttp.internal.http
com.squareup.okhttp.internal.http.ThreadInterruptTest$3 extends java.lang.Thread {
final synthetic int val$delayMillis
final synthetic Thread val$toInterrupt
final synthetic com.squareup.okhttp.internal.http.ThreadInterruptTest this$0
void <init> (com.squareup.okhttp.internal.http.ThreadInterruptTest, int, java.lang.Thread)
com.squareup.okhttp.internal.http.ThreadInterruptTest this$0
public void run ()
InterruptedException e
}
com/squareup/okhttp/internal/http/ThreadInterruptTest.class
ThreadInterruptTest.java
package com.squareup.okhttp.internal.http
public final com.squareup.okhttp.internal.http.ThreadInterruptTest extends java.lang.Object {
private static final int SOCKET_BUFFER_SIZE
private com.squareup.okhttp.mockwebserver.MockWebServer server
private com.squareup.okhttp.OkHttpClient client
public void <init> ()
public void setUp () throws java.lang.Exception
public void interruptWritingRequestBody () throws java.lang.Exception
int i
int requestBodySize
java.net.HttpURLConnection connection
java.io.OutputStream requestBody
byte[] buffer
public void interruptReadingResponseBody () throws java.lang.Exception
int responseBodySize
java.net.HttpURLConnection connection
java.io.InputStream responseBody
byte[] buffer
private void interruptLater (int)
int delayMillis
Thread toInterrupt
Thread interruptingCow
}
com/squareup/okhttp/internal/huc/
com/squareup/okhttp/internal/huc/CacheAdapterTest$1.class
CacheAdapterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.CacheAdapterTest$1 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.net.URL val$serverUrl
final synthetic com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
void <init> (com.squareup.okhttp.internal.huc.CacheAdapterTest, java.net.URL)
com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String method
java.util.Map headers
}
com/squareup/okhttp/internal/huc/CacheAdapterTest$2.class
CacheAdapterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.CacheAdapterTest$2 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.net.URL val$serverUrl
final synthetic com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
void <init> (com.squareup.okhttp.internal.huc.CacheAdapterTest, java.net.URL)
com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String method
java.util.Map headers
}
com/squareup/okhttp/internal/huc/CacheAdapterTest$3.class
CacheAdapterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.CacheAdapterTest$3 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic byte[] val$response
final synthetic java.net.URL val$serverUrl
final synthetic com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
void <init> (com.squareup.okhttp.internal.huc.CacheAdapterTest, byte[], java.net.URL)
com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection connection
java.net.HttpURLConnection httpUrlConnection
}
com/squareup/okhttp/internal/huc/CacheAdapterTest$4.class
CacheAdapterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.CacheAdapterTest$4 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.net.URL val$serverUrl
final synthetic com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
void <init> (com.squareup.okhttp.internal.huc.CacheAdapterTest, java.net.URL)
com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection connection
java.net.HttpURLConnection httpUrlConnection
}
com/squareup/okhttp/internal/huc/CacheAdapterTest$5.class
CacheAdapterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.CacheAdapterTest$5 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.net.URL val$serverUrl
final synthetic com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
void <init> (com.squareup.okhttp.internal.huc.CacheAdapterTest, java.net.URL)
com.squareup.okhttp.internal.huc.CacheAdapterTest this$0
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection connection
javax.net.ssl.HttpsURLConnection cacheHttpsUrlConnection
javax.net.ssl.HttpsURLConnection realHttpsUrlConnection
}
com/squareup/okhttp/internal/huc/CacheAdapterTest.class
CacheAdapterTest.java
package com.squareup.okhttp.internal.huc
public com.squareup.okhttp.internal.huc.CacheAdapterTest extends java.lang.Object {
private javax.net.ssl.SSLContext sslContext
private javax.net.ssl.HostnameVerifier hostnameVerifier
private com.squareup.okhttp.mockwebserver.MockWebServer server
private com.squareup.okhttp.OkHttpClient client
private java.net.HttpURLConnection connection
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
public void get_httpGet () throws java.lang.Exception
java.net.URL serverUrl
java.net.ResponseCache responseCache
public void get_httpsGet () throws java.lang.Exception
java.net.URL serverUrl
java.net.ResponseCache responseCache
public void put_httpGet () throws java.lang.Exception
String statusLine
byte[] response
java.net.URL serverUrl
java.net.ResponseCache responseCache
public void put_httpPost () throws java.lang.Exception
String statusLine
java.net.URL serverUrl
java.net.ResponseCache responseCache
public void put_httpsGet () throws java.lang.Exception
java.net.URL serverUrl
java.net.ResponseCache responseCache
private void executeGet (java.net.HttpURLConnection) throws java.io.IOException
java.net.HttpURLConnection connection
private void executePost (java.net.HttpURLConnection) throws java.io.IOException
java.net.HttpURLConnection connection
private java.net.URL configureServer (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
private java.net.URL configureHttpsServer (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
static synthetic java.net.HttpURLConnection access$000 (com.squareup.okhttp.internal.huc.CacheAdapterTest)
com.squareup.okhttp.internal.huc.CacheAdapterTest x0
}
com/squareup/okhttp/internal/huc/JavaApiConverterTest$1.class
JavaApiConverterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.JavaApiConverterTest$1 extends java.net.CacheResponse {
final synthetic com.squareup.okhttp.internal.huc.JavaApiConverterTest this$0
void <init> (com.squareup.okhttp.internal.huc.JavaApiConverterTest)
com.squareup.okhttp.internal.huc.JavaApiConverterTest this$0
public java.util.Map getHeaders () throws java.io.IOException
java.util.Map headers
public java.io.InputStream getBody () throws java.io.IOException
}
com/squareup/okhttp/internal/huc/JavaApiConverterTest$2.class
JavaApiConverterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.JavaApiConverterTest$2 extends java.net.CacheResponse {
final synthetic com.squareup.okhttp.internal.huc.JavaApiConverterTest this$0
void <init> (com.squareup.okhttp.internal.huc.JavaApiConverterTest)
com.squareup.okhttp.internal.huc.JavaApiConverterTest this$0
public java.util.Map getHeaders () throws java.io.IOException
java.util.Map headers
public java.io.InputStream getBody () throws java.io.IOException
}
com/squareup/okhttp/internal/huc/JavaApiConverterTest$3.class
JavaApiConverterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.JavaApiConverterTest$3 extends java.net.SecureCacheResponse {
final synthetic java.util.List val$localCertificates
final synthetic java.util.List val$serverCertificates
final synthetic java.security.Principal val$serverPrincipal
final synthetic java.security.Principal val$localPrincipal
final synthetic com.squareup.okhttp.internal.huc.JavaApiConverterTest this$0
void <init> (com.squareup.okhttp.internal.huc.JavaApiConverterTest, java.util.List, java.util.List, java.security.Principal, java.security.Principal)
com.squareup.okhttp.internal.huc.JavaApiConverterTest this$0
public java.util.Map getHeaders () throws java.io.IOException
java.util.Map headers
public java.io.InputStream getBody () throws java.io.IOException
public java.lang.String getCipherSuite ()
public java.util.List getLocalCertificateChain ()
public java.util.List getServerCertificateChain () throws javax.net.ssl.SSLPeerUnverifiedException
public java.security.Principal getPeerPrincipal () throws javax.net.ssl.SSLPeerUnverifiedException
public java.security.Principal getLocalPrincipal ()
}
com/squareup/okhttp/internal/huc/JavaApiConverterTest$4.class
JavaApiConverterTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.JavaApiConverterTest$4 extends com.squareup.okhttp.ResponseBody {
final synthetic long val$contentLength
final synthetic okio.Buffer val$source
void <init> (long, okio.Buffer)
public com.squareup.okhttp.MediaType contentType ()
public long contentLength ()
public okio.BufferedSource source ()
}
com/squareup/okhttp/internal/huc/JavaApiConverterTest.class
JavaApiConverterTest.java
package com.squareup.okhttp.internal.huc
public com.squareup.okhttp.internal.huc.JavaApiConverterTest extends java.lang.Object {
private static final java.security.cert.X509Certificate LOCAL_CERT
private static final java.security.cert.X509Certificate SERVER_CERT
public com.squareup.okhttp.mockwebserver.MockWebServer server
public void <init> ()
public void setUp () throws java.lang.Exception
public void createOkResponseForCacheGet () throws java.lang.Exception
String statusLine
java.net.URI uri
com.squareup.okhttp.Request request
java.net.CacheResponse cacheResponse
com.squareup.okhttp.Response response
com.squareup.okhttp.Request cacheRequest
com.squareup.okhttp.Headers okResponseHeaders
public void createOkResponseForCacheGet_withMissingStatusLine () throws java.lang.Exception
java.net.URI uri
com.squareup.okhttp.Request request
java.net.CacheResponse cacheResponse
public void createOkResponseForCacheGet_secure () throws java.lang.Exception
String statusLine
java.security.Principal localPrincipal
java.util.List localCertificates
java.security.Principal serverPrincipal
java.util.List serverCertificates
java.net.URI uri
com.squareup.okhttp.Request request
java.net.SecureCacheResponse cacheResponse
com.squareup.okhttp.Response response
com.squareup.okhttp.Request cacheRequest
com.squareup.okhttp.Headers okResponseHeaders
com.squareup.okhttp.Handshake handshake
public void createOkRequest_nullRequestHeaders () throws java.lang.Exception
java.net.URI uri
java.util.Map javaRequestHeaders
com.squareup.okhttp.Request request
com.squareup.okhttp.Headers okRequestHeaders
public void createOkRequest_nonNullRequestHeaders () throws java.lang.Exception
java.net.URI uri
java.util.Map javaRequestHeaders
com.squareup.okhttp.Request request
com.squareup.okhttp.Headers okRequestHeaders
public void createOkRequest_nullRequestHeaderKey () throws java.lang.Exception
java.net.URI uri
java.util.Map javaRequestHeaders
com.squareup.okhttp.Request request
com.squareup.okhttp.Headers okRequestHeaders
public void createJavaUrlConnection_requestChangesForbidden () throws java.lang.Exception
com.squareup.okhttp.Response okResponse
java.net.HttpURLConnection httpUrlConnection
public void createJavaUrlConnection_connectionChangesForbidden () throws java.lang.Exception
com.squareup.okhttp.Response okResponse
java.net.HttpURLConnection httpUrlConnection
public void createJavaUrlConnection_responseChangesForbidden () throws java.lang.Exception
com.squareup.okhttp.Response okResponse
java.net.HttpURLConnection httpUrlConnection
public void createJavaUrlConnection_responseHeadersOk () throws java.lang.Exception
com.squareup.okhttp.ResponseBody responseBody
com.squareup.okhttp.Response okResponse
java.net.HttpURLConnection httpUrlConnection
java.util.Map responseHeaders
int i
private static void assertResponseHeaderAtIndex (java.net.HttpURLConnection, int, java.lang.String, java.lang.String)
java.net.HttpURLConnection httpUrlConnection
int headerIndex
String expectedKey
String expectedValue
private transient void assertHeadersContainsMapping (java.util.Map, java.lang.String, java.lang.String[])
java.util.Map headers
String expectedKey
String[] expectedValues
public void createJavaUrlConnection_accessibleRequestInfo_GET () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.Response okResponse
java.net.HttpURLConnection httpUrlConnection
public void createJavaUrlConnection_accessibleRequestInfo_POST () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.Response okResponse
java.net.HttpURLConnection httpUrlConnection
public void createJavaUrlConnection_https_extraHttpsMethods () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.Handshake handshake
com.squareup.okhttp.Response okResponse
javax.net.ssl.HttpsURLConnection httpsUrlConnection
public void createJavaUrlConnection_https_forbiddenFields () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.Response okResponse
javax.net.ssl.HttpsURLConnection httpsUrlConnection
public void createJavaCacheResponse_httpGet () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.Response okResponse
java.net.CacheResponse javaCacheResponse
java.util.Map javaHeaders
public void createJavaCacheResponse_httpPost () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.ResponseBody responseBody
com.squareup.okhttp.Response okResponse
java.net.CacheResponse javaCacheResponse
java.util.Map javaHeaders
public void createJavaCacheResponse_httpsPost () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
com.squareup.okhttp.ResponseBody responseBody
com.squareup.okhttp.Handshake handshake
com.squareup.okhttp.Response okResponse
java.net.SecureCacheResponse javaCacheResponse
java.util.Map javaHeaders
public void extractJavaHeaders () throws java.lang.Exception
com.squareup.okhttp.Request okRequest
java.util.Map javaHeaders
public void extractOkHeaders ()
java.util.Map javaResponseHeaders
com.squareup.okhttp.Headers okHeaders
public void extractStatusLine () throws java.lang.Exception
java.util.Map javaResponseHeaders
private static void assertNotNullAndEquals (java.lang.Object, java.lang.Object)
Object expected
Object actual
private static java.security.cert.X509Certificate certificate (java.lang.String)
java.security.cert.CertificateException e
String certificate
private static transient java.util.Set newSet (java.lang.Object[])
Object[] elements
private static java.util.Set newSet (java.util.List)
java.util.List elements
private static com.squareup.okhttp.Request createArbitraryOkRequest ()
private static com.squareup.okhttp.Response createArbitraryOkResponse (com.squareup.okhttp.Request)
com.squareup.okhttp.Request request
private static com.squareup.okhttp.Response createArbitraryOkResponse ()
private static com.squareup.okhttp.RequestBody createRequestBody (java.lang.String)
String bodyText
private static com.squareup.okhttp.ResponseBody createResponseBody (java.lang.String)
String bodyText
okio.Buffer source
long contentLength
private java.lang.String readAll (java.io.InputStream) throws java.io.IOException
java.io.InputStream in
java.io.ByteArrayOutputStream buffer
int value
static void <clinit> ()
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$1.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$1 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.util.concurrent.atomic.AtomicInteger val$cacheCount
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest, java.util.concurrent.atomic.AtomicInteger)
com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection connection
java.net.HttpURLConnection httpURLConnection
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$2$1.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$2$1 extends java.net.CacheRequest {
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest$2 this$1
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest$2)
com.squareup.okhttp.internal.huc.ResponseCacheTest$2 this$1
public void abort ()
public java.io.OutputStream getBody () throws java.io.IOException
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$2.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$2 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.util.concurrent.atomic.AtomicBoolean val$aborted
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest, java.util.concurrent.atomic.AtomicBoolean)
com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection)
java.net.URI uri
java.net.URLConnection connection
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$3$1.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$3$1 extends java.net.CacheResponse {
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest$3 this$1
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest$3)
com.squareup.okhttp.internal.huc.ResponseCacheTest$3 this$1
public java.util.Map getHeaders () throws java.io.IOException
String contentType
java.util.Map headers
public java.io.InputStream getBody () throws java.io.IOException
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$3.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$3 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic byte[] val$cachedContent
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest, byte[])
com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$4.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$4 extends com.squareup.okhttp.AbstractResponseCache {
final synthetic java.util.concurrent.atomic.AtomicReference val$requestHeadersRef
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest, java.util.concurrent.atomic.AtomicReference)
com.squareup.okhttp.internal.huc.ResponseCacheTest this$0
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$InsecureResponseCache$1.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$InsecureResponseCache$1 extends java.net.CacheResponse {
final synthetic java.net.CacheResponse val$response
final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest$InsecureResponseCache this$0
void <init> (com.squareup.okhttp.internal.huc.ResponseCacheTest$InsecureResponseCache, java.net.CacheResponse)
com.squareup.okhttp.internal.huc.ResponseCacheTest$InsecureResponseCache this$0
public java.io.InputStream getBody () throws java.io.IOException
public java.util.Map getHeaders () throws java.io.IOException
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$InsecureResponseCache.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.ResponseCacheTest$InsecureResponseCache extends java.net.ResponseCache {
private final java.net.ResponseCache delegate
private void <init> (java.net.ResponseCache)
java.net.ResponseCache delegate
public java.net.CacheRequest put (java.net.URI, java.net.URLConnection) throws java.io.IOException
java.net.URI uri
java.net.URLConnection connection
public java.net.CacheResponse get (java.net.URI, java.lang.String, java.util.Map) throws java.io.IOException
java.net.URI uri
String requestMethod
java.util.Map requestHeaders
java.net.CacheResponse response
synthetic void <init> (java.net.ResponseCache, com.squareup.okhttp.internal.huc.ResponseCacheTest$1)
java.net.ResponseCache x0
com.squareup.okhttp.internal.huc.ResponseCacheTest$1 x1
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$TransferKind$1.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
final enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind$1 extends com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$TransferKind$2.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
final enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind$2 extends com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$TransferKind$3.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
final enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind$3 extends com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind {
void <init> (java.lang.String, int)
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int)
com.squareup.okhttp.mockwebserver.MockResponse response
okio.Buffer content
int chunkSize
}
com/squareup/okhttp/internal/huc/ResponseCacheTest$TransferKind.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
abstract enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind extends java.lang.Enum {
public static final enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind CHUNKED
public static final enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind FIXED_LENGTH
public static final enum com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind END_OF_STREAM
private static final synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind[] $VALUES
public static com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind[] values ()
public static com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
abstract void setBody (com.squareup.okhttp.mockwebserver.MockResponse, okio.Buffer, int) throws java.io.IOException
void setBody (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
String content
int chunkSize
private static synthetic com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind[] $values ()
synthetic void <init> (java.lang.String, int, com.squareup.okhttp.internal.huc.ResponseCacheTest$1)
String x0
int x1
com.squareup.okhttp.internal.huc.ResponseCacheTest$1 x2
static void <clinit> ()
}
com/squareup/okhttp/internal/huc/ResponseCacheTest.class
ResponseCacheTest.java
package com.squareup.okhttp.internal.huc
public final com.squareup.okhttp.internal.huc.ResponseCacheTest extends java.lang.Object {
public org.junit.rules.TemporaryFolder cacheRule
public com.squareup.okhttp.mockwebserver.MockWebServer server
public com.squareup.okhttp.mockwebserver.MockWebServer server2
private javax.net.ssl.HostnameVerifier hostnameVerifier
private javax.net.ssl.SSLContext sslContext
private com.squareup.okhttp.OkHttpClient client
private java.net.ResponseCache cache
private java.net.CookieManager cookieManager
public void <init> ()
public void setUp () throws java.lang.Exception
public void tearDown () throws java.lang.Exception
private java.net.HttpURLConnection openConnection (java.net.URL)
java.net.URL url
public void responseCachingByResponseCode () throws java.lang.Exception
private void assertCached (boolean, int) throws java.lang.Exception
boolean shouldPut
int responseCode
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
java.net.URL url
java.net.HttpURLConnection connection
java.net.CacheResponse cached
public void responseCachingAndInputStreamSkipWithFixedLength () throws java.io.IOException
public void responseCachingAndInputStreamSkipWithChunkedEncoding () throws java.io.IOException
public void responseCachingAndInputStreamSkipWithNoLengthHeaders () throws java.io.IOException
private void testResponseCaching (com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse mockResponse
java.net.HttpURLConnection urlConnection
java.io.InputStream in
public void secureResponseCaching () throws java.io.IOException
javax.net.ssl.HttpsURLConnection c1
String suite
java.util.List localCerts
java.util.List serverCerts
java.security.Principal peerPrincipal
java.security.Principal localPrincipal
javax.net.ssl.HttpsURLConnection c2
public void responseCachingAndRedirects () throws java.lang.Exception
java.net.HttpURLConnection connection
public void redirectToCachedResult () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
com.squareup.okhttp.mockwebserver.RecordedRequest request3
public void secureResponseCachingAndRedirects () throws java.io.IOException
javax.net.ssl.HttpsURLConnection connection1
javax.net.ssl.HttpsURLConnection connection2
public void secureResponseCachingAndProtocolRedirects () throws java.io.IOException
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void foundCachedWithExpiresHeader () throws java.lang.Exception
public void foundCachedWithCacheControlHeader () throws java.lang.Exception
public void temporaryRedirectCachedWithExpiresHeader () throws java.lang.Exception
public void temporaryRedirectCachedWithCacheControlHeader () throws java.lang.Exception
public void foundNotCachedWithoutCacheHeader () throws java.lang.Exception
public void temporaryRedirectNotCachedWithoutCacheHeader () throws java.lang.Exception
private void temporaryRedirectCachedWithCachingHeader (int, java.lang.String, java.lang.String) throws java.lang.Exception
int responseCode
String headerName
String headerValue
java.net.URL url
private void temporaryRedirectNotCachedWithoutCachingHeader (int) throws java.lang.Exception
int responseCode
java.net.URL url
public void serverDisconnectsPrematurelyWithContentLengthHeader () throws java.io.IOException
public void serverDisconnectsPrematurelyWithChunkedEncoding () throws java.io.IOException
public void serverDisconnectsPrematurelyWithNoLengthHeaders () throws java.io.IOException
private void testServerPrematureDisconnect (com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response
java.io.BufferedReader reader
java.net.URLConnection connection
public void clientPrematureDisconnectWithContentLengthHeader () throws java.io.IOException
public void clientPrematureDisconnectWithChunkedEncoding () throws java.io.IOException
public void clientPrematureDisconnectWithNoLengthHeaders () throws java.io.IOException
private void testClientPrematureDisconnect (com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind) throws java.io.IOException
com.squareup.okhttp.internal.huc.ResponseCacheTest$TransferKind transferKind
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URLConnection connection
java.io.InputStream in
public void defaultExpirationDateFullyCachedForLessThan24Hours () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void defaultExpirationDateConditionallyCached () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void defaultExpirationDateFullyCachedForMoreThan24Hours () throws java.lang.Exception
java.net.URLConnection connection
public void noDefaultExpirationForUrlsWithQueryString () throws java.lang.Exception
java.net.URL url
public void expirationDateInThePastWithLastModifiedHeader () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void expirationDateInThePastWithNoLastModifiedHeader () throws java.lang.Exception
public void expirationDateInTheFuture () throws java.lang.Exception
public void maxAgePreferredWithMaxAgeAndExpires () throws java.lang.Exception
public void maxAgeInThePastWithDateAndLastModifiedHeaders () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void maxAgeInThePastWithDateHeaderButNoLastModifiedHeader () throws java.lang.Exception
public void maxAgeInTheFutureWithDateHeader () throws java.lang.Exception
public void maxAgeInTheFutureWithNoDateHeader () throws java.lang.Exception
public void maxAgeWithLastModifiedButNoServedDate () throws java.lang.Exception
public void maxAgeInTheFutureWithDateAndLastModifiedHeaders () throws java.lang.Exception
public void maxAgePreferredOverLowerSharedMaxAge () throws java.lang.Exception
public void maxAgePreferredOverHigherMaxAge () throws java.lang.Exception
public void requestMethodOptionsIsNotCached () throws java.lang.Exception
public void requestMethodGetIsCached () throws java.lang.Exception
public void requestMethodHeadIsNotCached () throws java.lang.Exception
public void requestMethodPostIsNotCached () throws java.lang.Exception
public void requestMethodPutIsNotCached () throws java.lang.Exception
public void requestMethodDeleteIsNotCached () throws java.lang.Exception
public void requestMethodTraceIsNotCached () throws java.lang.Exception
private void testRequestMethod (java.lang.String, boolean) throws java.lang.Exception
String requestMethod
boolean expectCached
java.net.URL url
java.net.HttpURLConnection request1
java.net.URLConnection request2
private void addRequestBodyIfNecessary (java.lang.String, java.net.HttpURLConnection) throws java.io.IOException
java.io.OutputStream requestBody
String requestMethod
java.net.HttpURLConnection connection
public void postInvalidatesCache () throws java.lang.Exception
public void putInvalidatesCache () throws java.lang.Exception
public void deleteMethodInvalidatesCache () throws java.lang.Exception
private void testMethodInvalidates (java.lang.String) throws java.lang.Exception
String requestMethod
java.net.URL url
java.net.HttpURLConnection invalidateConnection
public void postInvalidatesCacheWithUncacheableResponse () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection invalidate
public void etag () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void etagAndExpirationDateInThePast () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void etagAndExpirationDateInTheFuture () throws java.lang.Exception
public void cacheControlNoCache () throws java.lang.Exception
public void cacheControlNoCacheAndExpirationDateInTheFuture () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void pragmaNoCache () throws java.lang.Exception
public void pragmaNoCacheAndExpirationDateInTheFuture () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.RecordedRequest conditionalRequest
public void cacheControlNoStore () throws java.lang.Exception
public void cacheControlNoStoreAndExpirationDateInTheFuture () throws java.lang.Exception
public void partialRangeResponsesDoNotCorruptCache () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection range
public void serverReturnsDocumentOlderThanCache () throws java.lang.Exception
java.net.URL url
public void clientSideNoStore () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void nonIdentityEncodingAndConditionalCache () throws java.lang.Exception
public void nonIdentityEncodingAndFullCache () throws java.lang.Exception
private void assertNonIdentityEncodingCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
public void notModifiedSpecifiesEncoding () throws java.lang.Exception
public void gzipAndVaryOnAcceptEncoding () throws java.lang.Exception
public void expiresDateBeforeModifiedDate () throws java.lang.Exception
public void requestMaxAge () throws java.io.IOException
java.net.URLConnection connection
public void requestMinFresh () throws java.io.IOException
java.net.URLConnection connection
public void requestMaxStale () throws java.io.IOException
java.net.URLConnection connection
public void requestMaxStaleDirectiveWithNoValue () throws java.io.IOException
java.net.URLConnection maxStaleConnection
public void requestMaxStaleNotHonoredWithMustRevalidate () throws java.io.IOException
java.net.URLConnection connection
public void requestOnlyIfCachedWithNoResponseCached () throws java.io.IOException
java.net.HttpURLConnection connection
public void requestOnlyIfCachedWithFullResponseCached () throws java.io.IOException
java.net.URLConnection connection
public void requestOnlyIfCachedWithConditionalResponseCached () throws java.io.IOException
java.net.HttpURLConnection connection
public void requestOnlyIfCachedWithUnhelpfulResponseCached () throws java.io.IOException
java.net.HttpURLConnection connection
public void requestCacheControlNoCache () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void requestPragmaNoCache () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void clientSuppliedIfModifiedSinceWithCachedResult () throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
String ifModifiedSinceDate
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void clientSuppliedIfNoneMatchSinceWithCachedResult () throws java.lang.Exception
String lastModifiedDate
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.mockwebserver.RecordedRequest request
private com.squareup.okhttp.mockwebserver.RecordedRequest assertClientSuppliedCondition (com.squareup.okhttp.mockwebserver.MockResponse, java.lang.String, java.lang.String) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse seed
String conditionName
String conditionValue
java.net.URL url
java.net.HttpURLConnection connection
public void retainServedDateFormat () throws java.lang.Exception
java.util.Date lastModifiedDate
java.util.Date servedDate
java.text.DateFormat dateFormat
String lastModifiedString
String servedString
com.squareup.okhttp.mockwebserver.RecordedRequest request1
com.squareup.okhttp.mockwebserver.RecordedRequest request2
public void clientSuppliedConditionWithoutCachedResult () throws java.lang.Exception
java.net.HttpURLConnection connection
String clientIfModifiedSince
public void authorizationRequestFullyCached () throws java.lang.Exception
java.net.URL url
java.net.URLConnection connection
public void contentLocationDoesNotPopulateCache () throws java.lang.Exception
public void connectionIsReturnedToPoolAfterConditionalSuccess () throws java.lang.Exception
public void varyMatchesChangedRequestHeaderField () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection frenchConnection
java.net.HttpURLConnection englishConnection
public void varyMatchesUnchangedRequestHeaderField () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection frenchConnection1
java.net.HttpURLConnection frenchConnection2
public void varyMatchesAbsentRequestHeaderField () throws java.lang.Exception
public void varyMatchesAddedRequestHeaderField () throws java.lang.Exception
java.net.HttpURLConnection connection2
public void varyMatchesRemovedRequestHeaderField () throws java.lang.Exception
java.net.HttpURLConnection connection1
public void varyFieldsAreCaseInsensitive () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection frenchConnection1
java.net.HttpURLConnection frenchConnection2
public void varyMultipleFieldsWithMatch () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection frenchConnection1
java.net.HttpURLConnection frenchConnection2
public void varyMultipleFieldsWithNoMatch () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection frenchConnection
java.net.HttpURLConnection englishConnection
public void varyMultipleFieldValuesWithMatch () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection multiConnection1
java.net.HttpURLConnection multiConnection2
public void varyMultipleFieldValuesWithNoMatch () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection multiConnection
java.net.HttpURLConnection notFrenchConnection
public void varyAsterisk () throws java.lang.Exception
public void varyAndHttps () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
public void cachePlusCookies () throws java.lang.Exception
java.net.URL url
public void getHeadersReturnsNetworkEndToEndHeaders () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public void getHeadersReturnsCachedHopByHopHeaders () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public void getHeadersDeletesCached100LevelWarnings () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public void getHeadersRetainsCached200LevelWarnings () throws java.lang.Exception
java.net.URLConnection connection1
java.net.URLConnection connection2
public transient void assertCookies (java.net.URL, java.lang.String[]) throws java.lang.Exception
java.net.HttpCookie cookie
java.net.URL url
String[] expectedCookies
java.util.List actualCookies
public void doNotCachePartialResponse () throws java.lang.Exception
public void conditionalHitDoesNotUpdateCache () throws java.lang.Exception
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
java.net.HttpURLConnection connection3
java.net.HttpURLConnection connection4
public void responseSourceHeaderCached () throws java.io.IOException
java.net.URLConnection connection
public void responseSourceHeaderConditionalCacheFetched () throws java.io.IOException
java.net.HttpURLConnection connection
public void responseSourceHeaderConditionalCacheNotFetched () throws java.io.IOException
java.net.HttpURLConnection connection
public void responseSourceHeaderFetched () throws java.io.IOException
java.net.URLConnection connection
public void emptyResponseHeaderNameFromCacheIsLenient () throws java.lang.Exception
com.squareup.okhttp.Headers$Builder headers
java.net.HttpURLConnection connection
private java.lang.String formatDate (long, java.util.concurrent.TimeUnit)
long delta
java.util.concurrent.TimeUnit timeUnit
private java.lang.String formatDate (java.util.Date)
java.util.Date date
java.text.DateFormat rfc1123
private void assertNotCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL url
private com.squareup.okhttp.mockwebserver.RecordedRequest assertConditionallyCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL valid
java.net.HttpURLConnection connection1
java.net.HttpURLConnection connection2
java.net.URL invalid
java.net.HttpURLConnection connection3
java.net.HttpURLConnection connection4
private void assertFullyCached (com.squareup.okhttp.mockwebserver.MockResponse) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.URL url
private com.squareup.okhttp.mockwebserver.MockResponse truncateViolently (com.squareup.okhttp.mockwebserver.MockResponse, int)
com.squareup.okhttp.mockwebserver.MockResponse response
int numBytesToKeep
com.squareup.okhttp.Headers headers
okio.Buffer truncatedBody
public okio.Buffer gzip (java.lang.String) throws java.io.IOException
String data
okio.Buffer result
okio.BufferedSink sink
private java.lang.String readAscii (java.net.URLConnection, int) throws java.io.IOException
int value
int i
java.net.URLConnection connection
int count
java.net.HttpURLConnection httpConnection
java.io.InputStream in
StringBuilder result
private java.lang.String readAscii (java.net.URLConnection) throws java.io.IOException
java.net.URLConnection connection
private void reliableSkip (java.io.InputStream, int) throws java.io.IOException
java.io.InputStream in
int length
private void assertGatewayTimeout (java.net.HttpURLConnection) throws java.io.IOException
java.net.HttpURLConnection connection
private static java.util.List toListOrNull (java.lang.Object[])
Object[] arrayOrNull
public void responseCacheCallbackApis () throws java.lang.Exception
String body
java.util.concurrent.atomic.AtomicInteger cacheCount
java.net.URL url
java.net.HttpURLConnection connection
public void responseCacheReturnsNullOutputStream () throws java.lang.Exception
java.util.concurrent.atomic.AtomicBoolean aborted
java.net.HttpURLConnection connection
public void responseCacheReturnsNullStatusLine () throws java.lang.Exception
String cachedContentString
byte[] cachedContent
java.net.HttpURLConnection connection
public void cacheReturnsInsecureResponseForSecureRequest () throws java.io.IOException
javax.net.ssl.HttpsURLConnection connection1
javax.net.ssl.HttpsURLConnection connection2
public void responseCacheRequestHeaders () throws java.io.IOException java.net.URISyntaxException
java.util.concurrent.atomic.AtomicReference requestHeadersRef
java.net.URL url
java.net.URLConnection urlConnection
public void responseCachingWithoutBody () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
java.net.HttpURLConnection urlConnection
java.io.InputStream is
java.io.InputStream cachedIs
public void useCachesFalseDoesNotWriteToCache () throws java.lang.Exception
java.net.URLConnection connection
public void useCachesFalseDoesNotReadFromCache () throws java.lang.Exception
java.net.URLConnection connection
public void defaultUseCachesSetsInitialValueOnly () throws java.lang.Exception
java.net.URLConnection c3
java.net.URL url
java.net.URLConnection c1
java.net.URLConnection c2
public void otherStacks_cacheHitWithoutVary () throws java.lang.Exception
java.net.URLConnection connection
java.net.URLConnection connection2
public void otherStacks_cacheMissWithVaryAcceptEncoding () throws java.lang.Exception
java.net.URLConnection connection
java.net.URLConnection connection2
public void otherStacks_cacheMissWithVary () throws java.lang.Exception
java.net.URLConnection connection
java.net.URLConnection connection2
public void otherStacks_cacheMissWithVaryAsterisk () throws java.lang.Exception
java.net.URLConnection connection
java.net.URLConnection connection2
static synthetic java.lang.String access$100 (com.squareup.okhttp.internal.huc.ResponseCacheTest, long, java.util.concurrent.TimeUnit)
com.squareup.okhttp.internal.huc.ResponseCacheTest x0
long x1
java.util.concurrent.TimeUnit x2
}
com/squareup/okhttp/internal/huc/URLEncodingTest$1.class
URLEncodingTest.java
package com.squareup.okhttp.internal.huc
com.squareup.okhttp.internal.huc.URLEncodingTest$1 extends java.lang.Object implements com.squareup.okhttp.internal.InternalCache {
final synthetic java.util.concurrent.atomic.AtomicReference val$uriReference
final synthetic com.squareup.okhttp.internal.huc.URLEncodingTest this$0
void <init> (com.squareup.okhttp.internal.huc.URLEncodingTest, java.util.concurrent.atomic.AtomicReference)
com.squareup.okhttp.internal.huc.URLEncodingTest this$0
public com.squareup.okhttp.Response get (com.squareup.okhttp.Request) throws java.io.IOException
com.squareup.okhttp.Request request
public com.squareup.okhttp.internal.http.CacheRequest put (com.squareup.okhttp.Response) throws java.io.IOException
com.squareup.okhttp.Response response
public void remove (com.squareup.okhttp.Request) throws java.io.IOException
com.squareup.okhttp.Request request
public void update (com.squareup.okhttp.Response, com.squareup.okhttp.Response) throws java.io.IOException
com.squareup.okhttp.Response cached
com.squareup.okhttp.Response network
public void trackConditionalCacheHit ()
public void trackResponse (com.squareup.okhttp.internal.http.CacheStrategy)
com.squareup.okhttp.internal.http.CacheStrategy cacheStrategy
}
com/squareup/okhttp/internal/huc/URLEncodingTest.class
URLEncodingTest.java
package com.squareup.okhttp.internal.huc
public final com.squareup.okhttp.internal.huc.URLEncodingTest extends java.lang.Object {
public void <init> ()
public void lenientUrlToUri () throws java.lang.Exception
public void lenientUrlToUriNul () throws java.lang.Exception
private void testUrlToUriMapping (java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) throws java.lang.Exception
String string
String asAuthority
String asFile
String asQuery
String asFragment
private java.net.URI backdoorUrlToUri (java.net.URL) throws java.lang.Exception
java.net.HttpURLConnection connection
Exception expected
java.net.URL url
java.util.concurrent.atomic.AtomicReference uriReference
com.squareup.okhttp.OkHttpClient client
}
com/squareup/okhttp/internal/io/
com/squareup/okhttp/internal/io/InMemoryFileSystem$1.class
InMemoryFileSystem.java
package com.squareup.okhttp.internal.io
com.squareup.okhttp.internal.io.InMemoryFileSystem$1 extends org.junit.runners.model.Statement {
final synthetic org.junit.runners.model.Statement val$base
final synthetic com.squareup.okhttp.internal.io.InMemoryFileSystem this$0
void <init> (com.squareup.okhttp.internal.io.InMemoryFileSystem, org.junit.runners.model.Statement)
com.squareup.okhttp.internal.io.InMemoryFileSystem this$0
public void evaluate () throws java.lang.Throwable
}
com/squareup/okhttp/internal/io/InMemoryFileSystem$2.class
InMemoryFileSystem.java
package com.squareup.okhttp.internal.io
com.squareup.okhttp.internal.io.InMemoryFileSystem$2 extends okio.ForwardingSource {
final synthetic okio.Source val$source
final synthetic com.squareup.okhttp.internal.io.InMemoryFileSystem this$0
void <init> (com.squareup.okhttp.internal.io.InMemoryFileSystem, okio.Source, okio.Source)
com.squareup.okhttp.internal.io.InMemoryFileSystem this$0
okio.Source arg0
public void close () throws java.io.IOException
}
com/squareup/okhttp/internal/io/InMemoryFileSystem$3.class
InMemoryFileSystem.java
package com.squareup.okhttp.internal.io
com.squareup.okhttp.internal.io.InMemoryFileSystem$3 extends okio.ForwardingSink {
final synthetic okio.Sink val$sink
final synthetic com.squareup.okhttp.internal.io.InMemoryFileSystem this$0
void <init> (com.squareup.okhttp.internal.io.InMemoryFileSystem, okio.Sink, okio.Sink)
com.squareup.okhttp.internal.io.InMemoryFileSystem this$0
okio.Sink arg0
public void close () throws java.io.IOException
}
com/squareup/okhttp/internal/io/InMemoryFileSystem.class
InMemoryFileSystem.java
package com.squareup.okhttp.internal.io
public final com.squareup.okhttp.internal.io.InMemoryFileSystem extends java.lang.Object implements com.squareup.okhttp.internal.io.FileSystem org.junit.rules.TestRule {
private final java.util.Map files
private final java.util.Map openSources
private final java.util.Map openSinks
public void <init> ()
public org.junit.runners.model.Statement apply (org.junit.runners.model.Statement, org.junit.runner.Description)
org.junit.runners.model.Statement base
org.junit.runner.Description description
public void ensureResourcesClosed ()
java.io.File file
java.io.File file
String resource
StringBuilder builder
java.util.List openResources
public okio.Source source (java.io.File) throws java.io.FileNotFoundException
java.io.File file
okio.Buffer result
okio.Source source
public okio.Sink sink (java.io.File) throws java.io.FileNotFoundException
java.io.File file
public okio.Sink appendingSink (java.io.File) throws java.io.FileNotFoundException
java.io.File file
private okio.Sink sink (java.io.File, boolean)
java.io.File file
boolean appending
okio.Buffer result
okio.Sink sink
public void delete (java.io.File) throws java.io.IOException
java.io.File file
public boolean exists (java.io.File) throws java.io.IOException
java.io.File file
public long size (java.io.File)
java.io.File file
okio.Buffer buffer
public void rename (java.io.File, java.io.File) throws java.io.IOException
java.io.File from
java.io.File to
okio.Buffer buffer
public void deleteContents (java.io.File) throws java.io.IOException
java.io.File file
java.util.Iterator i
java.io.File directory
String prefix
static synthetic java.util.Map access$000 (com.squareup.okhttp.internal.io.InMemoryFileSystem)
com.squareup.okhttp.internal.io.InMemoryFileSystem x0
static synthetic java.util.Map access$100 (com.squareup.okhttp.internal.io.InMemoryFileSystem)
com.squareup.okhttp.internal.io.InMemoryFileSystem x0
}
com/squareup/okhttp/internal/tls/
com/squareup/okhttp/internal/tls/CertificateChainCleanerTest.class
CertificateChainCleanerTest.java
package com.squareup.okhttp.internal.tls
public final com.squareup.okhttp.internal.tls.CertificateChainCleanerTest extends java.lang.Object {
public void <init> ()
public void normalizeSingleSelfSignedCertificate () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void normalizeUnknownSelfSignedCertificate () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void orderedChainOfCertificatesWithRoot () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.HeldCertificate certA
com.squareup.okhttp.internal.HeldCertificate certB
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void orderedChainOfCertificatesWithoutRoot () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.HeldCertificate certA
com.squareup.okhttp.internal.HeldCertificate certB
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void unorderedChainOfCertificatesWithRoot () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.HeldCertificate certA
com.squareup.okhttp.internal.HeldCertificate certB
com.squareup.okhttp.internal.HeldCertificate certC
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void unorderedChainOfCertificatesWithoutRoot () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.HeldCertificate certA
com.squareup.okhttp.internal.HeldCertificate certB
com.squareup.okhttp.internal.HeldCertificate certC
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void unrelatedCertificatesAreOmitted () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate root
com.squareup.okhttp.internal.HeldCertificate certA
com.squareup.okhttp.internal.HeldCertificate certB
com.squareup.okhttp.internal.HeldCertificate certUnnecessary
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void chainGoesAllTheWayToSelfSignedRoot () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate selfSigned
com.squareup.okhttp.internal.HeldCertificate trusted
com.squareup.okhttp.internal.HeldCertificate certA
com.squareup.okhttp.internal.HeldCertificate certB
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void trustedRootNotSelfSigned () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate unknownSigner
com.squareup.okhttp.internal.HeldCertificate trusted
com.squareup.okhttp.internal.HeldCertificate intermediateCa
com.squareup.okhttp.internal.HeldCertificate certificate
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void chainMaxLength () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate heldCertificate
java.util.List heldCertificates
java.util.List certificates
java.security.cert.X509Certificate root
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
public void chainTooLong () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate heldCertificate
java.util.List heldCertificates
java.util.List certificates
java.security.cert.X509Certificate root
com.squareup.okhttp.internal.tls.CertificateChainCleaner council
private java.util.List chainOfLength (int) throws java.security.GeneralSecurityException
int i
int length
java.util.List result
private transient java.util.List list (com.squareup.okhttp.internal.HeldCertificate[])
com.squareup.okhttp.internal.HeldCertificate heldCertificate
com.squareup.okhttp.internal.HeldCertificate[] heldCertificates
java.util.List result
}
com/squareup/okhttp/internal/tls/CertificatePinnerChainValidationTest.class
CertificatePinnerChainValidationTest.java
package com.squareup.okhttp.internal.tls
public final com.squareup.okhttp.internal.tls.CertificatePinnerChainValidationTest extends java.lang.Object {
public final com.squareup.okhttp.mockwebserver.MockWebServer server
public void <init> ()
public void pinRootNotPresentInChain () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate rootCa
com.squareup.okhttp.internal.HeldCertificate intermediateCa
com.squareup.okhttp.internal.HeldCertificate certificate
com.squareup.okhttp.CertificatePinner certificatePinner
javax.net.ssl.SSLContext clientContext
com.squareup.okhttp.OkHttpClient client
javax.net.ssl.SSLContext serverSslContext
com.squareup.okhttp.Call call1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Call call2
com.squareup.okhttp.Response response2
public void pinIntermediatePresentInChain () throws java.lang.Exception
com.squareup.okhttp.internal.HeldCertificate rootCa
com.squareup.okhttp.internal.HeldCertificate intermediateCa
com.squareup.okhttp.internal.HeldCertificate certificate
com.squareup.okhttp.CertificatePinner certificatePinner
javax.net.ssl.SSLContext clientContext
com.squareup.okhttp.OkHttpClient client
javax.net.ssl.SSLContext serverSslContext
com.squareup.okhttp.Call call1
com.squareup.okhttp.Response response1
com.squareup.okhttp.Call call2
com.squareup.okhttp.Response response2
public void unrelatedPinnedLeafCertificateInChain () throws java.lang.Exception
String message
javax.net.ssl.SSLPeerUnverifiedException expected
com.squareup.okhttp.internal.HeldCertificate rootCa
com.squareup.okhttp.internal.HeldCertificate goodIntermediateCa
com.squareup.okhttp.internal.HeldCertificate goodCertificate
com.squareup.okhttp.CertificatePinner certificatePinner
javax.net.ssl.SSLContext clientContext
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.internal.HeldCertificate compromisedIntermediateCa
com.squareup.okhttp.internal.HeldCertificate rogueCertificate
javax.net.ssl.SSLContext serverSslContext
com.squareup.okhttp.Request request
com.squareup.okhttp.Call call
public void unrelatedPinnedIntermediateCertificateInChain () throws java.lang.Exception
String message
javax.net.ssl.SSLHandshakeException expected
String message
javax.net.ssl.SSLPeerUnverifiedException expected
com.squareup.okhttp.internal.HeldCertificate rootCa
com.squareup.okhttp.internal.HeldCertificate compromisedRootCa
com.squareup.okhttp.internal.HeldCertificate goodIntermediateCa
com.squareup.okhttp.CertificatePinner certificatePinner
javax.net.ssl.SSLContext clientContext
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.internal.HeldCertificate compromisedIntermediateCa
com.squareup.okhttp.internal.HeldCertificate rogueCertificate
javax.net.ssl.SSLContext serverSslContext
com.squareup.okhttp.Request request
com.squareup.okhttp.Call call
}
com/squareup/okhttp/internal/tls/FakeSSLSession.class
FakeSSLSession.java
package com.squareup.okhttp.internal.tls
final com.squareup.okhttp.internal.tls.FakeSSLSession extends java.lang.Object implements javax.net.ssl.SSLSession {
private final java.security.cert.Certificate[] certificates
public transient void <init> (java.security.cert.Certificate[]) throws java.lang.Exception
java.security.cert.Certificate[] certificates
public int getApplicationBufferSize ()
public java.lang.String getCipherSuite ()
public long getCreationTime ()
public byte[] getId ()
public long getLastAccessedTime ()
public java.security.cert.Certificate[] getLocalCertificates ()
public java.security.Principal getLocalPrincipal ()
public int getPacketBufferSize ()
public java.security.cert.Certificate[] getPeerCertificates () throws javax.net.ssl.SSLPeerUnverifiedException
public javax.security.cert.X509Certificate[] getPeerCertificateChain () throws javax.net.ssl.SSLPeerUnverifiedException
public java.lang.String getPeerHost ()
public int getPeerPort ()
public java.security.Principal getPeerPrincipal () throws javax.net.ssl.SSLPeerUnverifiedException
public java.lang.String getProtocol ()
public javax.net.ssl.SSLSessionContext getSessionContext ()
public void putValue (java.lang.String, java.lang.Object)
String s
Object obj
public void removeValue (java.lang.String)
String s
public java.lang.Object getValue (java.lang.String)
String s
public java.lang.String[] getValueNames ()
public void invalidate ()
public boolean isValid ()
}
com/squareup/okhttp/internal/tls/HostnameVerifierTest.class
HostnameVerifierTest.java
package com.squareup.okhttp.internal.tls
public final com.squareup.okhttp.internal.tls.HostnameVerifierTest extends java.lang.Object {
public javax.net.ssl.HostnameVerifier verifier
public void <init> ()
public static java.util.Collection data ()
public void verify () throws java.lang.Exception
com.squareup.okhttp.internal.tls.FakeSSLSession session
public void verifyCn () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifyNonAsciiCn () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifySubjectAlt () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifyNonAsciiSubjectAlt () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifySubjectAltOnly () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifyMultipleCn () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifyWilcardCn () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifyWilcardCnOnTld () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void testWilcardNonAsciiSubjectAlt () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void subjectAltUsesLocalDomainAndIp () throws java.lang.Exception
java.security.cert.X509Certificate certificate
com.squareup.okhttp.internal.tls.FakeSSLSession session
public void wildcardsCannotMatchIpAddresses () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void wildcardsDoesNotNeedTwoDots () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void subjectAltName () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void subjectAltNameWithWildcard () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void subjectAltNameWithToplevelWildcard () throws java.lang.Exception
javax.net.ssl.SSLSession session
public void verifyAsIpAddress ()
public void isPrintableAscii ()
private java.security.cert.X509Certificate certificate (java.lang.String) throws java.lang.Exception
String certificate
private javax.net.ssl.SSLSession session (java.lang.String) throws java.lang.Exception
String certificate
}
com/squareup/okhttp/internal/ws/
com/squareup/okhttp/internal/ws/RealWebSocket$1$1.class
RealWebSocket.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocket$1$1 extends com.squareup.okhttp.internal.NamedRunnable {
final synthetic okio.Buffer val$buffer
final synthetic com.squareup.okhttp.internal.ws.RealWebSocket$1 this$1
transient void <init> (com.squareup.okhttp.internal.ws.RealWebSocket$1, java.lang.String, java.lang.Object[], okio.Buffer)
com.squareup.okhttp.internal.ws.RealWebSocket$1 this$1
String arg0
Object[] arg1
protected void execute ()
}
com/squareup/okhttp/internal/ws/RealWebSocket$1$2.class
RealWebSocket.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocket$1$2 extends com.squareup.okhttp.internal.NamedRunnable {
final synthetic int val$code
final synthetic String val$reason
final synthetic com.squareup.okhttp.internal.ws.RealWebSocket$1 this$1
transient void <init> (com.squareup.okhttp.internal.ws.RealWebSocket$1, java.lang.String, java.lang.Object[], int, java.lang.String)
com.squareup.okhttp.internal.ws.RealWebSocket$1 this$1
String arg0
Object[] arg1
protected void execute ()
}
com/squareup/okhttp/internal/ws/RealWebSocket$1.class
RealWebSocket.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocket$1 extends java.lang.Object implements com.squareup.okhttp.internal.ws.WebSocketReader$FrameCallback {
final synthetic com.squareup.okhttp.ws.WebSocketListener val$listener
final synthetic java.util.concurrent.Executor val$replyExecutor
final synthetic String val$url
final synthetic com.squareup.okhttp.internal.ws.RealWebSocket this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocket, com.squareup.okhttp.ws.WebSocketListener, java.util.concurrent.Executor, java.lang.String)
com.squareup.okhttp.internal.ws.RealWebSocket this$0
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody message
public void onPing (okio.Buffer)
okio.Buffer buffer
public void onPong (okio.Buffer)
okio.Buffer buffer
public void onClose (int, java.lang.String)
int code
String reason
}
com/squareup/okhttp/internal/ws/RealWebSocket.class
RealWebSocket.java
package com.squareup.okhttp.internal.ws
public abstract com.squareup.okhttp.internal.ws.RealWebSocket extends java.lang.Object implements com.squareup.okhttp.ws.WebSocket {
private static final int CLOSE_PROTOCOL_EXCEPTION
private final com.squareup.okhttp.internal.ws.WebSocketWriter writer
private final com.squareup.okhttp.internal.ws.WebSocketReader reader
private final com.squareup.okhttp.ws.WebSocketListener listener
private volatile boolean writerSentClose
private boolean writerWantsClose
private boolean readerSentClose
private final java.util.concurrent.atomic.AtomicBoolean connectionClosed
public void <init> (boolean, okio.BufferedSource, okio.BufferedSink, java.util.Random, java.util.concurrent.Executor, com.squareup.okhttp.ws.WebSocketListener, java.lang.String)
boolean isClient
okio.BufferedSource source
okio.BufferedSink sink
java.util.Random random
java.util.concurrent.Executor replyExecutor
com.squareup.okhttp.ws.WebSocketListener listener
String url
public boolean readMessage ()
java.io.IOException e
public void sendMessage (com.squareup.okhttp.RequestBody) throws java.io.IOException
int formatOpcode
int formatOpcode
java.io.IOException e
com.squareup.okhttp.RequestBody message
com.squareup.okhttp.MediaType contentType
String contentSubtype
int formatOpcode
okio.BufferedSink sink
public void sendPing (okio.Buffer) throws java.io.IOException
java.io.IOException e
okio.Buffer payload
public void sendPong (okio.Buffer) throws java.io.IOException
java.io.IOException e
okio.Buffer payload
public void close (int, java.lang.String) throws java.io.IOException
java.io.IOException e
int code
String reason
private void peerClose (int, java.lang.String)
int code
String reason
private void readerErrorClose (java.io.IOException)
java.io.IOException e
protected abstract void close () throws java.io.IOException
static synthetic com.squareup.okhttp.internal.ws.WebSocketWriter access$000 (com.squareup.okhttp.internal.ws.RealWebSocket)
com.squareup.okhttp.internal.ws.RealWebSocket x0
static synthetic boolean access$102 (com.squareup.okhttp.internal.ws.RealWebSocket, boolean)
com.squareup.okhttp.internal.ws.RealWebSocket x0
boolean x1
static synthetic void access$200 (com.squareup.okhttp.internal.ws.RealWebSocket, int, java.lang.String)
com.squareup.okhttp.internal.ws.RealWebSocket x0
int x1
String x2
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$1.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$1 extends com.squareup.okhttp.internal.ws.RealWebSocket {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest, boolean, okio.BufferedSource, okio.BufferedSink, java.util.Random, java.util.concurrent.Executor, com.squareup.okhttp.ws.WebSocketListener, java.lang.String)
com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
boolean isClient
okio.BufferedSource source
okio.BufferedSink sink
java.util.Random random
java.util.concurrent.Executor replyExecutor
com.squareup.okhttp.ws.WebSocketListener listener
String url
protected void close () throws java.io.IOException
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$2.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$2 extends com.squareup.okhttp.internal.ws.RealWebSocket {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest, boolean, okio.BufferedSource, okio.BufferedSink, java.util.Random, java.util.concurrent.Executor, com.squareup.okhttp.ws.WebSocketListener, java.lang.String)
com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
boolean isClient
okio.BufferedSource source
okio.BufferedSink sink
java.util.Random random
java.util.concurrent.Executor replyExecutor
com.squareup.okhttp.ws.WebSocketListener listener
String url
protected void close () throws java.io.IOException
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$3.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$3 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$4.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$4 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
okio.BufferedSink sink
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$5.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$5 extends com.squareup.okhttp.RequestBody {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest this$0
public com.squareup.okhttp.MediaType contentType ()
public void writeTo (okio.BufferedSink) throws java.io.IOException
java.io.IOException e
java.io.IOException e
okio.BufferedSink sink
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$MemorySocket$1.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket$1 extends java.lang.Object implements okio.Source {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket)
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket this$0
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
public okio.Timeout timeout ()
public void close () throws java.io.IOException
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$MemorySocket$2.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket$2 extends java.lang.Object implements okio.Sink {
final synthetic com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket this$0
void <init> (com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket)
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket this$0
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
public void flush () throws java.io.IOException
public okio.Timeout timeout ()
public void close () throws java.io.IOException
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$MemorySocket.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
final com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket extends java.lang.Object implements java.io.Closeable {
private final okio.Buffer buffer
private boolean closed
void <init> ()
public void close ()
okio.Buffer raw ()
okio.BufferedSource source ()
okio.BufferedSink sink ()
static synthetic boolean access$600 (com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket)
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket x0
static synthetic okio.Buffer access$700 (com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket)
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket x0
static synthetic boolean access$602 (com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket, boolean)
com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket x0
boolean x1
}
com/squareup/okhttp/internal/ws/RealWebSocketTest$SynchronousExecutor.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
final com.squareup.okhttp.internal.ws.RealWebSocketTest$SynchronousExecutor extends java.lang.Object implements java.util.concurrent.Executor {
void <init> ()
public void execute (java.lang.Runnable)
Runnable command
}
com/squareup/okhttp/internal/ws/RealWebSocketTest.class
RealWebSocketTest.java
package com.squareup.okhttp.internal.ws
public final com.squareup.okhttp.internal.ws.RealWebSocketTest extends java.lang.Object {
private final java.util.concurrent.Executor clientExecutor
private com.squareup.okhttp.internal.ws.RealWebSocket client
private boolean clientConnectionCloseThrows
private boolean clientConnectionClosed
private final com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket client2Server
private final com.squareup.okhttp.ws.WebSocketRecorder clientListener
private final java.util.concurrent.Executor serverExecutor
private com.squareup.okhttp.internal.ws.RealWebSocket server
private boolean serverConnectionClosed
private final com.squareup.okhttp.internal.ws.RealWebSocketTest$MemorySocket server2client
private final com.squareup.okhttp.ws.WebSocketRecorder serverListener
public void <init> ()
public void setUp ()
java.util.Random random
String url
public void tearDown ()
public void nullMessageThrows () throws java.io.IOException
NullPointerException e
public void textMessage () throws java.io.IOException
public void binaryMessage () throws java.io.IOException
public void missingContentTypeThrows () throws java.io.IOException
IllegalArgumentException e
public void unknownContentTypeThrows () throws java.io.IOException
IllegalArgumentException e
public void streamingMessage () throws java.io.IOException
com.squareup.okhttp.RequestBody message
public void streamingMessageCanInterleavePing () throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.RequestBody message
public void pingWritesPong () throws java.io.IOException java.lang.InterruptedException
public void unsolicitedPong () throws java.io.IOException
public void close () throws java.io.IOException
public void clientCloseThenMethodsThrow () throws java.io.IOException
IllegalStateException e
IllegalStateException e
IllegalStateException e
public void socketClosedDuringPingKillsWebSocket () throws java.io.IOException
IllegalStateException e
IllegalStateException e
public void socketClosedDuringMessageKillsWebSocket () throws java.io.IOException
IllegalStateException e
IllegalStateException e
public void serverCloseThenWritingPingThrows () throws java.io.IOException
java.io.IOException e
public void serverCloseThenWritingMessageThrows () throws java.io.IOException
java.io.IOException e
public void serverCloseThenWritingCloseThrows () throws java.io.IOException
java.io.IOException e
public void serverCloseWhileWritingThrows () throws java.io.IOException
com.squareup.okhttp.RequestBody message
public void clientCloseClosesConnection () throws java.io.IOException
public void serverCloseClosesConnection () throws java.io.IOException
public void clientAndServerCloseClosesConnection () throws java.io.IOException
public void serverCloseBreaksReadMessageLoop () throws java.io.IOException
public void protocolErrorBeforeCloseSendsClose () throws java.io.IOException
public void protocolErrorAfterCloseDoesNotSendClose () throws java.io.IOException
public void closeThrowingClosesConnection ()
public void closeMessageAndConnectionCloseThrowingDoesNotMaskOriginal () throws java.io.IOException
java.io.IOException e
public void peerConnectionCloseThrowingDoesNotPropagate () throws java.io.IOException
static synthetic boolean access$000 (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
static synthetic boolean access$002 (com.squareup.okhttp.internal.ws.RealWebSocketTest, boolean)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
boolean x1
static synthetic boolean access$100 (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
static synthetic boolean access$200 (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
static synthetic boolean access$202 (com.squareup.okhttp.internal.ws.RealWebSocketTest, boolean)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
boolean x1
static synthetic com.squareup.okhttp.internal.ws.RealWebSocket access$300 (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
static synthetic com.squareup.okhttp.internal.ws.RealWebSocket access$400 (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
static synthetic com.squareup.okhttp.ws.WebSocketRecorder access$500 (com.squareup.okhttp.internal.ws.RealWebSocketTest)
com.squareup.okhttp.internal.ws.RealWebSocketTest x0
}
com/squareup/okhttp/internal/ws/WebSocketProtocol.class
WebSocketProtocol.java
package com.squareup.okhttp.internal.ws
public final com.squareup.okhttp.internal.ws.WebSocketProtocol extends java.lang.Object {
public static final String ACCEPT_MAGIC
static final int B0_FLAG_FIN
static final int B0_FLAG_RSV1
static final int B0_FLAG_RSV2
static final int B0_FLAG_RSV3
static final int B0_MASK_OPCODE
static final int OPCODE_FLAG_CONTROL
static final int B1_FLAG_MASK
static final int B1_MASK_LENGTH
static final int OPCODE_CONTINUATION
static final int OPCODE_TEXT
static final int OPCODE_BINARY
static final int OPCODE_CONTROL_CLOSE
static final int OPCODE_CONTROL_PING
static final int OPCODE_CONTROL_PONG
static final long PAYLOAD_BYTE_MAX
static final int PAYLOAD_SHORT
static final long PAYLOAD_SHORT_MAX
static final int PAYLOAD_LONG
static void toggleMask (byte[], long, byte[], long)
int keyIndex
int i
byte[] buffer
long byteCount
byte[] key
long frameBytesRead
int keyLength
private void <init> ()
}
com/squareup/okhttp/internal/ws/WebSocketReader$1.class
WebSocketReader.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketReader$1 extends com.squareup.okhttp.ResponseBody {
final synthetic com.squareup.okhttp.MediaType val$type
final synthetic okio.BufferedSource val$source
final synthetic com.squareup.okhttp.internal.ws.WebSocketReader this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketReader, com.squareup.okhttp.MediaType, okio.BufferedSource)
com.squareup.okhttp.internal.ws.WebSocketReader this$0
public com.squareup.okhttp.MediaType contentType ()
public long contentLength () throws java.io.IOException
public okio.BufferedSource source () throws java.io.IOException
}
com/squareup/okhttp/internal/ws/WebSocketReader$FrameCallback.class
WebSocketReader.java
package com.squareup.okhttp.internal.ws
public abstract com.squareup.okhttp.internal.ws.WebSocketReader$FrameCallback extends java.lang.Object {
public abstract void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
public abstract void onPing (okio.Buffer)
public abstract void onPong (okio.Buffer)
public abstract void onClose (int, java.lang.String)
}
com/squareup/okhttp/internal/ws/WebSocketReader$FramedMessageSource.class
WebSocketReader.java
package com.squareup.okhttp.internal.ws
final com.squareup.okhttp.internal.ws.WebSocketReader$FramedMessageSource extends java.lang.Object implements okio.Source {
final synthetic com.squareup.okhttp.internal.ws.WebSocketReader this$0
private void <init> (com.squareup.okhttp.internal.ws.WebSocketReader)
public long read (okio.Buffer, long) throws java.io.IOException
long read
okio.Buffer sink
long byteCount
long toRead
long read
public okio.Timeout timeout ()
public void close () throws java.io.IOException
synthetic void <init> (com.squareup.okhttp.internal.ws.WebSocketReader, com.squareup.okhttp.internal.ws.WebSocketReader$1)
com.squareup.okhttp.internal.ws.WebSocketReader x0
com.squareup.okhttp.internal.ws.WebSocketReader$1 x1
}
com/squareup/okhttp/internal/ws/WebSocketReader.class
WebSocketReader.java
package com.squareup.okhttp.internal.ws
public final com.squareup.okhttp.internal.ws.WebSocketReader extends java.lang.Object {
private final boolean isClient
private final okio.BufferedSource source
private final com.squareup.okhttp.internal.ws.WebSocketReader$FrameCallback frameCallback
private final okio.Source framedMessageSource
private boolean closed
private boolean messageClosed
private int opcode
private long frameLength
private long frameBytesRead
private boolean isFinalFrame
private boolean isControlFrame
private boolean isMasked
private final byte[] maskKey
private final byte[] maskBuffer
public void <init> (boolean, okio.BufferedSource, com.squareup.okhttp.internal.ws.WebSocketReader$FrameCallback)
boolean isClient
okio.BufferedSource source
com.squareup.okhttp.internal.ws.WebSocketReader$FrameCallback frameCallback
public void processNextFrame () throws java.io.IOException
private void readHeader () throws java.io.IOException
int b0
boolean reservedFlag1
boolean reservedFlag2
boolean reservedFlag3
int b1
private void readControlFrame () throws java.io.IOException
int toRead
int read
long bufferSize
int code
String reason
okio.Buffer buffer
private void readMessageFrame () throws java.io.IOException
com.squareup.okhttp.MediaType type
com.squareup.okhttp.MediaType type
com.squareup.okhttp.MediaType type
okio.BufferedSource source
com.squareup.okhttp.ResponseBody body
private void readUntilNonControlFrame () throws java.io.IOException
static synthetic boolean access$100 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic boolean access$200 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic long access$300 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic long access$400 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic boolean access$500 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic void access$600 (com.squareup.okhttp.internal.ws.WebSocketReader) throws java.io.IOException
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic int access$700 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic boolean access$800 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic byte[] access$900 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic okio.BufferedSource access$1000 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic byte[] access$1100 (com.squareup.okhttp.internal.ws.WebSocketReader)
com.squareup.okhttp.internal.ws.WebSocketReader x0
static synthetic long access$314 (com.squareup.okhttp.internal.ws.WebSocketReader, long)
com.squareup.okhttp.internal.ws.WebSocketReader x0
long x1
static synthetic boolean access$202 (com.squareup.okhttp.internal.ws.WebSocketReader, boolean)
com.squareup.okhttp.internal.ws.WebSocketReader x0
boolean x1
}
com/squareup/okhttp/internal/ws/WebSocketReaderTest$1.class
WebSocketReaderTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketReaderTest$1 extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate {
final synthetic okio.Buffer val$sink
final synthetic com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketReaderTest, okio.Buffer)
com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody message
okio.BufferedSource source
}
com/squareup/okhttp/internal/ws/WebSocketReaderTest$2.class
WebSocketReaderTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketReaderTest$2 extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate {
final synthetic com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketReaderTest)
com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody body
}
com/squareup/okhttp/internal/ws/WebSocketReaderTest$3.class
WebSocketReaderTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketReaderTest$3 extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate {
final synthetic okio.Buffer val$sink
final synthetic com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketReaderTest, okio.Buffer)
com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody message
}
com/squareup/okhttp/internal/ws/WebSocketReaderTest$4.class
WebSocketReaderTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketReaderTest$4 extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate {
final synthetic okio.Buffer val$sink
final synthetic com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketReaderTest, okio.Buffer)
com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody message
}
com/squareup/okhttp/internal/ws/WebSocketReaderTest$5.class
WebSocketReaderTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketReaderTest$5 extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate {
final synthetic java.util.concurrent.atomic.AtomicReference val$exception
final synthetic com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketReaderTest, java.util.concurrent.atomic.AtomicReference)
com.squareup.okhttp.internal.ws.WebSocketReaderTest this$0
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
IllegalStateException e
com.squareup.okhttp.ResponseBody message
}
com/squareup/okhttp/internal/ws/WebSocketReaderTest.class
WebSocketReaderTest.java
package com.squareup.okhttp.internal.ws
public final com.squareup.okhttp.internal.ws.WebSocketReaderTest extends java.lang.Object {
private final okio.Buffer data
private final com.squareup.okhttp.ws.WebSocketRecorder callback
private final java.util.Random random
private final com.squareup.okhttp.internal.ws.WebSocketReader serverReader
private final com.squareup.okhttp.internal.ws.WebSocketReader clientReader
public void <init> ()
public void tearDown ()
public void controlFramesMustBeFinal () throws java.io.IOException
java.net.ProtocolException e
public void reservedFlagsAreUnsupported () throws java.io.IOException
java.net.ProtocolException e
java.net.ProtocolException e
java.net.ProtocolException e
public void clientSentFramesMustBeMasked () throws java.io.IOException
java.net.ProtocolException e
public void serverSentFramesMustNotBeMasked () throws java.io.IOException
java.net.ProtocolException e
public void controlFramePayloadMax () throws java.io.IOException
java.net.ProtocolException e
public void clientSimpleHello () throws java.io.IOException
public void serverSimpleHello () throws java.io.IOException
public void clientFramePayloadShort () throws java.io.IOException
public void clientFramePayloadLong () throws java.io.IOException
public void clientFramePayloadTooLongThrows () throws java.io.IOException
java.net.ProtocolException e
public void serverHelloTwoChunks () throws java.io.IOException
okio.Buffer sink
public void clientTwoFrameHello () throws java.io.IOException
public void clientTwoFrameHelloWithPongs () throws java.io.IOException
public void clientIncompleteMessageBodyThrows () throws java.io.IOException
public void clientIncompleteControlFrameBodyThrows () throws java.io.IOException
public void serverIncompleteMessageBodyThrows () throws java.io.IOException
public void serverIncompleteControlFrameBodyThrows () throws java.io.IOException
public void clientSimpleBinary () throws java.io.IOException
byte[] bytes
public void clientTwoFrameBinary () throws java.io.IOException
byte[] bytes
public void twoFrameNotContinuation () throws java.io.IOException
java.net.ProtocolException e
byte[] bytes
public void noCloseErrors () throws java.io.IOException
IllegalStateException e
public void closeExhaustsMessage () throws java.io.IOException
okio.Buffer sink
public void closeExhaustsMessageOverControlFrames () throws java.io.IOException
okio.Buffer sink
public void closedMessageSourceThrows () throws java.io.IOException
java.util.concurrent.atomic.AtomicReference exception
public void emptyPingCallsCallback () throws java.io.IOException
public void pingCallsCallback () throws java.io.IOException
public void emptyCloseCallsCallback () throws java.io.IOException
public void closeLengthOfOneThrows () throws java.io.IOException
java.net.ProtocolException e
public void closeCallsCallback () throws java.io.IOException
public void closeOutOfRangeThrows () throws java.io.IOException
java.net.ProtocolException e
java.net.ProtocolException e
public void closeReservedSetThrows () throws java.io.IOException
int i
String message
java.net.ProtocolException e
int count
private byte[] binaryData (int)
int length
byte[] junk
static synthetic okio.Buffer access$000 (com.squareup.okhttp.internal.ws.WebSocketReaderTest)
com.squareup.okhttp.internal.ws.WebSocketReaderTest x0
}
com/squareup/okhttp/internal/ws/WebSocketWriter$1.class
WebSocketWriter.java
package com.squareup.okhttp.internal.ws
synthetic com.squareup.okhttp.internal.ws.WebSocketWriter$1 extends java.lang.Object {
}
com/squareup/okhttp/internal/ws/WebSocketWriter$FrameSink.class
WebSocketWriter.java
package com.squareup.okhttp.internal.ws
final com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink extends java.lang.Object implements okio.Sink {
private int formatOpcode
private boolean isFirstFrame
private boolean closed
final synthetic com.squareup.okhttp.internal.ws.WebSocketWriter this$0
private void <init> (com.squareup.okhttp.internal.ws.WebSocketWriter)
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
long emitCount
public void flush () throws java.io.IOException
public okio.Timeout timeout ()
public void close () throws java.io.IOException
synthetic void <init> (com.squareup.okhttp.internal.ws.WebSocketWriter, com.squareup.okhttp.internal.ws.WebSocketWriter$1)
com.squareup.okhttp.internal.ws.WebSocketWriter x0
com.squareup.okhttp.internal.ws.WebSocketWriter$1 x1
static synthetic int access$102 (com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink, int)
com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink x0
int x1
static synthetic boolean access$202 (com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink, boolean)
com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink x0
boolean x1
static synthetic boolean access$302 (com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink, boolean)
com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink x0
boolean x1
}
com/squareup/okhttp/internal/ws/WebSocketWriter.class
WebSocketWriter.java
package com.squareup.okhttp.internal.ws
public final com.squareup.okhttp.internal.ws.WebSocketWriter extends java.lang.Object {
private final boolean isClient
private final java.util.Random random
private final okio.BufferedSink sink
private boolean writerClosed
private final okio.Buffer buffer
private final com.squareup.okhttp.internal.ws.WebSocketWriter$FrameSink frameSink
private boolean activeWriter
private final byte[] maskKey
private final byte[] maskBuffer
static final synthetic boolean $assertionsDisabled
public void <init> (boolean, okio.BufferedSink, java.util.Random)
boolean isClient
okio.BufferedSink sink
java.util.Random random
public void writePing (okio.Buffer) throws java.io.IOException
okio.Buffer payload
public void writePong (okio.Buffer) throws java.io.IOException
okio.Buffer payload
public void writeClose (int, java.lang.String) throws java.io.IOException
int code
String reason
okio.Buffer payload
private void writeControlFrameSynchronized (int, okio.Buffer) throws java.io.IOException
int opcode
okio.Buffer payload
int length
int b0
int b1
public okio.Sink newMessageSink (int)
int formatOpcode
private void writeMessageFrameSynchronized (int, long, boolean, boolean) throws java.io.IOException
int formatOpcode
long byteCount
boolean isFirstFrame
boolean isFinal
int b0
int b1
private void writeMaskedSynchronized (okio.BufferedSource, long) throws java.io.IOException
int toRead
int read
okio.BufferedSource source
long byteCount
long written
static synthetic okio.Buffer access$400 (com.squareup.okhttp.internal.ws.WebSocketWriter)
com.squareup.okhttp.internal.ws.WebSocketWriter x0
static synthetic void access$500 (com.squareup.okhttp.internal.ws.WebSocketWriter, int, long, boolean, boolean) throws java.io.IOException
com.squareup.okhttp.internal.ws.WebSocketWriter x0
int x1
long x2
boolean x3
boolean x4
static synthetic okio.BufferedSink access$600 (com.squareup.okhttp.internal.ws.WebSocketWriter)
com.squareup.okhttp.internal.ws.WebSocketWriter x0
static synthetic boolean access$702 (com.squareup.okhttp.internal.ws.WebSocketWriter, boolean)
com.squareup.okhttp.internal.ws.WebSocketWriter x0
boolean x1
static void <clinit> ()
}
com/squareup/okhttp/internal/ws/WebSocketWriterTest$1$1.class
WebSocketWriterTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketWriterTest$1$1 extends org.junit.runners.model.Statement {
final synthetic org.junit.runners.model.Statement val$base
final synthetic com.squareup.okhttp.internal.ws.WebSocketWriterTest$1 this$1
void <init> (com.squareup.okhttp.internal.ws.WebSocketWriterTest$1, org.junit.runners.model.Statement)
com.squareup.okhttp.internal.ws.WebSocketWriterTest$1 this$1
public void evaluate () throws java.lang.Throwable
}
com/squareup/okhttp/internal/ws/WebSocketWriterTest$1.class
WebSocketWriterTest.java
package com.squareup.okhttp.internal.ws
com.squareup.okhttp.internal.ws.WebSocketWriterTest$1 extends java.lang.Object implements org.junit.rules.TestRule {
final synthetic com.squareup.okhttp.internal.ws.WebSocketWriterTest this$0
void <init> (com.squareup.okhttp.internal.ws.WebSocketWriterTest)
com.squareup.okhttp.internal.ws.WebSocketWriterTest this$0
public org.junit.runners.model.Statement apply (org.junit.runners.model.Statement, org.junit.runner.Description)
org.junit.runners.model.Statement base
org.junit.runner.Description description
}
com/squareup/okhttp/internal/ws/WebSocketWriterTest.class
WebSocketWriterTest.java
package com.squareup.okhttp.internal.ws
public final com.squareup.okhttp.internal.ws.WebSocketWriterTest extends java.lang.Object {
private final okio.Buffer data
private final java.util.Random random
public final org.junit.rules.TestRule noDataLeftBehind
private final com.squareup.okhttp.internal.ws.WebSocketWriter serverWriter
private final com.squareup.okhttp.internal.ws.WebSocketWriter clientWriter
public void <init> ()
public void serverTextMessage () throws java.io.IOException
okio.BufferedSink sink
public void closeFlushes () throws java.io.IOException
okio.BufferedSink sink
public void noWritesAfterClose () throws java.io.IOException
java.io.IOException e
okio.Sink sink
okio.Buffer payload
public void clientTextMessage () throws java.io.IOException
okio.BufferedSink sink
public void serverBinaryMessage () throws java.io.IOException
okio.BufferedSink sink
public void serverMessageLengthShort () throws java.io.IOException
okio.Sink sink
okio.Buffer payload
long byteCount
public void serverMessageLengthLong () throws java.io.IOException
okio.Sink sink
okio.Buffer payload
long byteCount
public void clientBinary () throws java.io.IOException
byte[] maskKey1
byte[] maskKey2
okio.BufferedSink sink
byte[] part1
byte[] part2
public void serverEmptyClose () throws java.io.IOException
public void serverCloseWithCode () throws java.io.IOException
public void serverCloseWithCodeAndReason () throws java.io.IOException
public void clientEmptyClose () throws java.io.IOException
public void clientCloseWithCode () throws java.io.IOException
public void clientCloseWithCodeAndReason () throws java.io.IOException
public void closeWithOnlyReasonThrows () throws java.io.IOException
public void closeCodeOutOfRangeThrows () throws java.io.IOException
IllegalArgumentException e
public void serverEmptyPing () throws java.io.IOException
public void clientEmptyPing () throws java.io.IOException
public void serverPingWithPayload () throws java.io.IOException
public void clientPingWithPayload () throws java.io.IOException
public void serverEmptyPong () throws java.io.IOException
public void clientEmptyPong () throws java.io.IOException
public void serverPongWithPayload () throws java.io.IOException
public void clientPongWithPayload () throws java.io.IOException
public void pingTooLongThrows () throws java.io.IOException
IllegalArgumentException e
public void pongTooLongThrows () throws java.io.IOException
IllegalArgumentException e
public void closeTooLongThrows () throws java.io.IOException
String longString
IllegalArgumentException e
public void twoMessageSinksThrows ()
IllegalStateException e
private void assertData (java.lang.String) throws java.io.EOFException
String hex
okio.ByteString expected
okio.ByteString actual
private void assertData (byte[]) throws java.io.IOException
int count
okio.Buffer expectedChunk
int i
byte[] data
int byteCount
private static byte[] binaryData (int)
int length
byte[] junk
static synthetic okio.Buffer access$000 (com.squareup.okhttp.internal.ws.WebSocketWriterTest)
com.squareup.okhttp.internal.ws.WebSocketWriterTest x0
}
com/squareup/okhttp/mockwebserver/
com/squareup/okhttp/mockwebserver/CustomDispatcherTest$1.class
CustomDispatcherTest.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.CustomDispatcherTest$1 extends com.squareup.okhttp.mockwebserver.Dispatcher {
final synthetic java.util.List val$requestsMade
final synthetic com.squareup.okhttp.mockwebserver.CustomDispatcherTest this$0
void <init> (com.squareup.okhttp.mockwebserver.CustomDispatcherTest, java.util.List)
com.squareup.okhttp.mockwebserver.CustomDispatcherTest this$0
public com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest) throws java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.RecordedRequest request
}
com/squareup/okhttp/mockwebserver/CustomDispatcherTest$2.class
CustomDispatcherTest.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.CustomDispatcherTest$2 extends com.squareup.okhttp.mockwebserver.Dispatcher {
final synthetic java.util.concurrent.CountDownLatch val$latch
final synthetic com.squareup.okhttp.mockwebserver.CustomDispatcherTest this$0
void <init> (com.squareup.okhttp.mockwebserver.CustomDispatcherTest, java.util.concurrent.CountDownLatch)
com.squareup.okhttp.mockwebserver.CustomDispatcherTest this$0
public com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest) throws java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.RecordedRequest request
}
com/squareup/okhttp/mockwebserver/CustomDispatcherTest$3.class
CustomDispatcherTest.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.CustomDispatcherTest$3 extends java.lang.Object implements java.lang.Runnable {
final synthetic String val$path
final synthetic java.util.concurrent.atomic.AtomicInteger val$responseCode
final synthetic com.squareup.okhttp.mockwebserver.CustomDispatcherTest this$0
void <init> (com.squareup.okhttp.mockwebserver.CustomDispatcherTest, java.lang.String, java.util.concurrent.atomic.AtomicInteger)
com.squareup.okhttp.mockwebserver.CustomDispatcherTest this$0
public void run ()
java.net.HttpURLConnection conn
java.net.URL url
}
com/squareup/okhttp/mockwebserver/CustomDispatcherTest.class
CustomDispatcherTest.java
package com.squareup.okhttp.mockwebserver
public com.squareup.okhttp.mockwebserver.CustomDispatcherTest extends java.lang.Object {
private com.squareup.okhttp.mockwebserver.MockWebServer mockWebServer
public void <init> ()
public void tearDown () throws java.lang.Exception
public void simpleDispatch () throws java.lang.Exception
java.util.List requestsMade
com.squareup.okhttp.mockwebserver.Dispatcher dispatcher
java.net.URL url
java.net.HttpURLConnection conn
public void outOfOrderResponses () throws java.lang.Exception
java.util.concurrent.atomic.AtomicInteger firstResponseCode
java.util.concurrent.atomic.AtomicInteger secondResponseCode
String secondRequest
String firstRequest
java.util.concurrent.CountDownLatch latch
com.squareup.okhttp.mockwebserver.Dispatcher dispatcher
Thread startsFirst
Thread endsFirst
private java.lang.Thread buildRequestThread (java.lang.String, java.util.concurrent.atomic.AtomicInteger)
String path
java.util.concurrent.atomic.AtomicInteger responseCode
static synthetic com.squareup.okhttp.mockwebserver.MockWebServer access$000 (com.squareup.okhttp.mockwebserver.CustomDispatcherTest)
com.squareup.okhttp.mockwebserver.CustomDispatcherTest x0
}
com/squareup/okhttp/mockwebserver/Dispatcher.class
Dispatcher.java
package com.squareup.okhttp.mockwebserver
public abstract com.squareup.okhttp.mockwebserver.Dispatcher extends java.lang.Object {
public void <init> ()
public abstract com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest) throws java.lang.InterruptedException
public com.squareup.okhttp.mockwebserver.MockResponse peek ()
}
com/squareup/okhttp/mockwebserver/MockResponse.class
MockResponse.java
package com.squareup.okhttp.mockwebserver
public final com.squareup.okhttp.mockwebserver.MockResponse extends java.lang.Object implements java.lang.Cloneable {
private static final String CHUNKED_BODY_HEADER
private String status
private com.squareup.okhttp.Headers$Builder headers
private okio.Buffer body
private long throttleBytesPerPeriod
private long throttlePeriodAmount
private java.util.concurrent.TimeUnit throttlePeriodUnit
private com.squareup.okhttp.mockwebserver.SocketPolicy socketPolicy
private java.util.function.Consumer socketShutdownListener
private long bodyDelayAmount
private java.util.concurrent.TimeUnit bodyDelayUnit
private java.util.List promises
private com.squareup.okhttp.internal.framed.Settings settings
private com.squareup.okhttp.ws.WebSocketListener webSocketListener
public void <init> ()
public com.squareup.okhttp.mockwebserver.MockResponse clone ()
com.squareup.okhttp.mockwebserver.MockResponse result
CloneNotSupportedException e
public java.lang.String getStatus ()
public com.squareup.okhttp.mockwebserver.MockResponse setResponseCode (int)
int code
public com.squareup.okhttp.mockwebserver.MockResponse setStatus (java.lang.String)
String status
public com.squareup.okhttp.Headers getHeaders ()
public com.squareup.okhttp.mockwebserver.MockResponse clearHeaders ()
public com.squareup.okhttp.mockwebserver.MockResponse addHeader (java.lang.String)
String header
public com.squareup.okhttp.mockwebserver.MockResponse addHeader (java.lang.String, java.lang.Object)
String name
Object value
public com.squareup.okhttp.mockwebserver.MockResponse addHeaderLenient (java.lang.String, java.lang.Object)
String name
Object value
public com.squareup.okhttp.mockwebserver.MockResponse setHeader (java.lang.String, java.lang.Object)
String name
Object value
public com.squareup.okhttp.mockwebserver.MockResponse setHeaders (com.squareup.okhttp.Headers)
com.squareup.okhttp.Headers headers
public com.squareup.okhttp.mockwebserver.MockResponse removeHeader (java.lang.String)
String name
public okio.Buffer getBody ()
public com.squareup.okhttp.mockwebserver.MockResponse setBody (okio.Buffer)
okio.Buffer body
public com.squareup.okhttp.mockwebserver.MockResponse setBody (java.lang.String)
String body
public com.squareup.okhttp.mockwebserver.MockResponse setChunkedBody (okio.Buffer, int)
long chunkSize
okio.Buffer body
int maxChunkSize
okio.Buffer bytesOut
public com.squareup.okhttp.mockwebserver.MockResponse setChunkedBody (java.lang.String, int)
String body
int maxChunkSize
public com.squareup.okhttp.mockwebserver.SocketPolicy getSocketPolicy ()
public com.squareup.okhttp.mockwebserver.MockResponse setSocketPolicy (com.squareup.okhttp.mockwebserver.SocketPolicy)
com.squareup.okhttp.mockwebserver.SocketPolicy socketPolicy
public com.squareup.okhttp.mockwebserver.MockResponse setSocketShutdownListener (java.util.function.Consumer)
java.util.function.Consumer listener
void notifyShutdown (com.squareup.okhttp.mockwebserver.SocketPolicy)
com.squareup.okhttp.mockwebserver.SocketPolicy reason
public com.squareup.okhttp.mockwebserver.MockResponse throttleBody (long, long, java.util.concurrent.TimeUnit)
long bytesPerPeriod
long period
java.util.concurrent.TimeUnit unit
public long getThrottleBytesPerPeriod ()
public long getThrottlePeriod (java.util.concurrent.TimeUnit)
java.util.concurrent.TimeUnit unit
public com.squareup.okhttp.mockwebserver.MockResponse setBodyDelay (long, java.util.concurrent.TimeUnit)
long delay
java.util.concurrent.TimeUnit unit
public long getBodyDelay (java.util.concurrent.TimeUnit)
java.util.concurrent.TimeUnit unit
public com.squareup.okhttp.mockwebserver.MockResponse withPush (com.squareup.okhttp.mockwebserver.PushPromise)
com.squareup.okhttp.mockwebserver.PushPromise promise
public java.util.List getPushPromises ()
public com.squareup.okhttp.mockwebserver.MockResponse withSettings (com.squareup.okhttp.internal.framed.Settings)
com.squareup.okhttp.internal.framed.Settings settings
public com.squareup.okhttp.internal.framed.Settings getSettings ()
public com.squareup.okhttp.mockwebserver.MockResponse withWebSocketUpgrade (com.squareup.okhttp.ws.WebSocketListener)
com.squareup.okhttp.ws.WebSocketListener listener
public com.squareup.okhttp.ws.WebSocketListener getWebSocketListener ()
public java.lang.String toString ()
public volatile synthetic java.lang.Object clone () throws java.lang.CloneNotSupportedException
}
com/squareup/okhttp/mockwebserver/MockWebServer$1.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$1 extends java.lang.Object implements javax.net.ssl.X509TrustManager {
void <init> ()
public void checkClientTrusted (java.security.cert.X509Certificate[], java.lang.String) throws java.security.cert.CertificateException
java.security.cert.X509Certificate[] chain
String authType
public void checkServerTrusted (java.security.cert.X509Certificate[], java.lang.String)
java.security.cert.X509Certificate[] chain
String authType
public java.security.cert.X509Certificate[] getAcceptedIssuers ()
}
com/squareup/okhttp/mockwebserver/MockWebServer$2.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$2 extends org.junit.runners.model.Statement {
final synthetic org.junit.runners.model.Statement val$base
final synthetic com.squareup.okhttp.mockwebserver.MockWebServer this$0
void <init> (com.squareup.okhttp.mockwebserver.MockWebServer, org.junit.runners.model.Statement)
com.squareup.okhttp.mockwebserver.MockWebServer this$0
public void evaluate () throws java.lang.Throwable
java.io.IOException e
java.io.IOException e
}
com/squareup/okhttp/mockwebserver/MockWebServer$3.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$3 extends com.squareup.okhttp.internal.NamedRunnable {
final synthetic com.squareup.okhttp.mockwebserver.MockWebServer this$0
transient void <init> (com.squareup.okhttp.mockwebserver.MockWebServer, java.lang.String, java.lang.Object[])
com.squareup.okhttp.mockwebserver.MockWebServer this$0
String arg0
Object[] arg1
protected void execute ()
Throwable e
java.util.Iterator s
java.util.Iterator s
private void acceptConnections () throws java.lang.Exception
java.net.Socket socket
java.net.SocketException e
java.net.Socket socket
com.squareup.okhttp.mockwebserver.SocketPolicy socketPolicy
}
com/squareup/okhttp/mockwebserver/MockWebServer$4.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$4 extends com.squareup.okhttp.internal.NamedRunnable {
int sequenceNumber
final synthetic java.net.Socket val$raw
final synthetic com.squareup.okhttp.mockwebserver.MockWebServer this$0
transient void <init> (com.squareup.okhttp.mockwebserver.MockWebServer, java.lang.String, java.lang.Object[], java.net.Socket)
com.squareup.okhttp.mockwebserver.MockWebServer this$0
String arg0
Object[] arg1
protected void execute ()
java.io.IOException e
Exception e
public void processConnection () throws java.lang.Exception
String protocolString
com.squareup.okhttp.mockwebserver.SocketPolicy socketPolicy
javax.net.ssl.SSLSocket sslSocket
java.net.Socket socket
com.squareup.okhttp.mockwebserver.MockWebServer$FramedSocketHandler framedSocketListener
com.squareup.okhttp.internal.framed.FramedConnection framedConnection
com.squareup.okhttp.Protocol protocol
java.net.Socket socket
okio.BufferedSource source
okio.BufferedSink sink
private void createTunnel () throws java.io.IOException java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.SocketPolicy socketPolicy
okio.BufferedSource source
okio.BufferedSink sink
private boolean processOneRequest (java.net.Socket, okio.BufferedSource, okio.BufferedSink) throws java.io.IOException java.lang.InterruptedException
java.net.Socket socket
okio.BufferedSource source
okio.BufferedSink sink
com.squareup.okhttp.mockwebserver.RecordedRequest request
com.squareup.okhttp.mockwebserver.MockResponse response
boolean reuseSocket
boolean requestWantsWebSockets
boolean responseWantsWebSockets
}
com/squareup/okhttp/mockwebserver/MockWebServer$5.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$5 extends com.squareup.okhttp.internal.ws.RealWebSocket {
final synthetic java.util.concurrent.CountDownLatch val$connectionClose
final synthetic com.squareup.okhttp.mockwebserver.MockWebServer this$0
void <init> (com.squareup.okhttp.mockwebserver.MockWebServer, boolean, okio.BufferedSource, okio.BufferedSink, java.util.Random, java.util.concurrent.Executor, com.squareup.okhttp.ws.WebSocketListener, java.lang.String, java.util.concurrent.CountDownLatch)
com.squareup.okhttp.mockwebserver.MockWebServer this$0
boolean isClient
okio.BufferedSource source
okio.BufferedSink sink
java.util.Random random
java.util.concurrent.Executor replyExecutor
com.squareup.okhttp.ws.WebSocketListener listener
String url
protected void close () throws java.io.IOException
}
com/squareup/okhttp/mockwebserver/MockWebServer$FramedSocketHandler.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$FramedSocketHandler extends com.squareup.okhttp.internal.framed.FramedConnection$Listener {
private final java.net.Socket socket
private final com.squareup.okhttp.Protocol protocol
private final java.util.concurrent.atomic.AtomicInteger sequenceNumber
final synthetic com.squareup.okhttp.mockwebserver.MockWebServer this$0
private void <init> (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket, com.squareup.okhttp.Protocol)
java.net.Socket socket
com.squareup.okhttp.Protocol protocol
public void onStream (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
InterruptedException e
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.mockwebserver.RecordedRequest request
com.squareup.okhttp.mockwebserver.MockResponse response
private com.squareup.okhttp.mockwebserver.RecordedRequest readRequest (com.squareup.okhttp.internal.framed.FramedStream) throws java.io.IOException
String s
okio.ByteString name
String value
int i
int size
com.squareup.okhttp.internal.framed.FramedStream stream
java.util.List streamHeaders
com.squareup.okhttp.Headers$Builder httpHeaders
String method
String path
String version
okio.Buffer body
String requestLine
java.util.List chunkSizes
private void writeResponse (com.squareup.okhttp.internal.framed.FramedStream, com.squareup.okhttp.mockwebserver.MockResponse) throws java.io.IOException
int i
int size
okio.BufferedSink sink
com.squareup.okhttp.internal.framed.FramedStream stream
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.internal.framed.Settings settings
java.util.List spdyHeaders
String[] statusParts
com.squareup.okhttp.Headers headers
okio.Buffer body
boolean closeStreamAfterHeaders
private void pushPromises (com.squareup.okhttp.internal.framed.FramedStream, java.util.List) throws java.io.IOException
int i
int size
java.util.List pushedHeaders
com.squareup.okhttp.Headers pushPromiseHeaders
String requestLine
java.util.List chunkSizes
boolean hasBody
com.squareup.okhttp.internal.framed.FramedStream pushedStream
com.squareup.okhttp.mockwebserver.PushPromise pushPromise
com.squareup.okhttp.internal.framed.FramedStream stream
java.util.List promises
synthetic void <init> (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket, com.squareup.okhttp.Protocol, com.squareup.okhttp.mockwebserver.MockWebServer$1)
com.squareup.okhttp.mockwebserver.MockWebServer x0
java.net.Socket x1
com.squareup.okhttp.Protocol x2
com.squareup.okhttp.mockwebserver.MockWebServer$1 x3
}
com/squareup/okhttp/mockwebserver/MockWebServer$TruncatingBuffer.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServer$TruncatingBuffer extends java.lang.Object implements okio.Sink {
private final okio.Buffer buffer
private long remainingByteCount
private long receivedByteCount
void <init> (long)
long bodyLimit
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
long toRead
long toSkip
public void flush () throws java.io.IOException
public okio.Timeout timeout ()
public void close () throws java.io.IOException
static synthetic long access$2000 (com.squareup.okhttp.mockwebserver.MockWebServer$TruncatingBuffer)
com.squareup.okhttp.mockwebserver.MockWebServer$TruncatingBuffer x0
static synthetic okio.Buffer access$2100 (com.squareup.okhttp.mockwebserver.MockWebServer$TruncatingBuffer)
com.squareup.okhttp.mockwebserver.MockWebServer$TruncatingBuffer x0
}
com/squareup/okhttp/mockwebserver/MockWebServer.class
MockWebServer.java
package com.squareup.okhttp.mockwebserver
public final com.squareup.okhttp.mockwebserver.MockWebServer extends java.lang.Object implements org.junit.rules.TestRule {
private static final javax.net.ssl.X509TrustManager UNTRUSTED_TRUST_MANAGER
private static final java.util.logging.Logger logger
private final java.util.concurrent.BlockingQueue requestQueue
private final java.util.Set openClientSockets
private final java.util.Set openFramedConnections
private final java.util.concurrent.atomic.AtomicInteger requestCount
private long bodyLimit
private javax.net.ServerSocketFactory serverSocketFactory
private java.net.ServerSocket serverSocket
private javax.net.ssl.SSLSocketFactory sslSocketFactory
private java.util.concurrent.ExecutorService executor
private boolean tunnelProxy
private com.squareup.okhttp.mockwebserver.Dispatcher dispatcher
private int port
private java.net.InetSocketAddress inetSocketAddress
private boolean protocolNegotiationEnabled
private java.util.List protocols
private boolean started
public void <init> ()
private synchronized void maybeStart ()
java.io.IOException e
public org.junit.runners.model.Statement apply (org.junit.runners.model.Statement, org.junit.runner.Description)
org.junit.runners.model.Statement base
org.junit.runner.Description description
public int getPort ()
public java.lang.String getHostName ()
public java.net.Proxy toProxyAddress ()
java.net.InetSocketAddress address
public void setServerSocketFactory (javax.net.ServerSocketFactory)
javax.net.ServerSocketFactory serverSocketFactory
public java.net.URL getUrl (java.lang.String)
String path
public com.squareup.okhttp.HttpUrl url (java.lang.String)
String path
public java.lang.String getCookieDomain ()
String hostName
public void setBodyLimit (long)
long maxBodyLength
public void setProtocolNegotiationEnabled (boolean)
boolean protocolNegotiationEnabled
public void setProtocols (java.util.List)
java.util.List protocols
public void useHttps (javax.net.ssl.SSLSocketFactory, boolean)
javax.net.ssl.SSLSocketFactory sslSocketFactory
boolean tunnelProxy
public com.squareup.okhttp.mockwebserver.RecordedRequest takeRequest () throws java.lang.InterruptedException
public com.squareup.okhttp.mockwebserver.RecordedRequest takeRequest (long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
long timeout
java.util.concurrent.TimeUnit unit
public int getRequestCount ()
public void enqueue (com.squareup.okhttp.mockwebserver.MockResponse)
com.squareup.okhttp.mockwebserver.MockResponse response
public void start () throws java.io.IOException
public void start (int) throws java.io.IOException
int port
public void start (java.net.InetAddress, int) throws java.io.IOException
java.net.InetAddress inetAddress
int port
private synchronized void start (java.net.InetSocketAddress) throws java.io.IOException
java.net.InetSocketAddress inetSocketAddress
public synchronized void shutdown () throws java.io.IOException
InterruptedException e
private void serveConnection (java.net.Socket)
java.net.Socket raw
private void processHandshakeFailure (java.net.Socket) throws java.lang.Exception
java.net.Socket raw
javax.net.ssl.SSLContext context
javax.net.ssl.SSLSocketFactory sslSocketFactory
javax.net.ssl.SSLSocket socket
private void dispatchBookkeepingRequest (int, java.net.Socket) throws java.lang.InterruptedException
int sequenceNumber
java.net.Socket socket
private com.squareup.okhttp.mockwebserver.RecordedRequest readRequest (java.net.Socket, okio.BufferedSource, okio.BufferedSink, int) throws java.io.IOException
String request
java.io.IOException streamIsClosed
String lowercaseHeader
int chunkSize
java.net.Socket socket
okio.BufferedSource source
okio.BufferedSink sink
int sequenceNumber
String request
com.squareup.okhttp.Headers$Builder headers
long contentLength
boolean chunked
boolean expectContinue
String header
boolean hasBody
com.squareup.okhttp.mockwebserver.MockWebServer$TruncatingBuffer requestBody
java.util.List chunkSizes
com.squareup.okhttp.mockwebserver.MockResponse policy
String method
private void handleWebSocketUpgrade (java.net.Socket, okio.BufferedSource, okio.BufferedSink, com.squareup.okhttp.mockwebserver.RecordedRequest, com.squareup.okhttp.mockwebserver.MockResponse) throws java.io.IOException
InterruptedException e
java.net.Socket socket
okio.BufferedSource source
okio.BufferedSink sink
com.squareup.okhttp.mockwebserver.RecordedRequest request
com.squareup.okhttp.mockwebserver.MockResponse response
String key
String acceptKey
com.squareup.okhttp.ws.WebSocketListener listener
java.util.concurrent.CountDownLatch connectionClose
java.util.concurrent.ThreadPoolExecutor replyExecutor
com.squareup.okhttp.internal.ws.RealWebSocket webSocket
String scheme
String authority
com.squareup.okhttp.Request fancyRequest
com.squareup.okhttp.Response fancyResponse
private void writeHttpResponse (java.net.Socket, okio.BufferedSink, com.squareup.okhttp.mockwebserver.MockResponse) throws java.io.IOException
int i
int size
java.net.Socket socket
okio.BufferedSink sink
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.Headers headers
okio.Buffer body
private void sleepIfDelayed (com.squareup.okhttp.mockwebserver.MockResponse)
InterruptedException e
com.squareup.okhttp.mockwebserver.MockResponse response
long delayMs
private void throttledTransfer (com.squareup.okhttp.mockwebserver.MockResponse, java.net.Socket, okio.BufferedSource, okio.BufferedSink, long, boolean) throws java.io.IOException
long toRead
long read
int b
InterruptedException e
com.squareup.okhttp.mockwebserver.MockResponse policy
java.net.Socket socket
okio.BufferedSource source
okio.BufferedSink sink
long byteCount
boolean isRequest
okio.Buffer buffer
long bytesPerPeriod
long periodDelayMs
long halfByteCount
boolean disconnectHalfway
private void readEmptyLine (okio.BufferedSource) throws java.io.IOException
okio.BufferedSource source
String line
public void setDispatcher (com.squareup.okhttp.mockwebserver.Dispatcher)
com.squareup.okhttp.mockwebserver.Dispatcher dispatcher
public java.lang.String toString ()
static synthetic void access$000 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic java.util.logging.Logger access$100 ()
static synthetic java.net.ServerSocket access$200 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic java.util.Set access$300 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic java.util.Set access$400 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic java.util.concurrent.ExecutorService access$500 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic com.squareup.okhttp.mockwebserver.Dispatcher access$600 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic void access$700 (com.squareup.okhttp.mockwebserver.MockWebServer, int, java.net.Socket) throws java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.MockWebServer x0
int x1
java.net.Socket x2
static synthetic void access$800 (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket)
com.squareup.okhttp.mockwebserver.MockWebServer x0
java.net.Socket x1
static synthetic javax.net.ssl.SSLSocketFactory access$900 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic boolean access$1000 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic void access$1100 (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket) throws java.lang.Exception
com.squareup.okhttp.mockwebserver.MockWebServer x0
java.net.Socket x1
static synthetic boolean access$1200 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic java.util.List access$1300 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic com.squareup.okhttp.mockwebserver.RecordedRequest access$1500 (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket, okio.BufferedSource, okio.BufferedSink, int) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer x0
java.net.Socket x1
okio.BufferedSource x2
okio.BufferedSink x3
int x4
static synthetic java.util.concurrent.atomic.AtomicInteger access$1600 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic java.util.concurrent.BlockingQueue access$1700 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic void access$1800 (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket, okio.BufferedSource, okio.BufferedSink, com.squareup.okhttp.mockwebserver.RecordedRequest, com.squareup.okhttp.mockwebserver.MockResponse) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer x0
java.net.Socket x1
okio.BufferedSource x2
okio.BufferedSink x3
com.squareup.okhttp.mockwebserver.RecordedRequest x4
com.squareup.okhttp.mockwebserver.MockResponse x5
static synthetic void access$1900 (com.squareup.okhttp.mockwebserver.MockWebServer, java.net.Socket, okio.BufferedSink, com.squareup.okhttp.mockwebserver.MockResponse) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer x0
java.net.Socket x1
okio.BufferedSink x2
com.squareup.okhttp.mockwebserver.MockResponse x3
static synthetic void access$2200 (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.mockwebserver.MockResponse)
com.squareup.okhttp.mockwebserver.MockWebServer x0
com.squareup.okhttp.mockwebserver.MockResponse x1
static synthetic long access$2300 (com.squareup.okhttp.mockwebserver.MockWebServer)
com.squareup.okhttp.mockwebserver.MockWebServer x0
static synthetic void access$2400 (com.squareup.okhttp.mockwebserver.MockWebServer, com.squareup.okhttp.mockwebserver.MockResponse, java.net.Socket, okio.BufferedSource, okio.BufferedSink, long, boolean) throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer x0
com.squareup.okhttp.mockwebserver.MockResponse x1
java.net.Socket x2
okio.BufferedSource x3
okio.BufferedSink x4
long x5
boolean x6
static void <clinit> ()
}
com/squareup/okhttp/mockwebserver/MockWebServerTest$1.class
MockWebServerTest.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServerTest$1 extends java.lang.Thread {
final synthetic com.squareup.okhttp.mockwebserver.MockWebServerTest this$0
void <init> (com.squareup.okhttp.mockwebserver.MockWebServerTest)
com.squareup.okhttp.mockwebserver.MockWebServerTest this$0
public void run ()
}
com/squareup/okhttp/mockwebserver/MockWebServerTest$2.class
MockWebServerTest.java
package com.squareup.okhttp.mockwebserver
com.squareup.okhttp.mockwebserver.MockWebServerTest$2 extends org.junit.runners.model.Statement {
final synthetic java.util.concurrent.atomic.AtomicBoolean val$called
final synthetic com.squareup.okhttp.mockwebserver.MockWebServerTest this$0
void <init> (com.squareup.okhttp.mockwebserver.MockWebServerTest, java.util.concurrent.atomic.AtomicBoolean)
com.squareup.okhttp.mockwebserver.MockWebServerTest this$0
public void evaluate () throws java.lang.Throwable
}
com/squareup/okhttp/mockwebserver/MockWebServerTest.class
MockWebServerTest.java
package com.squareup.okhttp.mockwebserver
public final com.squareup.okhttp.mockwebserver.MockWebServerTest extends java.lang.Object {
public final com.squareup.okhttp.mockwebserver.MockWebServer server
public void <init> ()
public void defaultMockResponse ()
com.squareup.okhttp.mockwebserver.MockResponse response
public void setBodyAdjustsHeaders () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockResponse response
public void mockResponseAddHeader ()
com.squareup.okhttp.mockwebserver.MockResponse response
public void mockResponseSetHeader ()
com.squareup.okhttp.mockwebserver.MockResponse response
public void regularResponse () throws java.lang.Exception
java.net.URL url
java.net.HttpURLConnection connection
java.io.InputStream in
java.io.BufferedReader reader
com.squareup.okhttp.mockwebserver.RecordedRequest request
public void redirect () throws java.lang.Exception
java.net.URLConnection connection
java.io.InputStream in
java.io.BufferedReader reader
com.squareup.okhttp.mockwebserver.RecordedRequest first
com.squareup.okhttp.mockwebserver.RecordedRequest redirect
public void dispatchBlocksWaitingForEnqueue () throws java.lang.Exception
java.net.URLConnection connection
java.io.InputStream in
java.io.BufferedReader reader
public void nonHexadecimalChunkSize () throws java.lang.Exception
java.net.URLConnection connection
java.io.InputStream in
public void responseTimeout () throws java.lang.Exception
java.net.URLConnection urlConnection
java.io.InputStream in
java.net.URLConnection urlConnection2
java.io.InputStream in2
public void disconnectAtStart () throws java.lang.Exception
public void throttleRequest () throws java.lang.Exception
long startNanos
java.net.URLConnection connection
java.io.InputStream in
long elapsedNanos
long elapsedMillis
public void throttleResponse () throws java.lang.Exception
long startNanos
java.net.URLConnection connection
java.io.InputStream in
long elapsedNanos
long elapsedMillis
public void delayResponse () throws java.io.IOException
long startNanos
java.net.URLConnection connection
java.io.InputStream in
long elapsedNanos
long elapsedMillis
public void disconnectRequestHalfway () throws java.io.IOException
java.io.IOException e
java.net.HttpURLConnection connection
java.io.OutputStream out
byte[] data
int i
public void disconnectResponseHalfway () throws java.io.IOException
int byteRead
java.net.URLConnection connection
java.io.InputStream in
private java.util.List headersToList (com.squareup.okhttp.mockwebserver.MockResponse)
int i
com.squareup.okhttp.mockwebserver.MockResponse response
com.squareup.okhttp.Headers headers
int size
java.util.List headerList
public void shutdownWithoutStart () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
public void shutdownWithoutEnqueue () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer server
public void tearDown () throws java.io.IOException
public void portImplicitlyStarts () throws java.io.IOException
public void hostNameImplicitlyStarts () throws java.io.IOException
public void toProxyAddressImplicitlyStarts () throws java.io.IOException
public void differentInstancesGetDifferentPorts () throws java.io.IOException
com.squareup.okhttp.mockwebserver.MockWebServer other
public void statementStartsAndStops () throws java.lang.Throwable
java.util.concurrent.atomic.AtomicBoolean called
org.junit.runners.model.Statement statement
}
com/squareup/okhttp/mockwebserver/PushPromise.class
PushPromise.java
package com.squareup.okhttp.mockwebserver
public final com.squareup.okhttp.mockwebserver.PushPromise extends java.lang.Object {
private final String method
private final String path
private final com.squareup.okhttp.Headers headers
private final com.squareup.okhttp.mockwebserver.MockResponse response
public void <init> (java.lang.String, java.lang.String, com.squareup.okhttp.Headers, com.squareup.okhttp.mockwebserver.MockResponse)
String method
String path
com.squareup.okhttp.Headers headers
com.squareup.okhttp.mockwebserver.MockResponse response
public java.lang.String getMethod ()
public java.lang.String getPath ()
public com.squareup.okhttp.Headers getHeaders ()
public com.squareup.okhttp.mockwebserver.MockResponse getResponse ()
}
com/squareup/okhttp/mockwebserver/QueueDispatcher.class
QueueDispatcher.java
package com.squareup.okhttp.mockwebserver
public com.squareup.okhttp.mockwebserver.QueueDispatcher extends com.squareup.okhttp.mockwebserver.Dispatcher {
private static final java.util.logging.Logger logger
protected final java.util.concurrent.BlockingQueue responseQueue
private com.squareup.okhttp.mockwebserver.MockResponse failFastResponse
public void <init> ()
public com.squareup.okhttp.mockwebserver.MockResponse dispatch (com.squareup.okhttp.mockwebserver.RecordedRequest) throws java.lang.InterruptedException
com.squareup.okhttp.mockwebserver.RecordedRequest request
String requestLine
public com.squareup.okhttp.mockwebserver.MockResponse peek ()
com.squareup.okhttp.mockwebserver.MockResponse peek
public void enqueueResponse (com.squareup.okhttp.mockwebserver.MockResponse)
com.squareup.okhttp.mockwebserver.MockResponse response
public void setFailFast (boolean)
boolean failFast
com.squareup.okhttp.mockwebserver.MockResponse failFastResponse
public void setFailFast (com.squareup.okhttp.mockwebserver.MockResponse)
com.squareup.okhttp.mockwebserver.MockResponse failFastResponse
static void <clinit> ()
}
com/squareup/okhttp/mockwebserver/RecordedRequest.class
RecordedRequest.java
package com.squareup.okhttp.mockwebserver
public final com.squareup.okhttp.mockwebserver.RecordedRequest extends java.lang.Object {
private final String requestLine
private final String method
private final String path
private final com.squareup.okhttp.Headers headers
private final java.util.List chunkSizes
private final long bodySize
private final okio.Buffer body
private final int sequenceNumber
private final com.squareup.okhttp.TlsVersion tlsVersion
public void <init> (java.lang.String, com.squareup.okhttp.Headers, java.util.List, long, okio.Buffer, int, java.net.Socket)
int methodEnd
int pathEnd
String requestLine
com.squareup.okhttp.Headers headers
java.util.List chunkSizes
long bodySize
okio.Buffer body
int sequenceNumber
java.net.Socket socket
public java.lang.String getRequestLine ()
public java.lang.String getMethod ()
public java.lang.String getPath ()
public com.squareup.okhttp.Headers getHeaders ()
public java.lang.String getHeader (java.lang.String)
String name
java.util.List values
public java.util.List getChunkSizes ()
public long getBodySize ()
public okio.Buffer getBody ()
public java.lang.String getUtf8Body ()
public int getSequenceNumber ()
public com.squareup.okhttp.TlsVersion getTlsVersion ()
public java.lang.String toString ()
}
com/squareup/okhttp/mockwebserver/SocketPolicy.class
SocketPolicy.java
package com.squareup.okhttp.mockwebserver
public final enum com.squareup.okhttp.mockwebserver.SocketPolicy extends java.lang.Enum {
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy KEEP_OPEN
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy DISCONNECT_AT_END
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy UPGRADE_TO_SSL_AT_END
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy DISCONNECT_AT_START
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy DISCONNECT_AFTER_REQUEST
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy DISCONNECT_DURING_REQUEST_BODY
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy DISCONNECT_DURING_RESPONSE_BODY
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy FAIL_HANDSHAKE
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy SHUTDOWN_INPUT_AT_END
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy SHUTDOWN_OUTPUT_AT_END
public static final enum com.squareup.okhttp.mockwebserver.SocketPolicy NO_RESPONSE
private static final synthetic com.squareup.okhttp.mockwebserver.SocketPolicy[] $VALUES
public static com.squareup.okhttp.mockwebserver.SocketPolicy[] values ()
public static com.squareup.okhttp.mockwebserver.SocketPolicy valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int)
private static synthetic com.squareup.okhttp.mockwebserver.SocketPolicy[] $values ()
static void <clinit> ()
}
com/squareup/okhttp/mockwebserver/SocketShutdownListener.class
SocketShutdownListener.java
package com.squareup.okhttp.mockwebserver
public com.squareup.okhttp.mockwebserver.SocketShutdownListener extends java.lang.Object implements java.util.function.Consumer {
final java.util.concurrent.CountDownLatch shutdownLatch
public void <init> ()
public void accept (com.squareup.okhttp.mockwebserver.SocketPolicy)
com.squareup.okhttp.mockwebserver.SocketPolicy reason
public void waitForSocketShutdown ()
public volatile synthetic void accept (java.lang.Object)
}
com/squareup/okhttp/testing/
com/squareup/okhttp/testing/InstallUncaughtExceptionHandlerListener$1.class
InstallUncaughtExceptionHandlerListener.java
package com.squareup.okhttp.testing
com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener$1 extends java.lang.Object implements java.lang.Thread$UncaughtExceptionHandler {
final synthetic com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener this$0
void <init> (com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener)
com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener this$0
public void uncaughtException (java.lang.Thread, java.lang.Throwable)
Thread thread
Throwable throwable
java.io.StringWriter errorText
}
com/squareup/okhttp/testing/InstallUncaughtExceptionHandlerListener.class
InstallUncaughtExceptionHandlerListener.java
package com.squareup.okhttp.testing
public com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener extends org.junit.runner.notification.RunListener {
private Thread$UncaughtExceptionHandler oldDefaultUncaughtExceptionHandler
private org.junit.runner.Description lastTestStarted
public void <init> ()
public void testRunStarted (org.junit.runner.Description) throws java.lang.Exception
org.junit.runner.Description description
public void testStarted (org.junit.runner.Description) throws java.lang.Exception
org.junit.runner.Description description
public void testRunFinished (org.junit.runner.Result) throws java.lang.Exception
org.junit.runner.Result result
static synthetic org.junit.runner.Description access$000 (com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener)
com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener x0
}
com/squareup/okhttp/testing/RecordingHostnameVerifier.class
RecordingHostnameVerifier.java
package com.squareup.okhttp.testing
public final com.squareup.okhttp.testing.RecordingHostnameVerifier extends java.lang.Object implements javax.net.ssl.HostnameVerifier {
public final java.util.List calls
public void <init> ()
public boolean verify (java.lang.String, javax.net.ssl.SSLSession)
String hostname
javax.net.ssl.SSLSession session
}
com/squareup/okhttp/ws/
com/squareup/okhttp/ws/WebSocket.class
WebSocket.java
package com.squareup.okhttp.ws
public abstract com.squareup.okhttp.ws.WebSocket extends java.lang.Object {
public static final com.squareup.okhttp.MediaType TEXT
public static final com.squareup.okhttp.MediaType BINARY
public abstract void sendMessage (com.squareup.okhttp.RequestBody) throws java.io.IOException
public abstract void sendPing (okio.Buffer) throws java.io.IOException
public abstract void close (int, java.lang.String) throws java.io.IOException
static void <clinit> ()
}
com/squareup/okhttp/ws/WebSocketCall$1.class
WebSocketCall.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketCall$1 extends java.lang.Object implements com.squareup.okhttp.Callback {
final synthetic com.squareup.okhttp.ws.WebSocketListener val$listener
final synthetic com.squareup.okhttp.ws.WebSocketCall this$0
void <init> (com.squareup.okhttp.ws.WebSocketCall, com.squareup.okhttp.ws.WebSocketListener)
com.squareup.okhttp.ws.WebSocketCall this$0
public void onResponse (com.squareup.okhttp.Response) throws java.io.IOException
java.io.IOException e
com.squareup.okhttp.Response response
public void onFailure (com.squareup.okhttp.Request, java.io.IOException)
com.squareup.okhttp.Request request
java.io.IOException e
}
com/squareup/okhttp/ws/WebSocketCall$StreamWebSocket.class
WebSocketCall.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketCall$StreamWebSocket extends com.squareup.okhttp.internal.ws.RealWebSocket {
private final com.squareup.okhttp.internal.http.StreamAllocation streamAllocation
private final java.util.concurrent.ExecutorService replyExecutor
static com.squareup.okhttp.internal.ws.RealWebSocket create (com.squareup.okhttp.internal.http.StreamAllocation, com.squareup.okhttp.Response, java.util.Random, com.squareup.okhttp.ws.WebSocketListener)
com.squareup.okhttp.internal.http.StreamAllocation streamAllocation
com.squareup.okhttp.Response response
java.util.Random random
com.squareup.okhttp.ws.WebSocketListener listener
String url
java.util.concurrent.ThreadPoolExecutor replyExecutor
private void <init> (com.squareup.okhttp.internal.http.StreamAllocation, java.util.Random, java.util.concurrent.ExecutorService, com.squareup.okhttp.ws.WebSocketListener, java.lang.String)
com.squareup.okhttp.internal.http.StreamAllocation streamAllocation
java.util.Random random
java.util.concurrent.ExecutorService replyExecutor
com.squareup.okhttp.ws.WebSocketListener listener
String url
protected void close () throws java.io.IOException
}
com/squareup/okhttp/ws/WebSocketCall.class
WebSocketCall.java
package com.squareup.okhttp.ws
public final com.squareup.okhttp.ws.WebSocketCall extends java.lang.Object {
private final com.squareup.okhttp.Call call
private final java.util.Random random
private final String key
public static com.squareup.okhttp.ws.WebSocketCall create (com.squareup.okhttp.OkHttpClient, com.squareup.okhttp.Request)
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.Request request
void <init> (com.squareup.okhttp.OkHttpClient, com.squareup.okhttp.Request)
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.Request request
void <init> (com.squareup.okhttp.OkHttpClient, com.squareup.okhttp.Request, java.util.Random)
com.squareup.okhttp.OkHttpClient client
com.squareup.okhttp.Request request
java.util.Random random
byte[] nonce
public void enqueue (com.squareup.okhttp.ws.WebSocketListener)
com.squareup.okhttp.ws.WebSocketListener listener
com.squareup.okhttp.Callback responseCallback
public void cancel ()
private void createWebSocket (com.squareup.okhttp.Response, com.squareup.okhttp.ws.WebSocketListener) throws java.io.IOException
com.squareup.okhttp.Response response
com.squareup.okhttp.ws.WebSocketListener listener
String headerConnection
String headerUpgrade
String headerAccept
String acceptExpected
com.squareup.okhttp.internal.http.StreamAllocation streamAllocation
com.squareup.okhttp.internal.ws.RealWebSocket webSocket
static synthetic void access$000 (com.squareup.okhttp.ws.WebSocketCall, com.squareup.okhttp.Response, com.squareup.okhttp.ws.WebSocketListener) throws java.io.IOException
com.squareup.okhttp.ws.WebSocketCall x0
com.squareup.okhttp.Response x1
com.squareup.okhttp.ws.WebSocketListener x2
}
com/squareup/okhttp/ws/WebSocketCallTest$1$1.class
WebSocketCallTest.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketCallTest$1$1 extends java.lang.Thread {
final synthetic com.squareup.okhttp.ws.WebSocket val$webSocket
final synthetic com.squareup.okhttp.ws.WebSocketCallTest$1 this$1
void <init> (com.squareup.okhttp.ws.WebSocketCallTest$1, com.squareup.okhttp.ws.WebSocket)
com.squareup.okhttp.ws.WebSocketCallTest$1 this$1
public void run ()
java.io.IOException e
}
com/squareup/okhttp/ws/WebSocketCallTest$1.class
WebSocketCallTest.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketCallTest$1 extends com.squareup.okhttp.ws.WebSocketCallTest$EmptyWebSocketListener {
final synthetic com.squareup.okhttp.ws.WebSocketCallTest this$0
void <init> (com.squareup.okhttp.ws.WebSocketCallTest)
com.squareup.okhttp.ws.WebSocketCallTest this$0
public void onOpen (com.squareup.okhttp.ws.WebSocket, com.squareup.okhttp.Response)
com.squareup.okhttp.ws.WebSocket webSocket
com.squareup.okhttp.Response response
}
com/squareup/okhttp/ws/WebSocketCallTest$2.class
WebSocketCallTest.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketCallTest$2 extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketListener {
final synthetic java.util.concurrent.atomic.AtomicReference val$webSocketRef
final synthetic java.util.concurrent.atomic.AtomicReference val$responseRef
final synthetic java.util.concurrent.CountDownLatch val$latch
final synthetic java.util.concurrent.atomic.AtomicReference val$failureRef
final synthetic com.squareup.okhttp.ws.WebSocketCallTest this$0
void <init> (com.squareup.okhttp.ws.WebSocketCallTest, java.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReference, java.util.concurrent.CountDownLatch, java.util.concurrent.atomic.AtomicReference)
com.squareup.okhttp.ws.WebSocketCallTest this$0
public void onOpen (com.squareup.okhttp.ws.WebSocket, com.squareup.okhttp.Response)
com.squareup.okhttp.ws.WebSocket webSocket
com.squareup.okhttp.Response response
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody message
public void onPong (okio.Buffer)
okio.Buffer payload
public void onClose (int, java.lang.String)
int code
String reason
public void onFailure (java.io.IOException, com.squareup.okhttp.Response)
java.io.IOException e
com.squareup.okhttp.Response response
}
com/squareup/okhttp/ws/WebSocketCallTest$EmptyWebSocketListener.class
WebSocketCallTest.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketCallTest$EmptyWebSocketListener extends java.lang.Object implements com.squareup.okhttp.ws.WebSocketListener {
private void <init> ()
public void onOpen (com.squareup.okhttp.ws.WebSocket, com.squareup.okhttp.Response)
com.squareup.okhttp.ws.WebSocket webSocket
com.squareup.okhttp.Response response
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ResponseBody message
public void onPong (okio.Buffer)
okio.Buffer payload
public void onClose (int, java.lang.String)
int code
String reason
public void onFailure (java.io.IOException, com.squareup.okhttp.Response)
java.io.IOException e
com.squareup.okhttp.Response response
synthetic void <init> (com.squareup.okhttp.ws.WebSocketCallTest$1)
com.squareup.okhttp.ws.WebSocketCallTest$1 x0
}
com/squareup/okhttp/ws/WebSocketCallTest.class
WebSocketCallTest.java
package com.squareup.okhttp.ws
public final com.squareup.okhttp.ws.WebSocketCallTest extends java.lang.Object {
public final com.squareup.okhttp.mockwebserver.MockWebServer server
private final javax.net.ssl.SSLContext sslContext
private final com.squareup.okhttp.ws.WebSocketRecorder listener
private final com.squareup.okhttp.OkHttpClient client
private final java.util.Random random
public void <init> ()
public void tearDown ()
public void clientPingPong () throws java.io.IOException
com.squareup.okhttp.ws.WebSocketListener serverListener
com.squareup.okhttp.ws.WebSocket webSocket
public void clientMessage () throws java.io.IOException
com.squareup.okhttp.ws.WebSocketRecorder serverListener
com.squareup.okhttp.ws.WebSocket webSocket
public void serverMessage () throws java.io.IOException
com.squareup.okhttp.ws.WebSocketListener serverListener
public void okButNotOk ()
public void notFound ()
public void missingConnectionHeader ()
public void wrongConnectionHeader ()
public void missingUpgradeHeader ()
public void wrongUpgradeHeader ()
public void missingMagicHeader ()
public void wrongMagicHeader ()
public void wsScheme () throws java.io.IOException
public void wsUppercaseScheme () throws java.io.IOException
public void wssScheme () throws java.io.IOException
public void httpsScheme () throws java.io.IOException
private void websocketScheme (java.lang.String) throws java.io.IOException
String scheme
com.squareup.okhttp.ws.WebSocketRecorder serverListener
com.squareup.okhttp.Request request1
com.squareup.okhttp.ws.WebSocket webSocket
private com.squareup.okhttp.ws.WebSocket awaitWebSocket ()
private com.squareup.okhttp.ws.WebSocket awaitWebSocket (com.squareup.okhttp.Request)
InterruptedException e
com.squareup.okhttp.Request request
com.squareup.okhttp.ws.WebSocketCall call
java.util.concurrent.atomic.AtomicReference responseRef
java.util.concurrent.atomic.AtomicReference webSocketRef
java.util.concurrent.atomic.AtomicReference failureRef
java.util.concurrent.CountDownLatch latch
static synthetic com.squareup.okhttp.ws.WebSocketRecorder access$100 (com.squareup.okhttp.ws.WebSocketCallTest)
com.squareup.okhttp.ws.WebSocketCallTest x0
}
com/squareup/okhttp/ws/WebSocketListener.class
WebSocketListener.java
package com.squareup.okhttp.ws
public abstract com.squareup.okhttp.ws.WebSocketListener extends java.lang.Object {
public abstract void onOpen (com.squareup.okhttp.ws.WebSocket, com.squareup.okhttp.Response)
public abstract void onFailure (java.io.IOException, com.squareup.okhttp.Response)
public abstract void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
public abstract void onPong (okio.Buffer)
public abstract void onClose (int, java.lang.String)
}
com/squareup/okhttp/ws/WebSocketRecorder$1.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
synthetic com.squareup.okhttp.ws.WebSocketRecorder$1 extends java.lang.Object {
}
com/squareup/okhttp/ws/WebSocketRecorder$Close.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketRecorder$Close extends java.lang.Object {
public final int code
public final String reason
private void <init> (int, java.lang.String)
int code
String reason
public java.lang.String toString ()
public int hashCode ()
public boolean equals (java.lang.Object)
com.squareup.okhttp.ws.WebSocketRecorder$Close other
Object obj
synthetic void <init> (int, java.lang.String, com.squareup.okhttp.ws.WebSocketRecorder$1)
int x0
String x1
com.squareup.okhttp.ws.WebSocketRecorder$1 x2
}
com/squareup/okhttp/ws/WebSocketRecorder$Message.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketRecorder$Message extends java.lang.Object {
public final com.squareup.okhttp.MediaType mediaType
public final okio.Buffer buffer
private void <init> (com.squareup.okhttp.MediaType)
com.squareup.okhttp.MediaType mediaType
public java.lang.String toString ()
public int hashCode ()
public boolean equals (java.lang.Object)
com.squareup.okhttp.ws.WebSocketRecorder$Message other
Object obj
synthetic void <init> (com.squareup.okhttp.MediaType, com.squareup.okhttp.ws.WebSocketRecorder$1)
com.squareup.okhttp.MediaType x0
com.squareup.okhttp.ws.WebSocketRecorder$1 x1
}
com/squareup/okhttp/ws/WebSocketRecorder$MessageDelegate.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
public abstract com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate extends java.lang.Object {
public abstract void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
}
com/squareup/okhttp/ws/WebSocketRecorder$Ping.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketRecorder$Ping extends java.lang.Object {
public final okio.Buffer buffer
private void <init> (okio.Buffer)
okio.Buffer buffer
public java.lang.String toString ()
public int hashCode ()
public boolean equals (java.lang.Object)
com.squareup.okhttp.ws.WebSocketRecorder$Ping other
Object obj
synthetic void <init> (okio.Buffer, com.squareup.okhttp.ws.WebSocketRecorder$1)
okio.Buffer x0
com.squareup.okhttp.ws.WebSocketRecorder$1 x1
}
com/squareup/okhttp/ws/WebSocketRecorder$Pong.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
com.squareup.okhttp.ws.WebSocketRecorder$Pong extends java.lang.Object {
public final okio.Buffer buffer
private void <init> (okio.Buffer)
okio.Buffer buffer
public java.lang.String toString ()
public int hashCode ()
public boolean equals (java.lang.Object)
com.squareup.okhttp.ws.WebSocketRecorder$Pong other
Object obj
synthetic void <init> (okio.Buffer, com.squareup.okhttp.ws.WebSocketRecorder$1)
okio.Buffer x0
com.squareup.okhttp.ws.WebSocketRecorder$1 x1
}
com/squareup/okhttp/ws/WebSocketRecorder.class
WebSocketRecorder.java
package com.squareup.okhttp.ws
public final com.squareup.okhttp.ws.WebSocketRecorder extends java.lang.Object implements com.squareup.okhttp.internal.ws.WebSocketReader$FrameCallback com.squareup.okhttp.ws.WebSocketListener {
private final java.util.concurrent.BlockingQueue events
private com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate delegate
public void <init> ()
public void setNextMessageDelegate (com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate)
com.squareup.okhttp.ws.WebSocketRecorder$MessageDelegate delegate
public void onOpen (com.squareup.okhttp.ws.WebSocket, com.squareup.okhttp.Response)
com.squareup.okhttp.ws.WebSocket webSocket
com.squareup.okhttp.Response response
public void onMessage (com.squareup.okhttp.ResponseBody) throws java.io.IOException
com.squareup.okhttp.ws.WebSocketRecorder$Message event
com.squareup.okhttp.ResponseBody message
public void onPing (okio.Buffer)
okio.Buffer buffer
public void onPong (okio.Buffer)
okio.Buffer buffer
public void onClose (int, java.lang.String)
int code
String reason
public void onFailure (java.io.IOException, com.squareup.okhttp.Response)
java.io.IOException e
com.squareup.okhttp.Response response
private java.lang.Object nextEvent ()
Object event
InterruptedException e
public void assertTextMessage (java.lang.String) throws java.io.IOException
String payload
com.squareup.okhttp.ws.WebSocketRecorder$Message message
Object actual
public void assertBinaryMessage (byte[]) throws java.io.IOException
byte[] payload
com.squareup.okhttp.ws.WebSocketRecorder$Message message
Object actual
public void assertPing (okio.Buffer) throws java.io.IOException
okio.Buffer payload
Object actual
public void assertPong (okio.Buffer) throws java.io.IOException
okio.Buffer payload
Object actual
public void assertClose (int, java.lang.String) throws java.io.IOException
int code
String reason
Object actual
public void assertFailure (java.lang.Class, java.lang.String)
Class cls
String message
Object event
String errorMessage
public void assertExhausted ()
}
okio/
okio/AsyncTimeoutTest$1.class
AsyncTimeoutTest.java
package okio
okio.AsyncTimeoutTest$1 extends okio.ForwardingSink {
final synthetic okio.AsyncTimeoutTest this$0
void <init> (okio.AsyncTimeoutTest, okio.Sink)
okio.AsyncTimeoutTest this$0
okio.Sink arg0
public void write (okio.Buffer, long) throws java.io.IOException
InterruptedException e
okio.Buffer source
long byteCount
}
okio/AsyncTimeoutTest$2.class
AsyncTimeoutTest.java
package okio
okio.AsyncTimeoutTest$2 extends okio.ForwardingSource {
final synthetic okio.AsyncTimeoutTest this$0
void <init> (okio.AsyncTimeoutTest, okio.Source)
okio.AsyncTimeoutTest this$0
okio.Source arg0
public long read (okio.Buffer, long) throws java.io.IOException
InterruptedException e
okio.Buffer sink
long byteCount
}
okio/AsyncTimeoutTest$3.class
AsyncTimeoutTest.java
package okio
okio.AsyncTimeoutTest$3 extends okio.ForwardingSink {
final synthetic okio.AsyncTimeoutTest this$0
void <init> (okio.AsyncTimeoutTest, okio.Sink)
okio.AsyncTimeoutTest this$0
okio.Sink arg0
public void write (okio.Buffer, long) throws java.io.IOException
InterruptedException e
okio.Buffer source
long byteCount
}
okio/AsyncTimeoutTest$4.class
AsyncTimeoutTest.java
package okio
okio.AsyncTimeoutTest$4 extends okio.ForwardingSink {
final synthetic okio.AsyncTimeoutTest this$0
void <init> (okio.AsyncTimeoutTest, okio.Sink)
okio.AsyncTimeoutTest this$0
okio.Sink arg0
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
}
okio/AsyncTimeoutTest$RecordingAsyncTimeout.class
AsyncTimeoutTest.java
package okio
okio.AsyncTimeoutTest$RecordingAsyncTimeout extends okio.AsyncTimeout {
final synthetic okio.AsyncTimeoutTest this$0
void <init> (okio.AsyncTimeoutTest)
okio.AsyncTimeoutTest this$0
protected void timedOut ()
}
okio/AsyncTimeoutTest.class
AsyncTimeoutTest.java
package okio
public okio.AsyncTimeoutTest extends java.lang.Object {
private final java.util.List timedOut
private final okio.AsyncTimeout a
private final okio.AsyncTimeout b
private final okio.AsyncTimeout c
private final okio.AsyncTimeout d
public void <init> ()
public void setUp () throws java.lang.Exception
public void zeroTimeoutIsNoTimeout () throws java.lang.Exception
okio.AsyncTimeout timeout
public void singleInstanceTimedOut () throws java.lang.Exception
public void singleInstanceNotTimedOut () throws java.lang.Exception
public void instancesAddedAtEnd () throws java.lang.Exception
public void instancesAddedAtFront () throws java.lang.Exception
public void instancesRemovedAtFront () throws java.lang.Exception
public void instancesRemovedAtEnd () throws java.lang.Exception
public void doubleEnter () throws java.lang.Exception
public void deadlineOnly () throws java.lang.Exception
okio.AsyncTimeoutTest$RecordingAsyncTimeout timeout
public void deadlineBeforeTimeout () throws java.lang.Exception
okio.AsyncTimeoutTest$RecordingAsyncTimeout timeout
public void deadlineAfterTimeout () throws java.lang.Exception
okio.AsyncTimeoutTest$RecordingAsyncTimeout timeout
public void deadlineStartsBeforeEnter () throws java.lang.Exception
okio.AsyncTimeoutTest$RecordingAsyncTimeout timeout
public void deadlineInThePast () throws java.lang.Exception
okio.AsyncTimeoutTest$RecordingAsyncTimeout timeout
public void wrappedSinkTimesOut () throws java.lang.Exception
okio.Sink sink
okio.AsyncTimeout timeout
okio.Sink timeoutSink
public void wrappedSourceTimesOut () throws java.lang.Exception
okio.Source source
okio.AsyncTimeout timeout
okio.Source timeoutSource
public void wrappedThrowsWithTimeout () throws java.lang.Exception
java.io.InterruptedIOException expected
okio.Sink sink
okio.AsyncTimeout timeout
okio.Sink timeoutSink
public void wrappedThrowsWithoutTimeout () throws java.lang.Exception
java.io.IOException expected
okio.Sink sink
okio.AsyncTimeout timeout
okio.Sink timeoutSink
private transient void assertTimedOut (okio.Timeout[])
okio.Timeout[] expected
static synthetic java.util.List access$000 (okio.AsyncTimeoutTest)
okio.AsyncTimeoutTest x0
}
okio/BufferTest.class
BufferTest.java
package okio
public final okio.BufferTest extends java.lang.Object {
public void <init> ()
public void readAndWriteUtf8 () throws java.lang.Exception
okio.Buffer buffer
public void completeSegmentByteCountOnEmptyBuffer () throws java.lang.Exception
okio.Buffer buffer
public void completeSegmentByteCountOnBufferWithFullSegments () throws java.lang.Exception
okio.Buffer buffer
public void completeSegmentByteCountOnBufferWithIncompleteTailSegment () throws java.lang.Exception
okio.Buffer buffer
public void toStringOnEmptyBuffer () throws java.lang.Exception
okio.Buffer buffer
public void toStringOnSmallBufferIncludesContents () throws java.lang.Exception
okio.Buffer buffer
public void toStringOnLargeBufferIncludesMd5 () throws java.lang.Exception
okio.Buffer buffer
public void toStringOnMultipleSegmentBuffer () throws java.lang.Exception
okio.Buffer buffer
public void multipleSegmentBuffers () throws java.lang.Exception
okio.Buffer buffer
public void fillAndDrainPool () throws java.lang.Exception
okio.Buffer buffer
public void moveBytesBetweenBuffersShareSegment () throws java.lang.Exception
int size
java.util.List segmentSizes
public void moveBytesBetweenBuffersReassignSegment () throws java.lang.Exception
int size
java.util.List segmentSizes
public void moveBytesBetweenBuffersMultipleSegments () throws java.lang.Exception
int size
java.util.List segmentSizes
private transient java.util.List moveBytesBetweenBuffers (java.lang.String[]) throws java.io.IOException
okio.Buffer source
String s
String[] contents
StringBuilder expected
okio.Buffer buffer
java.util.List segmentSizes
public void writeSplitSourceBufferLeft () throws java.lang.Exception
int writeSize
okio.Buffer sink
okio.Buffer source
public void writeSplitSourceBufferRight () throws java.lang.Exception
int writeSize
okio.Buffer sink
okio.Buffer source
public void writePrefixDoesntSplit () throws java.lang.Exception
okio.Buffer sink
okio.Buffer source
public void writePrefixDoesntSplitButRequiresCompact () throws java.lang.Exception
okio.Buffer sink
okio.Buffer source
public void copyToSpanningSegments () throws java.lang.Exception
okio.Buffer source
java.io.ByteArrayOutputStream out
public void copyToStream () throws java.lang.Exception
okio.Buffer buffer
java.io.ByteArrayOutputStream out
String outString
public void writeToSpanningSegments () throws java.lang.Exception
okio.Buffer buffer
java.io.ByteArrayOutputStream out
public void writeToStream () throws java.lang.Exception
okio.Buffer buffer
java.io.ByteArrayOutputStream out
String outString
public void readFromStream () throws java.lang.Exception
java.io.InputStream in
okio.Buffer buffer
String out
public void readFromSpanningSegments () throws java.lang.Exception
java.io.InputStream in
okio.Buffer buffer
String out
public void readFromStreamWithCount () throws java.lang.Exception
java.io.InputStream in
okio.Buffer buffer
String out
public void moveAllRequestedBytesWithRead () throws java.lang.Exception
okio.Buffer sink
okio.Buffer source
public void moveFewerThanRequestedBytesWithRead () throws java.lang.Exception
okio.Buffer sink
okio.Buffer source
public void indexOfWithOffset () throws java.lang.Exception
okio.Buffer buffer
int halfSegment
public void byteAt () throws java.lang.Exception
okio.Buffer buffer
public void getByteOfEmptyBuffer () throws java.lang.Exception
okio.Buffer buffer
public void writePrefixToEmptyBuffer () throws java.io.IOException
okio.Buffer sink
okio.Buffer source
public void cloneDoesNotObserveWritesToOriginal () throws java.lang.Exception
okio.Buffer original
okio.Buffer clone
public void cloneDoesNotObserveReadsFromOriginal () throws java.lang.Exception
okio.Buffer original
okio.Buffer clone
public void originalDoesNotObserveWritesToClone () throws java.lang.Exception
okio.Buffer original
okio.Buffer clone
public void originalDoesNotObserveReadsFromClone () throws java.lang.Exception
okio.Buffer original
okio.Buffer clone
public void cloneMultipleSegments () throws java.lang.Exception
okio.Buffer original
okio.Buffer clone
public void equalsAndHashCodeEmpty () throws java.lang.Exception
okio.Buffer a
okio.Buffer b
public void equalsAndHashCode () throws java.lang.Exception
okio.Buffer a
okio.Buffer b
public void equalsAndHashCodeSpanningSegments () throws java.lang.Exception
byte[] data
java.util.Random dice
okio.Buffer a
okio.Buffer b
okio.Buffer c
public void bufferInputStreamByteByByte () throws java.lang.Exception
okio.Buffer source
java.io.InputStream in
public void bufferInputStreamBulkReads () throws java.lang.Exception
okio.Buffer source
byte[] byteArray
java.io.InputStream in
public void readAllWritesAllSegmentsAtOnce () throws java.lang.Exception
okio.Buffer write1
okio.Buffer source
okio.MockSink mockSink
public void writeAllMultipleSegments () throws java.lang.Exception
okio.Buffer source
okio.Buffer sink
public void copyTo () throws java.lang.Exception
okio.Buffer source
okio.Buffer target
public void copyToOnSegmentBoundary () throws java.lang.Exception
String as
String bs
String cs
String ds
okio.Buffer source
okio.Buffer target
public void copyToOffSegmentBoundary () throws java.lang.Exception
String as
String bs
String cs
String ds
okio.Buffer source
okio.Buffer target
public void copyToSourceAndTargetCanBeTheSame () throws java.lang.Exception
String as
String bs
okio.Buffer source
public void copyToEmptySource () throws java.lang.Exception
okio.Buffer source
okio.Buffer target
public void copyToEmptyTarget () throws java.lang.Exception
okio.Buffer source
okio.Buffer target
private okio.Buffer bufferWithRandomSegmentLayout (java.util.Random, byte[]) throws java.io.IOException
int offset
okio.Buffer segment
int pos
int byteCount
java.util.Random dice
byte[] data
okio.Buffer result
}
okio/BufferedSinkTest$1.class
BufferedSinkTest.java
package okio
okio.BufferedSinkTest$1 extends java.lang.Object implements okio.BufferedSinkTest$Factory {
void <init> ()
public okio.BufferedSink create (okio.Buffer)
okio.Buffer data
public java.lang.String toString ()
}
okio/BufferedSinkTest$2.class
BufferedSinkTest.java
package okio
okio.BufferedSinkTest$2 extends java.lang.Object implements okio.BufferedSinkTest$Factory {
void <init> ()
public okio.BufferedSink create (okio.Buffer)
okio.Buffer data
public java.lang.String toString ()
}
okio/BufferedSinkTest$3.class
BufferedSinkTest.java
package okio
okio.BufferedSinkTest$3 extends okio.ForwardingSource {
final synthetic okio.BufferedSinkTest this$0
void <init> (okio.BufferedSinkTest, okio.Source)
okio.BufferedSinkTest this$0
okio.Source arg0
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
}
okio/BufferedSinkTest$4.class
BufferedSinkTest.java
package okio
okio.BufferedSinkTest$4 extends okio.ForwardingSource {
final synthetic okio.BufferedSinkTest this$0
void <init> (okio.BufferedSinkTest, okio.Source)
okio.BufferedSinkTest this$0
okio.Source arg0
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
}
okio/BufferedSinkTest$Factory.class
BufferedSinkTest.java
package okio
abstract okio.BufferedSinkTest$Factory extends java.lang.Object {
public abstract okio.BufferedSink create (okio.Buffer)
}
okio/BufferedSinkTest.class
BufferedSinkTest.java
package okio
public okio.BufferedSinkTest extends java.lang.Object {
private final okio.BufferedSinkTest$Factory factory
private okio.Buffer data
private okio.BufferedSink sink
public static java.util.List parameters ()
public void <init> (okio.BufferedSinkTest$Factory)
okio.BufferedSinkTest$Factory factory
public void setUp ()
public void writeNothing () throws java.io.IOException
public void writeBytes () throws java.lang.Exception
public void writeLastByteInSegment () throws java.lang.Exception
public void writeShort () throws java.lang.Exception
public void writeShortLe () throws java.lang.Exception
public void writeInt () throws java.lang.Exception
public void writeLastIntegerInSegment () throws java.lang.Exception
public void writeIntegerDoesNotQuiteFitInSegment () throws java.lang.Exception
public void writeIntLe () throws java.lang.Exception
public void writeLong () throws java.lang.Exception
public void writeLongLe () throws java.lang.Exception
public void writeStringUtf8 () throws java.io.IOException
public void writeSubstringUtf8 () throws java.io.IOException
public void writeStringWithCharset () throws java.io.IOException
public void writeSubstringWithCharset () throws java.io.IOException
public void writeAll () throws java.lang.Exception
okio.Buffer source
public void writeSource () throws java.lang.Exception
okio.Buffer source
public void writeSourceReadsFully () throws java.lang.Exception
okio.Source source
public void writeSourcePropagatesEof () throws java.io.IOException
okio.Source source
public void writeSourceWithZeroIsNoOp () throws java.io.IOException
okio.Source source
public void writeAllExhausted () throws java.lang.Exception
okio.Buffer source
public void closeEmitsBufferedBytes () throws java.io.IOException
public void outputStream () throws java.lang.Exception
java.io.OutputStream out
public void outputStreamBounds () throws java.lang.Exception
java.io.OutputStream out
public void longDecimalString () throws java.io.IOException
long value
int i
private void assertLongDecimalString (long) throws java.io.IOException
long value
String expected
String actual
public void longHexString () throws java.io.IOException
int i
private void assertLongHexString (long) throws java.io.IOException
long value
String expected
String actual
}
okio/BufferedSourceTest$1.class
BufferedSourceTest.java
package okio
okio.BufferedSourceTest$1 extends java.lang.Object implements okio.BufferedSourceTest$Factory {
void <init> ()
public okio.BufferedSourceTest$Pipe pipe ()
okio.Buffer buffer
okio.BufferedSourceTest$Pipe result
public java.lang.String toString ()
}
okio/BufferedSourceTest$2.class
BufferedSourceTest.java
package okio
okio.BufferedSourceTest$2 extends java.lang.Object implements okio.BufferedSourceTest$Factory {
void <init> ()
public okio.BufferedSourceTest$Pipe pipe ()
okio.Buffer buffer
okio.BufferedSourceTest$Pipe result
public java.lang.String toString ()
}
okio/BufferedSourceTest$3$1.class
BufferedSourceTest.java
package okio
okio.BufferedSourceTest$3$1 extends okio.ForwardingSource {
final synthetic okio.BufferedSourceTest$3 this$0
void <init> (okio.BufferedSourceTest$3, okio.Source)
okio.BufferedSourceTest$3 this$0
okio.Source arg0
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
}
okio/BufferedSourceTest$3.class
BufferedSourceTest.java
package okio
okio.BufferedSourceTest$3 extends java.lang.Object implements okio.BufferedSourceTest$Factory {
void <init> ()
public okio.BufferedSourceTest$Pipe pipe ()
okio.Buffer buffer
okio.BufferedSourceTest$Pipe result
public java.lang.String toString ()
}
okio/BufferedSourceTest$Factory.class
BufferedSourceTest.java
package okio
abstract okio.BufferedSourceTest$Factory extends java.lang.Object {
public abstract okio.BufferedSourceTest$Pipe pipe ()
}
okio/BufferedSourceTest$Pipe.class
BufferedSourceTest.java
package okio
okio.BufferedSourceTest$Pipe extends java.lang.Object {
okio.BufferedSink sink
okio.BufferedSource source
private void <init> ()
synthetic void <init> (okio.BufferedSourceTest$1)
okio.BufferedSourceTest$1 x0
}
okio/BufferedSourceTest.class
BufferedSourceTest.java
package okio
public okio.BufferedSourceTest extends java.lang.Object {
private static final okio.BufferedSourceTest$Factory BUFFER_FACTORY
private static final okio.BufferedSourceTest$Factory REAL_BUFFERED_SOURCE_FACTORY
private static final okio.BufferedSourceTest$Factory ONE_BYTE_AT_A_TIME_FACTORY
private final okio.BufferedSourceTest$Factory factory
private okio.BufferedSink sink
private okio.BufferedSource source
public static java.util.List parameters ()
public void <init> (okio.BufferedSourceTest$Factory)
okio.BufferedSourceTest$Factory factory
public void setUp ()
okio.BufferedSourceTest$Pipe pipe
public void readBytes () throws java.lang.Exception
public void readShort () throws java.lang.Exception
public void readShortLe () throws java.lang.Exception
public void readShortSplitAcrossMultipleSegments () throws java.lang.Exception
public void readInt () throws java.lang.Exception
public void readIntLe () throws java.lang.Exception
public void readIntSplitAcrossMultipleSegments () throws java.lang.Exception
public void readLong () throws java.lang.Exception
public void readLongLe () throws java.lang.Exception
public void readLongSplitAcrossMultipleSegments () throws java.lang.Exception
public void readAll () throws java.io.IOException
okio.Buffer sink
public void readAllExhausted () throws java.io.IOException
okio.MockSink mockSink
public void readExhaustedSource () throws java.lang.Exception
okio.Buffer sink
public void readZeroBytesFromSource () throws java.lang.Exception
okio.Buffer sink
public void readFully () throws java.lang.Exception
okio.Buffer sink
public void readFullyTooShortThrows () throws java.io.IOException
okio.Buffer sink
public void readFullyByteArray () throws java.io.IOException
okio.Buffer data
byte[] expected
byte[] sink
public void readFullyByteArrayTooShortThrows () throws java.io.IOException
byte[] sink
public void readIntoByteArray () throws java.io.IOException
byte[] expected
byte[] expected
byte[] sink
int read
public void readIntoByteArrayNotEnough () throws java.io.IOException
byte[] expected
byte[] expected
byte[] sink
int read
public void readIntoByteArrayOffsetAndCount () throws java.io.IOException
byte[] expected
byte[] expected
byte[] sink
int read
public void readByteArray () throws java.io.IOException
String string
public void readByteArrayPartial () throws java.io.IOException
public void readByteString () throws java.io.IOException
public void readByteStringPartial () throws java.io.IOException
public void readSpecificCharsetPartial () throws java.lang.Exception
public void readSpecificCharset () throws java.lang.Exception
public void readUtf8SpansSegments () throws java.lang.Exception
public void readUtf8Segment () throws java.lang.Exception
public void readUtf8PartialBuffer () throws java.lang.Exception
public void readUtf8EntireBuffer () throws java.lang.Exception
public void skip () throws java.lang.Exception
public void skipInsufficientData () throws java.lang.Exception
public void indexOf () throws java.lang.Exception
public void indexOfWithOffset () throws java.io.IOException
public void indexOfByteString () throws java.io.IOException
public void indexOfByteStringWithOffset () throws java.io.IOException
public void indexOfByteStringInvalidArgumentsThrows () throws java.io.IOException
IllegalArgumentException e
IllegalArgumentException e
public void indexOfElement () throws java.io.IOException
public void indexOfElementWithOffset () throws java.io.IOException
public void request () throws java.io.IOException
public void require () throws java.io.IOException
public void inputStream () throws java.lang.Exception
java.io.InputStream in
byte[] bytes
int read
public void inputStreamOffsetCount () throws java.lang.Exception
java.io.InputStream in
byte[] bytes
int read
public void inputStreamSkip () throws java.lang.Exception
java.io.InputStream in
public void inputStreamCharByChar () throws java.lang.Exception
java.io.InputStream in
public void inputStreamBounds () throws java.io.IOException
java.io.InputStream in
public void longHexString () throws java.io.IOException
public void hexStringWithManyLeadingZeros () throws java.io.IOException
private void assertLongHexString (java.lang.String, long) throws java.io.IOException
String s
long expected
long actual
public void longHexStringAcrossSegment () throws java.io.IOException
public void longHexStringTooLongThrows () throws java.io.IOException
NumberFormatException e
public void longHexStringTooShortThrows () throws java.io.IOException
NumberFormatException e
public void longHexEmptySourceThrows () throws java.io.IOException
public void longDecimalString () throws java.io.IOException
private void assertLongDecimalString (java.lang.String, long) throws java.io.IOException
String s
long expected
long actual
public void longDecimalStringAcrossSegment () throws java.io.IOException
public void longDecimalStringTooLongThrows () throws java.io.IOException
NumberFormatException e
public void longDecimalStringTooHighThrows () throws java.io.IOException
NumberFormatException e
public void longDecimalStringTooLowThrows () throws java.io.IOException
NumberFormatException e
public void longDecimalStringTooShortThrows () throws java.io.IOException
NumberFormatException e
public void longDecimalEmptyThrows () throws java.io.IOException
public void codePoints () throws java.io.IOException
public void decimalStringWithManyLeadingZeros () throws java.io.IOException
static void <clinit> ()
}
okio/ByteStringTest.class
ByteStringTest.java
package okio
public okio.ByteStringTest extends java.lang.Object {
private final String bronzeHorseman
public void <init> ()
public void ofCopyRange ()
byte[] bytes
okio.ByteString byteString
public void getByte () throws java.lang.Exception
okio.ByteString byteString
public void getByteOutOfBounds () throws java.lang.Exception
okio.ByteString byteString
public void equals () throws java.lang.Exception
okio.ByteString byteString
public void utf8 () throws java.lang.Exception
okio.ByteString byteString
public void md5 ()
public void sha256 ()
public void testHashCode () throws java.lang.Exception
okio.ByteString byteString
public void read () throws java.lang.Exception
java.io.InputStream in
public void readAndToLowercase () throws java.lang.Exception
java.io.InputStream in
public void toAsciiLowerCaseNoUppercase () throws java.lang.Exception
okio.ByteString s
public void toAsciiAllUppercase () throws java.lang.Exception
public void toAsciiStartsLowercaseEndsUppercase () throws java.lang.Exception
public void readAndToUppercase () throws java.lang.Exception
java.io.InputStream in
public void toAsciiStartsUppercaseEndsLowercase () throws java.lang.Exception
public void substring () throws java.lang.Exception
okio.ByteString byteString
public void substringWithInvalidBounds () throws java.lang.Exception
okio.ByteString byteString
public void write () throws java.lang.Exception
java.io.ByteArrayOutputStream out
public void encodeBase64 ()
public void encodeBase64Url ()
public void ignoreUnnecessaryPadding ()
public void decodeBase64 ()
public void decodeBase64WithWhitespace ()
public void encodeHex () throws java.lang.Exception
public void decodeHex () throws java.lang.Exception
public void decodeHexOddNumberOfChars () throws java.lang.Exception
public void decodeHexInvalidChar () throws java.lang.Exception
public void toStringOnEmptyByteString ()
public void toStringOnSmallByteStringIncludesContents ()
public void toStringOnLargeByteStringIncludesMd5 ()
public void javaSerializationTestNonEmpty () throws java.lang.Exception
okio.ByteString byteString
public void javaSerializationTestEmpty () throws java.lang.Exception
okio.ByteString byteString
public void compareToSingleBytes () throws java.lang.Exception
java.util.List originalByteStrings
java.util.List sortedByteStrings
public void compareToMultipleBytes () throws java.lang.Exception
java.util.List originalByteStrings
java.util.List sortedByteStrings
}
okio/DeflaterSinkTest.class
DeflaterSinkTest.java
package okio
public final okio.DeflaterSinkTest extends java.lang.Object {
public void <init> ()
public void deflateWithClose () throws java.lang.Exception
okio.Buffer data
String original
okio.Buffer sink
okio.DeflaterSink deflaterSink
okio.Buffer inflated
public void deflateWithSyncFlush () throws java.lang.Exception
String original
okio.Buffer data
okio.Buffer sink
okio.DeflaterSink deflaterSink
okio.Buffer inflated
public void deflateWellCompressed () throws java.io.IOException
String original
okio.Buffer data
okio.Buffer sink
okio.DeflaterSink deflaterSink
okio.Buffer inflated
public void deflatePoorlyCompressed () throws java.io.IOException
okio.ByteString original
okio.Buffer data
okio.Buffer sink
okio.DeflaterSink deflaterSink
okio.Buffer inflated
public void multipleSegmentsWithoutCompression () throws java.io.IOException
okio.Buffer buffer
java.util.zip.Deflater deflater
okio.DeflaterSink deflaterSink
int byteCount
public void deflateIntoNonemptySink () throws java.lang.Exception
okio.Buffer data
okio.Buffer sink
okio.DeflaterSink deflaterSink
okio.Buffer inflated
int i
String original
public void closeWithExceptionWhenWritingAndClosing () throws java.io.IOException
java.io.IOException expected
okio.MockSink mockSink
java.util.zip.Deflater deflater
okio.DeflaterSink deflaterSink
private okio.Buffer inflate (okio.Buffer) throws java.io.IOException
int count
okio.Buffer deflated
java.io.InputStream deflatedIn
java.util.zip.Inflater inflater
java.io.InputStream inflatedIn
okio.Buffer result
byte[] buffer
}
okio/GzipSinkTest.class
GzipSinkTest.java
package okio
public okio.GzipSinkTest extends java.lang.Object {
public void <init> ()
public void gzipGunzip () throws java.lang.Exception
okio.Buffer data
String original
okio.Buffer sink
okio.GzipSink gzipSink
okio.Buffer inflated
public void closeWithExceptionWhenWritingAndClosing () throws java.io.IOException
java.io.IOException expected
okio.MockSink mockSink
okio.GzipSink gzipSink
private okio.Buffer gunzip (okio.Buffer) throws java.io.IOException
okio.Buffer gzipped
okio.Buffer result
okio.GzipSource source
}
okio/GzipSourceTest$ExhaustableSource.class
GzipSourceTest.java
package okio
okio.GzipSourceTest$ExhaustableSource extends java.lang.Object implements okio.Source {
private final okio.Source source
private boolean exhausted
void <init> (okio.Source)
okio.Source source
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
long result
public okio.Timeout timeout ()
public void close () throws java.io.IOException
static synthetic boolean access$000 (okio.GzipSourceTest$ExhaustableSource)
okio.GzipSourceTest$ExhaustableSource x0
}
okio/GzipSourceTest.class
GzipSourceTest.java
package okio
public okio.GzipSourceTest extends java.lang.Object {
private final okio.ByteString gzipHeader
private final okio.ByteString deflated
private final okio.ByteString gzipTrailer
public void <init> ()
public void gunzip () throws java.lang.Exception
okio.Buffer gzipped
public void gunzip_withHCRC () throws java.lang.Exception
java.util.zip.CRC32 hcrc
okio.ByteString gzipHeader
okio.Buffer gzipped
public void gunzip_withExtra () throws java.lang.Exception
okio.Buffer gzipped
public void gunzip_withName () throws java.lang.Exception
okio.Buffer gzipped
public void gunzip_withComment () throws java.lang.Exception
okio.Buffer gzipped
public void gunzip_withAll () throws java.lang.Exception
okio.Buffer gzipped
private void assertGzipped (okio.Buffer) throws java.io.IOException
okio.Buffer gzipped
okio.Buffer gunzipped
public void gunzipWhenHeaderCRCIncorrect () throws java.lang.Exception
java.io.IOException e
okio.Buffer gzipped
public void gunzipWhenCRCIncorrect () throws java.lang.Exception
java.io.IOException e
okio.Buffer gzipped
public void gunzipWhenLengthIncorrect () throws java.lang.Exception
java.io.IOException e
okio.Buffer gzipped
public void gunzipExhaustsSource () throws java.lang.Exception
okio.Buffer gzippedSource
okio.GzipSourceTest$ExhaustableSource exhaustableSource
okio.BufferedSource gunzippedSource
public void gunzipThrowsIfSourceIsNotExhausted () throws java.lang.Exception
okio.Buffer gzippedSource
okio.BufferedSource gunzippedSource
private okio.ByteString gzipHeaderWithFlags (byte)
byte flags
byte[] result
private okio.Buffer gunzip (okio.Buffer) throws java.io.IOException
okio.Buffer gzipped
okio.Buffer result
okio.GzipSource source
}
okio/InflaterSourceTest.class
InflaterSourceTest.java
package okio
public final okio.InflaterSourceTest extends java.lang.Object {
public void <init> ()
public void inflate () throws java.lang.Exception
okio.Buffer deflated
okio.Buffer inflated
public void inflateTruncated () throws java.lang.Exception
okio.Buffer deflated
public void inflateWellCompressed () throws java.lang.Exception
okio.Buffer deflated
String original
okio.Buffer inflated
public void inflatePoorlyCompressed () throws java.lang.Exception
okio.ByteString original
okio.Buffer deflated
okio.Buffer inflated
public void inflateIntoNonemptySink () throws java.lang.Exception
okio.Buffer inflated
okio.Buffer deflated
okio.InflaterSource source
int i
private okio.Buffer decodeBase64 (java.lang.String)
String s
private okio.Buffer deflate (okio.ByteString) throws java.io.IOException
okio.ByteString source
okio.Buffer result
okio.Sink sink
private okio.Buffer inflate (okio.Buffer) throws java.io.IOException
okio.Buffer deflated
okio.Buffer result
okio.InflaterSource source
}
okio/MockSink.class
MockSink.java
package okio
okio.MockSink extends java.lang.Object implements okio.Sink {
private final java.util.List log
private final java.util.Map callThrows
void <init> ()
public transient void assertLog (java.lang.String[])
String[] messages
public void assertLogContains (java.lang.String)
String message
public void scheduleThrow (int, java.io.IOException)
int call
java.io.IOException e
private void throwIfScheduled () throws java.io.IOException
java.io.IOException exception
public void write (okio.Buffer, long) throws java.io.IOException
okio.Buffer source
long byteCount
public void flush () throws java.io.IOException
public okio.Timeout timeout ()
public void close () throws java.io.IOException
}
okio/OkioTest.class
OkioTest.java
package okio
public final okio.OkioTest extends java.lang.Object {
public org.junit.rules.TemporaryFolder temporaryFolder
public void <init> ()
public void readWriteFile () throws java.lang.Exception
java.io.File file
okio.BufferedSink sink
okio.BufferedSource source
public void appendFile () throws java.lang.Exception
java.io.File file
okio.BufferedSink sink
okio.BufferedSource source
public void sinkFromOutputStream () throws java.lang.Exception
okio.Buffer data
java.io.ByteArrayOutputStream out
okio.Sink sink
public void sourceFromInputStream () throws java.lang.Exception
java.io.InputStream in
okio.Source source
okio.Buffer sink
public void sourceFromInputStreamBounds () throws java.lang.Exception
okio.Source source
}
okio/ReadUtf8LineTest$1.class
ReadUtf8LineTest.java
package okio
okio.ReadUtf8LineTest$1 extends java.lang.Object implements okio.ReadUtf8LineTest$Factory {
void <init> ()
public okio.BufferedSource create (okio.Buffer)
okio.Buffer data
public java.lang.String toString ()
}
okio/ReadUtf8LineTest$2.class
ReadUtf8LineTest.java
package okio
okio.ReadUtf8LineTest$2 extends java.lang.Object implements okio.ReadUtf8LineTest$Factory {
void <init> ()
public okio.BufferedSource create (okio.Buffer)
okio.Buffer data
public java.lang.String toString ()
}
okio/ReadUtf8LineTest$3$1.class
ReadUtf8LineTest.java
package okio
okio.ReadUtf8LineTest$3$1 extends okio.ForwardingSource {
final synthetic okio.ReadUtf8LineTest$3 this$0
void <init> (okio.ReadUtf8LineTest$3, okio.Source)
okio.ReadUtf8LineTest$3 this$0
okio.Source arg0
public long read (okio.Buffer, long) throws java.io.IOException
okio.Buffer sink
long byteCount
}
okio/ReadUtf8LineTest$3.class
ReadUtf8LineTest.java
package okio
okio.ReadUtf8LineTest$3 extends java.lang.Object implements okio.ReadUtf8LineTest$Factory {
void <init> ()
public okio.BufferedSource create (okio.Buffer)
okio.Buffer data
public java.lang.String toString ()
}
okio/ReadUtf8LineTest$Factory.class
ReadUtf8LineTest.java
package okio
abstract okio.ReadUtf8LineTest$Factory extends java.lang.Object {
public abstract okio.BufferedSource create (okio.Buffer)
}
okio/ReadUtf8LineTest.class
ReadUtf8LineTest.java
package okio
public final okio.ReadUtf8LineTest extends java.lang.Object {
private final okio.ReadUtf8LineTest$Factory factory
private okio.Buffer data
private okio.BufferedSource source
public static java.util.List parameters ()
public void <init> (okio.ReadUtf8LineTest$Factory)
okio.ReadUtf8LineTest$Factory factory
public void setUp ()
public void readLines () throws java.io.IOException
java.io.EOFException expected
public void eofExceptionProvidesLimitedContent () throws java.io.IOException
java.io.EOFException expected
public void emptyLines () throws java.io.IOException
public void crDroppedPrecedingLf () throws java.io.IOException
public void bufferedReaderCompatible () throws java.io.IOException
public void bufferedReaderCompatibleWithTrailingNewline () throws java.io.IOException
}
okio/RealBufferedSinkTest.class
RealBufferedSinkTest.java
package okio
public final okio.RealBufferedSinkTest extends java.lang.Object {
public void <init> ()
public void inputStreamCloses () throws java.lang.Exception
IllegalStateException e
okio.RealBufferedSink sink
java.io.OutputStream out
public void bufferedSinkEmitsTailWhenItIsComplete () throws java.io.IOException
okio.Buffer sink
okio.BufferedSink bufferedSink
public void bufferedSinkEmitMultipleSegments () throws java.io.IOException
okio.Buffer sink
okio.BufferedSink bufferedSink
public void bufferedSinkFlush () throws java.io.IOException
okio.Buffer sink
okio.BufferedSink bufferedSink
public void bytesEmittedToSinkWithFlush () throws java.lang.Exception
okio.Buffer sink
okio.BufferedSink bufferedSink
public void bytesNotEmittedToSinkWithoutFlush () throws java.lang.Exception
okio.Buffer sink
okio.BufferedSink bufferedSink
public void bytesEmittedToSinkWithEmit () throws java.lang.Exception
okio.Buffer sink
okio.BufferedSink bufferedSink
public void completeSegmentsEmitted () throws java.lang.Exception
okio.Buffer sink
okio.BufferedSink bufferedSink
public void incompleteSegmentsNotEmitted () throws java.lang.Exception
okio.Buffer sink
okio.BufferedSink bufferedSink
public void closeWithExceptionWhenWriting () throws java.io.IOException
okio.MockSink mockSink
okio.BufferedSink bufferedSink
public void closeWithExceptionWhenClosing () throws java.io.IOException
okio.MockSink mockSink
okio.BufferedSink bufferedSink
public void closeWithExceptionWhenWritingAndClosing () throws java.io.IOException
java.io.IOException expected
okio.MockSink mockSink
okio.BufferedSink bufferedSink
public void operationsAfterClose () throws java.io.IOException
okio.MockSink mockSink
okio.BufferedSink bufferedSink
java.io.OutputStream os
public void writeAll () throws java.io.IOException
okio.MockSink mockSink
okio.BufferedSink bufferedSink
public void writeAllExhausted () throws java.io.IOException
okio.MockSink mockSink
okio.BufferedSink bufferedSink
public void writeAllWritesOneSegmentAtATime () throws java.io.IOException
okio.Buffer write1
okio.Buffer write2
okio.Buffer write3
okio.Buffer source
okio.MockSink mockSink
okio.BufferedSink bufferedSink
}
okio/RealBufferedSourceTest.class
RealBufferedSourceTest.java
package okio
public final okio.RealBufferedSourceTest extends java.lang.Object {
public void <init> ()
public void inputStreamTracksSegments () throws java.lang.Exception
okio.Buffer source
java.io.InputStream in
byte[] data
public void inputStreamCloses () throws java.lang.Exception
IllegalStateException e
okio.RealBufferedSource source
java.io.InputStream in
public void requireTracksBufferFirst () throws java.lang.Exception
okio.Buffer source
okio.BufferedSource bufferedSource
public void requireIncludesBufferBytes () throws java.lang.Exception
okio.Buffer source
okio.BufferedSource bufferedSource
public void requireInsufficientData () throws java.lang.Exception
okio.Buffer source
okio.BufferedSource bufferedSource
public void requireReadsOneSegmentAtATime () throws java.lang.Exception
okio.Buffer source
okio.BufferedSource bufferedSource
public void skipReadsOneSegmentAtATime () throws java.lang.Exception
okio.Buffer source
okio.BufferedSource bufferedSource
public void skipTracksBufferFirst () throws java.lang.Exception
okio.Buffer source
okio.BufferedSource bufferedSource
public void operationsAfterClose () throws java.io.IOException
okio.Buffer source
okio.BufferedSource bufferedSource
java.io.InputStream is
public void readAllReadsOneSegmentAtATime () throws java.io.IOException
okio.Buffer write1
okio.Buffer write2
okio.Buffer write3
okio.Buffer source
okio.MockSink mockSink
okio.BufferedSource bufferedSource
}
okio/SegmentSharingTest.class
SegmentSharingTest.java
package okio
public final okio.SegmentSharingTest extends java.lang.Object {
private static final String us
private static final String vs
private static final String ws
private static final String xs
private static final String ys
private static final String zs
public void <init> ()
public void snapshotOfEmptyBuffer () throws java.lang.Exception
okio.ByteString snapshot
public void snapshotsAreEquivalent () throws java.lang.Exception
okio.ByteString byteString
public void snapshotGetByte () throws java.lang.Exception
okio.ByteString byteString
public void snapshotWriteToOutputStream () throws java.lang.Exception
okio.ByteString byteString
okio.Buffer out
public void snapshotSegmentsAreNotRecycled () throws java.lang.Exception
okio.Buffer buffer
okio.ByteString snapshot
public void cloneSegmentsAreNotRecycled () throws java.lang.Exception
okio.Buffer buffer
okio.Buffer clone
public void snapshotJavaSerialization () throws java.lang.Exception
okio.ByteString byteString
public void clonesAreEquivalent () throws java.lang.Exception
okio.Buffer bufferA
okio.Buffer bufferB
public void mutateAfterClone () throws java.lang.Exception
okio.Buffer bufferA
okio.Buffer bufferB
public void concatenateSegmentsCanCombine () throws java.lang.Exception
okio.Buffer bufferA
okio.Buffer bufferB
okio.Buffer bufferC
public void shareAndSplit () throws java.lang.Exception
okio.Buffer bufferA
okio.ByteString snapshot
okio.Buffer bufferB
public void appendSnapshotToEmptyBuffer () throws java.lang.Exception
okio.Buffer bufferA
okio.ByteString snapshot
okio.Buffer bufferB
public void appendSnapshotToNonEmptyBuffer () throws java.lang.Exception
okio.Buffer bufferA
okio.ByteString snapshot
okio.Buffer bufferB
public void copyToSegmentSharing () throws java.lang.Exception
okio.Buffer bufferA
okio.Buffer bufferB
public transient okio.Buffer concatenateBuffers (java.lang.String[]) throws java.lang.Exception
int offsetInSegment
okio.Buffer buffer
String s
String[] segments
okio.Buffer result
static void <clinit> ()
}
okio/SocketTimeoutTest$1.class
SocketTimeoutTest.java
package okio
okio.SocketTimeoutTest$1 extends java.lang.Thread {
final synthetic java.net.ServerSocket val$serverSocket
final synthetic int val$readableByteCount
final synthetic int val$writableByteCount
void <init> (java.lang.String, java.net.ServerSocket, int, int)
String arg0
public void run ()
java.net.Socket socket
}
okio/SocketTimeoutTest.class
SocketTimeoutTest.java
package okio
public okio.SocketTimeoutTest extends java.lang.Object {
private static final int SOCKET_BUFFER_SIZE
private static final int ONE_MB
public void <init> ()
public void readWithoutTimeout () throws java.lang.Exception
java.net.Socket socket
okio.BufferedSource source
public void readWithTimeout () throws java.lang.Exception
java.net.Socket socket
okio.BufferedSource source
public void writeWithoutTimeout () throws java.lang.Exception
java.net.Socket socket
okio.Sink sink
byte[] data
public void writeWithTimeout () throws java.lang.Exception
java.net.Socket socket
okio.Sink sink
byte[] data
long start
long elapsed
static java.net.Socket socket (int, int) throws java.io.IOException
int readableByteCount
int writableByteCount
java.net.ServerSocket serverSocket
Thread peer
java.net.Socket socket
private static void writeFully (java.io.OutputStream, int) throws java.io.IOException
java.io.OutputStream out
int byteCount
private static byte[] readFully (java.io.InputStream, int) throws java.io.IOException
int read
java.io.InputStream in
int byteCount
int count
byte[] result
static synthetic void access$000 (java.io.OutputStream, int) throws java.io.IOException
java.io.OutputStream x0
int x1
static synthetic byte[] access$100 (java.io.InputStream, int) throws java.io.IOException
java.io.InputStream x0
int x1
}
okio/TestUtil.class
TestUtil.java
package okio
final okio.TestUtil extends java.lang.Object {
private void <init> ()
static void assertByteArraysEquals (byte[], byte[])
byte[] a
byte[] b
static void assertByteArrayEquals (java.lang.String, byte[])
String expectedUtf8
byte[] b
static okio.ByteString randomBytes (int)
int length
java.util.Random random
byte[] randomBytes
static java.lang.String repeat (char, int)
char c
int count
char[] array
public static void assertEquivalent (okio.ByteString, okio.ByteString)
byte b
int i
byte[] b3Bytes
okio.ByteString b3
okio.ByteString b3
okio.ByteString b1
okio.ByteString b2
byte[] b2Bytes
public static void assertEquivalent (okio.Buffer, okio.Buffer)
byte b
int i
byte[] b3Bytes
okio.Buffer b3
okio.Buffer b3
okio.Buffer b1
okio.Buffer b2
okio.Buffer buffer
byte[] b2Bytes
public static java.io.Serializable reserialize (java.io.Serializable) throws java.lang.Exception
java.io.Serializable original
okio.Buffer buffer
java.io.ObjectOutputStream out
java.io.ObjectInputStream in
}
okio/Utf8Test.class
Utf8Test.java
package okio
public final okio.Utf8Test extends java.lang.Object {
public void <init> ()
public void oneByteCharacters () throws java.lang.Exception
public void twoByteCharacters () throws java.lang.Exception
public void threeByteCharacters () throws java.lang.Exception
public void fourByteCharacters () throws java.lang.Exception
public void danglingHighSurrogate () throws java.lang.Exception
public void lowSurrogateWithoutHighSurrogate () throws java.lang.Exception
public void highSurrogateFollowedByNonSurrogate () throws java.lang.Exception
public void multipleSegmentString () throws java.lang.Exception
String a
okio.Buffer encoded
okio.Buffer expected
public void stringSpansSegments () throws java.lang.Exception
okio.Buffer buffer
String a
String b
String c
public void readEmptyBufferThrowsEofException () throws java.lang.Exception
okio.Buffer buffer
public void readLeadingContinuationByteReturnsReplacementCharacter () throws java.lang.Exception
okio.Buffer buffer
public void readMissingContinuationBytesThrowsEofException () throws java.lang.Exception
okio.Buffer buffer
public void readTooLargeCodepointReturnsReplacementCharacter () throws java.lang.Exception
okio.Buffer buffer
public void readNonContinuationBytesReturnsReplacementCharacter () throws java.lang.Exception
okio.Buffer buffer
public void readCodePointBeyondUnicodeMaximum () throws java.lang.Exception
okio.Buffer buffer
public void readSurrogateCodePoint () throws java.lang.Exception
okio.Buffer buffer
public void readOverlongCodePoint () throws java.lang.Exception
okio.Buffer buffer
public void writeSurrogateCodePoint () throws java.lang.Exception
okio.Buffer buffer
public void writeCodePointBeyondUnicodeMaximum () throws java.lang.Exception
okio.Buffer buffer
private transient void assertEncoded (java.lang.String, int[]) throws java.lang.Exception
String hex
int[] codePoints
private transient void assertCodePointEncoded (java.lang.String, int[]) throws java.lang.Exception
int codePoint
String hex
int[] codePoints
okio.Buffer buffer
private transient void assertCodePointDecoded (java.lang.String, int[]) throws java.lang.Exception
int codePoint
String hex
int[] codePoints
okio.Buffer buffer
private void assertStringEncoded (java.lang.String, java.lang.String) throws java.lang.Exception
String hex
String string
okio.ByteString expectedUtf8
okio.ByteString platformUtf8
okio.ByteString actualUtf8
}