diff --git a/1.x/benchmarks/META-INF/MANIFEST.MF b/1.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/benchmarks/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/benchmarks/allclasses-frame.html b/1.x/benchmarks/allclasses-frame.html new file mode 100644 index 000000000..c2a082ce0 --- /dev/null +++ b/1.x/benchmarks/allclasses-frame.html @@ -0,0 +1,19 @@ + + + +
+ + +public class Benchmark
+extends com.google.caliper.Benchmark
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html new file mode 100644 index 000000000..ec1e5e18c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html new file mode 100644 index 000000000..165d99597 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| Benchmark | +
+ This benchmark is fake, but may be useful for certain relative comparisons.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html new file mode 100644 index 000000000..e9b78479b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html @@ -0,0 +1,128 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html new file mode 100644 index 000000000..7371f31a6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/constant-values.html b/1.x/benchmarks/constant-values.html new file mode 100644 index 000000000..724233bd7 --- /dev/null +++ b/1.x/benchmarks/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/deprecated-list.html b/1.x/benchmarks/deprecated-list.html new file mode 100644 index 000000000..23b708089 --- /dev/null +++ b/1.x/benchmarks/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/help-doc.html b/1.x/benchmarks/help-doc.html new file mode 100644 index 000000000..9e0c82978 --- /dev/null +++ b/1.x/benchmarks/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/index-all.html b/1.x/benchmarks/index-all.html new file mode 100644 index 000000000..dc475c564 --- /dev/null +++ b/1.x/benchmarks/index-all.html @@ -0,0 +1,156 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/index.html b/1.x/benchmarks/index.html new file mode 100644 index 000000000..0f94102df --- /dev/null +++ b/1.x/benchmarks/index.html @@ -0,0 +1,65 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/package-list b/1.x/benchmarks/package-list new file mode 100644 index 000000000..8caffeb9a --- /dev/null +++ b/1.x/benchmarks/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.benchmarks diff --git a/1.x/benchmarks/resources/background.gif b/1.x/benchmarks/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/benchmarks/resources/background.gif differ diff --git a/1.x/benchmarks/resources/tab.gif b/1.x/benchmarks/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/benchmarks/resources/tab.gif differ diff --git a/1.x/benchmarks/resources/titlebar.gif b/1.x/benchmarks/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/benchmarks/resources/titlebar.gif differ diff --git a/1.x/benchmarks/resources/titlebar_end.gif b/1.x/benchmarks/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/benchmarks/resources/titlebar_end.gif differ diff --git a/1.x/benchmarks/stylesheet.css b/1.x/benchmarks/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/benchmarks/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/benchmarks/version.txt b/1.x/benchmarks/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/benchmarks/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/mockwebserver/META-INF/MANIFEST.MF b/1.x/mockwebserver/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/mockwebserver/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/mockwebserver/allclasses-frame.html b/1.x/mockwebserver/allclasses-frame.html new file mode 100644 index 000000000..d495346c4 --- /dev/null +++ b/1.x/mockwebserver/allclasses-frame.html @@ -0,0 +1,27 @@ + + + + + + +public final class SslContextBuilder +extends Object+
The crypto performed by this class is relatively slow. Clients should + reuse SSL context instances where possible.
| Constructor and Description | +
|---|
SslContextBuilder(String hostName) |
+
| Modifier and Type | +Method and Description | +
|---|---|
SSLContext |
+build() |
+
static SSLContext |
+localhost()
+Returns a new SSL context for this host's current localhost address.
+ |
+
public SslContextBuilder(String hostName)+
hostName - the subject of the host. For TLS this should be the
+ domain name that the client uses to identify the server.public static SSLContext localhost()+
public SSLContext build() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html b/1.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html new file mode 100644 index 000000000..84171ee53 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html b/1.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html new file mode 100644 index 000000000..cd11a15d0 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| SslContextBuilder | +
+ Constructs an SSL context for testing.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html b/1.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html new file mode 100644 index 000000000..5852a5bfb --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html @@ -0,0 +1,130 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/package-use.html b/1.x/mockwebserver/com/squareup/okhttp/internal/package-use.html new file mode 100644 index 000000000..ae3a76078 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/SpdyServer.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/SpdyServer.html new file mode 100644 index 000000000..84093c3f2 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/SpdyServer.html @@ -0,0 +1,314 @@ + + + + + + +public final class SpdyServer +extends Object +implements com.squareup.okhttp.internal.spdy.IncomingStreamHandler+
REFUSE_INCOMING_STREAMS| Constructor and Description | +
|---|
SpdyServer(File baseDirectory) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+receive(com.squareup.okhttp.internal.spdy.SpdyStream stream) |
+
void |
+useHttps(SSLSocketFactory sslSocketFactory) |
+
public void useHttps(SSLSocketFactory sslSocketFactory)+
public void receive(com.squareup.okhttp.internal.spdy.SpdyStream stream) + throws IOException+
receive in interface com.squareup.okhttp.internal.spdy.IncomingStreamHandlerIOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/class-use/SpdyServer.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/class-use/SpdyServer.html new file mode 100644 index 000000000..b1be0423f --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/class-use/SpdyServer.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-frame.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-frame.html new file mode 100644 index 000000000..8242db67a --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| SpdyServer | +
+ A basic SPDY server that serves the contents of a local directory.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-tree.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-tree.html new file mode 100644 index 000000000..2f190f13b --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-tree.html @@ -0,0 +1,130 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-use.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-use.html new file mode 100644 index 000000000..e3fa374f6 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html new file mode 100644 index 000000000..ce83c9c72 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html @@ -0,0 +1,289 @@ + + + + + + + +public abstract class Dispatcher +extends Object+
| Constructor and Description | +
|---|
Dispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
SocketPolicy |
+peekSocketPolicy()
+Returns the socket policy of the next request.
+ |
+
public abstract MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
request. This method may block (for
+ instance, to wait on a CountdownLatch).InterruptedExceptionpublic SocketPolicy peekSocketPolicy()+
SocketPolicy.KEEP_OPEN. Mischievous implementations can
+ return other values to test HTTP edge cases.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html new file mode 100644 index 000000000..8f20eb7d8 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html @@ -0,0 +1,689 @@ + + + + + + + +| Constructor and Description | +
|---|
MockResponse()
+Creates a new mock response with an empty body.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+clearHeaders()
+Removes all HTTP headers including any "Content-Length" and
+ "Transfer-encoding" headers that were added by default.
+ |
+
MockResponse |
+clone() |
+
byte[] |
+getBody()
+Returns the raw HTTP payload, or null if this response is streamed.
+ |
+
int |
+getBodyDelayTimeMs() |
+
List<String> |
+getHeaders()
+Returns the HTTP headers, such as "Content-Length: 0".
+ |
+
List<PushPromise> |
+getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
SocketPolicy |
+getSocketPolicy() |
+
String |
+getStatus()
+Returns the HTTP response line, such as "HTTP/1.1 200 OK".
+ |
+
int |
+getThrottleBytesPerPeriod() |
+
long |
+getThrottlePeriod() |
+
TimeUnit |
+getThrottleUnit() |
+
MockResponse |
+removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+setBody(byte[] body) |
+
MockResponse |
+setBody(InputStream bodyStream,
+ long bodyLength) |
+
MockResponse |
+setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+setBodyDelayTimeMs(int delay)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+setChunkedBody(byte[] body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize
+ bytes. |
+
MockResponse |
+setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked
+ every maxChunkSize bytes. |
+
MockResponse |
+setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the
+ name and value. |
+
MockResponse |
+setResponseCode(int code) |
+
MockResponse |
+setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+setStatus(String status) |
+
MockResponse |
+throttleBody(int bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the response body writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are written. |
+
String |
+toString() |
+
MockResponse |
+withPush(PushPromise promise)
+When
+protocols
+ include a SPDY variant, this attaches a pushed stream to this response. |
+
public MockResponse()+
public MockResponse clone()+ +
public String getStatus()+
public MockResponse setResponseCode(int code)+
public MockResponse setStatus(String status)+
public List<String> getHeaders()+
public MockResponse clearHeaders()+
public MockResponse addHeader(String header)+
header as an HTTP header. For well-formed HTTP header
+ should contain a name followed by a colon and a value.public MockResponse addHeader(String name, + Object value)+
public MockResponse setHeader(String name, + Object value)+
name, then adds a new header with the
+ name and value.public MockResponse removeHeader(String name)+
name.public byte[] getBody()+
public MockResponse setBody(byte[] body)+
public MockResponse setBody(InputStream bodyStream, + long bodyLength)+
public MockResponse setBody(String body)+
body.public MockResponse setChunkedBody(byte[] body, + int maxChunkSize)+
body, chunked every maxChunkSize
+ bytes.public MockResponse setChunkedBody(String body, + int maxChunkSize)+
body, chunked
+ every maxChunkSize bytes.public SocketPolicy getSocketPolicy()+
public MockResponse setSocketPolicy(SocketPolicy socketPolicy)+
public MockResponse throttleBody(int bytesPerPeriod, + long period, + TimeUnit unit)+
bytesPerPeriod bytes are written. Use this to simulate
+ network behavior.public int getThrottleBytesPerPeriod()+
public long getThrottlePeriod()+
public TimeUnit getThrottleUnit()+
public MockResponse setBodyDelayTimeMs(int delay)+
delay. This applies to the
+ response body only; response headers are not affected.public int getBodyDelayTimeMs()+
public MockResponse withPush(PushPromise promise)+
protocols
+ include a SPDY variant, this attaches a pushed stream to this response.public List<PushPromise> getPushPromises()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html new file mode 100644 index 000000000..94d34753f --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html @@ -0,0 +1,533 @@ + + + + + + + +public final class MockWebServer +extends Object+
| Constructor and Description | +
|---|
MockWebServer() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
String |
+getCookieDomain()
+Returns a cookie domain for this server.
+ |
+
String |
+getHostName() |
+
int |
+getPort() |
+
int |
+getRequestCount()
+Returns the number of HTTP requests received thus far by this server.
+ |
+
URL |
+getUrl(String path)
+Returns a URL for connecting to this server.
+ |
+
void |
+play()
+Equivalent to
+play(0). |
+
void |
+play(int port)
+Starts the server, serves all enqueued requests, and shuts the server down.
+ |
+
void |
+setBodyLimit(int maxBodyLength)
+Sets the number of bytes of the POST body to keep in memory to the given
+ limit.
+ |
+
void |
+setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
void |
+setNpnEnabled(boolean npnEnabled)
+Sets whether NPN is used on incoming HTTPS connections to negotiate a
+ protocol like HTTP/1.1 or SPDY/3.
+ |
+
void |
+setNpnProtocols(List<Protocol> protocols)
+Indicates the protocols supported by NPN on incoming HTTPS connections.
+ |
+
void |
+shutdown() |
+
RecordedRequest |
+takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
Proxy |
+toProxyAddress() |
+
void |
+useHttps(SSLSocketFactory sslSocketFactory,
+ boolean tunnelProxy)
+Serve requests with HTTPS rather than otherwise.
+ |
+
public int getPort()+
public String getHostName()+
public Proxy toProxyAddress()+
public URL getUrl(String path)+
path - the request path, such as "/".public String getCookieDomain()+
public void setBodyLimit(int maxBodyLength)+
public void setNpnEnabled(boolean npnEnabled)+
public void setNpnProtocols(List<Protocol> protocols)+
protocols - the protocols to use, in order of preference. The list
+ must contain "http/1.1". It must not contain null.public void useHttps(SSLSocketFactory sslSocketFactory, + boolean tunnelProxy)+
tunnelProxy - true to expect the HTTP CONNECT method before
+ negotiating TLS.public RecordedRequest takeRequest() + throws InterruptedException+
InterruptedExceptionpublic int getRequestCount()+
public void enqueue(MockResponse response)+
response to be returned to a request made in sequence. The
+ first request is served by the first enqueued response; the second request
+ by the second enqueued response; and so on.ClassCastException - if the default dispatcher has been replaced
+ with setDispatcher(Dispatcher).public void play() + throws IOException+
play(0).IOExceptionpublic void play(int port) + throws IOException+
port - the port to listen to, or 0 for any available port. Automated
+ tests should always use port 0 to avoid flakiness when a specific port
+ is unavailable.IOExceptionpublic void shutdown() + throws IOException+
IOExceptionpublic void setDispatcher(Dispatcher dispatcher)+
queue; custom dispatchers can vary the
+ response based on timing or the content of the request.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html new file mode 100644 index 000000000..f6f56085a --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html @@ -0,0 +1,304 @@ + + + + + + +public final class PushPromise +extends Object+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ List<String> headers,
+ MockResponse response) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<String> |
+getHeaders() |
+
String |
+getMethod() |
+
String |
+getPath() |
+
MockResponse |
+getResponse() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html new file mode 100644 index 000000000..5c51821cb --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html @@ -0,0 +1,375 @@ + + + + + + + +public class QueueDispatcher +extends Dispatcher+
enqueueResponse(MockResponse).| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+responseQueue |
+
| Constructor and Description | +
|---|
QueueDispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
void |
+enqueueResponse(MockResponse response) |
+
SocketPolicy |
+peekSocketPolicy()
+Returns the socket policy of the next request.
+ |
+
void |
+setFailFast(boolean failFast) |
+
void |
+setFailFast(MockResponse failFastResponse) |
+
protected final BlockingQueue<MockResponse> responseQueue+
public MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
Dispatcherrequest. This method may block (for
+ instance, to wait on a CountdownLatch).dispatch in class DispatcherInterruptedExceptionpublic SocketPolicy peekSocketPolicy()+
DispatcherSocketPolicy.KEEP_OPEN. Mischievous implementations can
+ return other values to test HTTP edge cases.peekSocketPolicy in class Dispatcherpublic void enqueueResponse(MockResponse response)+
public void setFailFast(boolean failFast)+
public void setFailFast(MockResponse failFastResponse)+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html new file mode 100644 index 000000000..cbdc30dde --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html @@ -0,0 +1,469 @@ + + + + + + + +public final class RecordedRequest +extends Object+
| Constructor and Description | +
|---|
RecordedRequest(String requestLine,
+ List<String> headers,
+ List<Integer> chunkSizes,
+ long bodySize,
+ byte[] body,
+ int sequenceNumber,
+ Socket socket) |
+
| Modifier and Type | +Method and Description | +
|---|---|
byte[] |
+getBody()
+Returns the body of this POST request.
+ |
+
long |
+getBodySize()
+Returns the total size of the body of this POST request (before
+ truncation).
+ |
+
List<Integer> |
+getChunkSizes()
+Returns the sizes of the chunks of this request's body, or an empty list
+ if the request's body was empty or unchunked.
+ |
+
String |
+getHeader(String name)
+Returns the first header named
+name, or null if no such header
+ exists. |
+
List<String> |
+getHeaders()
+Returns all headers.
+ |
+
List<String> |
+getHeaders(String name)
+Returns the headers named
+name. |
+
String |
+getMethod() |
+
String |
+getPath() |
+
String |
+getRequestLine() |
+
int |
+getSequenceNumber()
+Returns the index of this request on its HTTP connection.
+ |
+
String |
+getSslProtocol()
+Returns the connection's SSL protocol like
+TLSv1, SSLv3,
+ NONE or null if the connection doesn't use SSL. |
+
String |
+getUtf8Body()
+Returns the body of this POST request decoded as a UTF-8 string.
+ |
+
String |
+toString() |
+
public String getRequestLine()+
public String getMethod()+
public String getPath()+
public String getHeader(String name)+
name, or null if no such header
+ exists.public List<Integer> getChunkSizes()+
public long getBodySize()+
public byte[] getBody()+
public String getUtf8Body()+
public int getSequenceNumber()+
public String getSslProtocol()+
TLSv1, SSLv3,
+ NONE or null if the connection doesn't use SSL.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html new file mode 100644 index 000000000..b4bf2727e --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html @@ -0,0 +1,429 @@ + + + + + + + +public enum SocketPolicy +extends Enum<SocketPolicy>+
| Enum Constant and Description | +
|---|
DISCONNECT_AT_END
+Close the socket after the response.
+ |
+
DISCONNECT_AT_START
+Request immediate close of connection without even reading the request.
+ |
+
FAIL_HANDSHAKE
+Don't trust the client during the SSL handshake.
+ |
+
KEEP_OPEN
+Keep the socket open after the response.
+ |
+
NO_RESPONSE
+Don't response to the request but keep the socket open.
+ |
+
SHUTDOWN_INPUT_AT_END
+Shutdown the socket input after sending the response.
+ |
+
SHUTDOWN_OUTPUT_AT_END
+Shutdown the socket output after sending the response.
+ |
+
UPGRADE_TO_SSL_AT_END
+Wrap the socket with SSL at the completion of this request/response pair.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static SocketPolicy |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final SocketPolicy KEEP_OPEN+
public static final SocketPolicy DISCONNECT_AT_END+
public static final SocketPolicy UPGRADE_TO_SSL_AT_END+
public static final SocketPolicy DISCONNECT_AT_START+
public static final SocketPolicy FAIL_HANDSHAKE+
public static final SocketPolicy SHUTDOWN_INPUT_AT_END+
public static final SocketPolicy SHUTDOWN_OUTPUT_AT_END+
public static final SocketPolicy NO_RESPONSE+
public static SocketPolicy[] values()+
+for (SocketPolicy c : SocketPolicy.values()) + System.out.println(c); +
public static SocketPolicy valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html new file mode 100644 index 000000000..5ac88a2a3 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html @@ -0,0 +1,174 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Class and Description | +
|---|---|
class |
+QueueDispatcher
+Default dispatcher that processes a script of responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html new file mode 100644 index 000000000..0ba62b574 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html @@ -0,0 +1,320 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+QueueDispatcher.responseQueue |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+MockResponse.addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+MockResponse.clearHeaders()
+Removes all HTTP headers including any "Content-Length" and
+ "Transfer-encoding" headers that were added by default.
+ |
+
MockResponse |
+MockResponse.clone() |
+
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+PushPromise.getResponse() |
+
MockResponse |
+MockResponse.removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+MockResponse.setBody(byte[] body) |
+
MockResponse |
+MockResponse.setBody(InputStream bodyStream,
+ long bodyLength) |
+
MockResponse |
+MockResponse.setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+MockResponse.setBodyDelayTimeMs(int delay)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+MockResponse.setChunkedBody(byte[] body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize
+ bytes. |
+
MockResponse |
+MockResponse.setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked
+ every maxChunkSize bytes. |
+
MockResponse |
+MockResponse.setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the
+ name and value. |
+
MockResponse |
+MockResponse.setResponseCode(int code) |
+
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+MockResponse.setStatus(String status) |
+
MockResponse |
+MockResponse.throttleBody(int bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the response body writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are written. |
+
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols
+ include a SPDY variant, this attaches a pushed stream to this response. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
void |
+QueueDispatcher.enqueueResponse(MockResponse response) |
+
void |
+QueueDispatcher.setFailFast(MockResponse failFastResponse) |
+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ List<String> headers,
+ MockResponse response) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html new file mode 100644 index 000000000..cb54e6600 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html new file mode 100644 index 000000000..cb32a5e1f --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html @@ -0,0 +1,175 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
List<PushPromise> |
+MockResponse.getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols
+ include a SPDY variant, this attaches a pushed stream to this response. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html new file mode 100644 index 000000000..ce733eed4 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html new file mode 100644 index 000000000..4e7aa9765 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html @@ -0,0 +1,178 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
RecordedRequest |
+MockWebServer.takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html new file mode 100644 index 000000000..b66110630 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html @@ -0,0 +1,193 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SocketPolicy |
+MockResponse.getSocketPolicy() |
+
SocketPolicy |
+QueueDispatcher.peekSocketPolicy() |
+
SocketPolicy |
+Dispatcher.peekSocketPolicy()
+Returns the socket policy of the next request.
+ |
+
static SocketPolicy |
+SocketPolicy.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+SocketPolicy.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html new file mode 100644 index 000000000..1e20b9fb5 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html @@ -0,0 +1,29 @@ + + + + + + +| Class | +Description | +
|---|---|
| Dispatcher | +
+ Handler for mock server requests.
+ |
+
| MockResponse | +
+ A scripted response to be replayed by the mock web server.
+ |
+
| MockWebServer | +
+ A scriptable web server.
+ |
+
| PushPromise | +
+ An HTTP request initiated by the server.
+ |
+
| QueueDispatcher | +
+ Default dispatcher that processes a script of responses.
+ |
+
| RecordedRequest | +
+ An HTTP request that came into the mock web server.
+ |
+
| Enum | +Description | +
|---|---|
| SocketPolicy | +
+ What should be done with the incoming socket.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html new file mode 100644 index 000000000..ca1fbe588 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html @@ -0,0 +1,150 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html new file mode 100644 index 000000000..b539ec84b --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html @@ -0,0 +1,172 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Class and Description | +
|---|
| Dispatcher
+ Handler for mock server requests.
+ |
+
| MockResponse
+ A scripted response to be replayed by the mock web server.
+ |
+
| PushPromise
+ An HTTP request initiated by the server.
+ |
+
| RecordedRequest
+ An HTTP request that came into the mock web server.
+ |
+
| SocketPolicy
+ What should be done with the incoming socket.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/constant-values.html b/1.x/mockwebserver/constant-values.html new file mode 100644 index 000000000..ad121be26 --- /dev/null +++ b/1.x/mockwebserver/constant-values.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/deprecated-list.html b/1.x/mockwebserver/deprecated-list.html new file mode 100644 index 000000000..3b05361ba --- /dev/null +++ b/1.x/mockwebserver/deprecated-list.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/help-doc.html b/1.x/mockwebserver/help-doc.html new file mode 100644 index 000000000..2ed33aa31 --- /dev/null +++ b/1.x/mockwebserver/help-doc.html @@ -0,0 +1,222 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/index-all.html b/1.x/mockwebserver/index-all.html new file mode 100644 index 000000000..1fb572a1a --- /dev/null +++ b/1.x/mockwebserver/index-all.html @@ -0,0 +1,515 @@ + + + + + + +header as an HTTP header.request.response to be returned to a request made in sequence.name, or null if no such header
+ exists.name.TLSv1, SSLv3,
+ NONE or null if the connection doesn't use SSL.play(0).name.body.delay.body, chunked every maxChunkSize
+ bytes.body, chunked
+ every maxChunkSize bytes.name, then adds a new header with the
+ name and value.bytesPerPeriod bytes are written.protocols
+ include a SPDY variant, this attaches a pushed stream to this response.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/index.html b/1.x/mockwebserver/index.html new file mode 100644 index 000000000..cf6a970bd --- /dev/null +++ b/1.x/mockwebserver/index.html @@ -0,0 +1,68 @@ + + + + + + ++ + diff --git a/1.x/mockwebserver/overview-summary.html b/1.x/mockwebserver/overview-summary.html new file mode 100644 index 000000000..68943ab0e --- /dev/null +++ b/1.x/mockwebserver/overview-summary.html @@ -0,0 +1,139 @@ + + + + + + +
| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| com.squareup.okhttp.internal.spdy | ++ |
| com.squareup.okhttp.mockwebserver | ++ |
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/overview-tree.html b/1.x/mockwebserver/overview-tree.html new file mode 100644 index 000000000..a4cafca05 --- /dev/null +++ b/1.x/mockwebserver/overview-tree.html @@ -0,0 +1,154 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/package-list b/1.x/mockwebserver/package-list new file mode 100644 index 000000000..d6d5beaa0 --- /dev/null +++ b/1.x/mockwebserver/package-list @@ -0,0 +1,3 @@ +com.squareup.okhttp.internal +com.squareup.okhttp.internal.spdy +com.squareup.okhttp.mockwebserver diff --git a/1.x/mockwebserver/resources/background.gif b/1.x/mockwebserver/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/mockwebserver/resources/background.gif differ diff --git a/1.x/mockwebserver/resources/tab.gif b/1.x/mockwebserver/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/mockwebserver/resources/tab.gif differ diff --git a/1.x/mockwebserver/resources/titlebar.gif b/1.x/mockwebserver/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/mockwebserver/resources/titlebar.gif differ diff --git a/1.x/mockwebserver/resources/titlebar_end.gif b/1.x/mockwebserver/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/mockwebserver/resources/titlebar_end.gif differ diff --git a/1.x/mockwebserver/stylesheet.css b/1.x/mockwebserver/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/mockwebserver/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/mockwebserver/version.txt b/1.x/mockwebserver/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/mockwebserver/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp-apache/META-INF/MANIFEST.MF b/1.x/okhttp-apache/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp-apache/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp-apache/allclasses-frame.html b/1.x/okhttp-apache/allclasses-frame.html new file mode 100644 index 000000000..3e0819b18 --- /dev/null +++ b/1.x/okhttp-apache/allclasses-frame.html @@ -0,0 +1,19 @@ + + + + + + +public class OkApacheClient +extends Object +implements org.apache.http.client.HttpClient+
HttpClient API using OkHttpClient.
+ + Warning: Many core features of Apache HTTP client are not implemented by this + API. This includes the keep-alive strategy, cookie store, credentials provider, route planner + and others.
| Modifier and Type | +Field and Description | +
|---|---|
protected OkHttpClient |
+client |
+
| Constructor and Description | +
|---|
OkApacheClient() |
+
OkApacheClient(OkHttpClient client) |
+
| Modifier and Type | +Method and Description | +
|---|---|
org.apache.http.HttpResponse |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request) |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.protocol.HttpContext context) |
+
<T> T |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler) |
+
<T> T |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler,
+ org.apache.http.protocol.HttpContext context) |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.client.methods.HttpUriRequest request) |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.protocol.HttpContext context) |
+
<T> T |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler) |
+
<T> T |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler,
+ org.apache.http.protocol.HttpContext context) |
+
org.apache.http.conn.ClientConnectionManager |
+getConnectionManager() |
+
org.apache.http.params.HttpParams |
+getParams() |
+
protected HttpURLConnection |
+openConnection(URL url)
+Returns a new HttpURLConnection customized for this application.
+ |
+
protected final OkHttpClient client+
public OkApacheClient()+
public OkApacheClient(OkHttpClient client)+
protected HttpURLConnection openConnection(URL url)+
public org.apache.http.params.HttpParams getParams()+
getParams in interface org.apache.http.client.HttpClientpublic org.apache.http.conn.ClientConnectionManager getConnectionManager()+
getConnectionManager in interface org.apache.http.client.HttpClientpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html new file mode 100644 index 000000000..69bfc2446 --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html new file mode 100644 index 000000000..a10ed4cb8 --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkApacheClient | +
+ Implements Apache's
+HttpClient API using OkHttpClient. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html new file mode 100644 index 000000000..83a4bff61 --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html new file mode 100644 index 000000000..850deeb8e --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/constant-values.html b/1.x/okhttp-apache/constant-values.html new file mode 100644 index 000000000..48768f528 --- /dev/null +++ b/1.x/okhttp-apache/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/deprecated-list.html b/1.x/okhttp-apache/deprecated-list.html new file mode 100644 index 000000000..4fdf64575 --- /dev/null +++ b/1.x/okhttp-apache/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/help-doc.html b/1.x/okhttp-apache/help-doc.html new file mode 100644 index 000000000..89d7bf7a2 --- /dev/null +++ b/1.x/okhttp-apache/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/index-all.html b/1.x/okhttp-apache/index-all.html new file mode 100644 index 000000000..cadc623a5 --- /dev/null +++ b/1.x/okhttp-apache/index-all.html @@ -0,0 +1,172 @@ + + + + + + +HttpClient API using OkHttpClient.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/index.html b/1.x/okhttp-apache/index.html new file mode 100644 index 000000000..f0d3a7e1c --- /dev/null +++ b/1.x/okhttp-apache/index.html @@ -0,0 +1,65 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/package-list b/1.x/okhttp-apache/package-list new file mode 100644 index 000000000..510faa8fd --- /dev/null +++ b/1.x/okhttp-apache/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.apache diff --git a/1.x/okhttp-apache/resources/background.gif b/1.x/okhttp-apache/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp-apache/resources/background.gif differ diff --git a/1.x/okhttp-apache/resources/tab.gif b/1.x/okhttp-apache/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp-apache/resources/tab.gif differ diff --git a/1.x/okhttp-apache/resources/titlebar.gif b/1.x/okhttp-apache/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp-apache/resources/titlebar.gif differ diff --git a/1.x/okhttp-apache/resources/titlebar_end.gif b/1.x/okhttp-apache/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp-apache/resources/titlebar_end.gif differ diff --git a/1.x/okhttp-apache/stylesheet.css b/1.x/okhttp-apache/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp-apache/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp-apache/version.txt b/1.x/okhttp-apache/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp-apache/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp-protocols/META-INF/MANIFEST.MF b/1.x/okhttp-protocols/META-INF/MANIFEST.MF new file mode 100644 index 000000000..cfd797bd1 --- /dev/null +++ b/1.x/okhttp-protocols/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jw +Build-Jdk: 1.7.0_21 + diff --git a/1.x/okhttp-protocols/allclasses-frame.html b/1.x/okhttp-protocols/allclasses-frame.html new file mode 100644 index 000000000..dcc2f4adf --- /dev/null +++ b/1.x/okhttp-protocols/allclasses-frame.html @@ -0,0 +1,31 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/NamedRunnable.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/NamedRunnable.html new file mode 100644 index 000000000..cee27cbac --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/NamedRunnable.html @@ -0,0 +1,283 @@ + + + + + + +| Constructor and Description | +
|---|
NamedRunnable(String format,
+ Object... args) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/Platform.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/Platform.html new file mode 100644 index 000000000..1b5c91247 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/Platform.html @@ -0,0 +1,458 @@ + + + + + + +public class Platform +extends Object+
DeflaterOutputStream that is
+ public API in Java 7 and callable via reflection in Android 4.1+.| Modifier and Type | +Method and Description | +
|---|---|
void |
+connectSocket(Socket socket,
+ InetSocketAddress address,
+ int connectTimeout) |
+
void |
+enableTlsExtensions(SSLSocket socket,
+ String uriHost)
+Attempt a TLS connection with useful extensions enabled.
+ |
+
static Platform |
+get() |
+
byte[] |
+getNpnSelectedProtocol(SSLSocket socket)
+Returns the negotiated protocol, or null if no protocol was negotiated.
+ |
+
String |
+getPrefix()
+Prefix used on custom headers.
+ |
+
void |
+logW(String warning) |
+
OutputStream |
+newDeflaterOutputStream(OutputStream out,
+ Deflater deflater,
+ boolean syncFlush)
+Returns a deflater output stream that supports SYNC_FLUSH for SPDY name
+ value blocks.
+ |
+
void |
+setNpnProtocols(SSLSocket socket,
+ byte[] npnProtocols)
+Sets client-supported protocols on a socket to send to a server.
+ |
+
void |
+supportTlsIntolerantServer(SSLSocket socket)
+Attempt a secure connection with basic functionality to maximize
+ compatibility.
+ |
+
void |
+tagSocket(Socket socket) |
+
URI |
+toUriLenient(URL url) |
+
void |
+untagSocket(Socket socket) |
+
public static Platform get()+
public String getPrefix()+
public void logW(String warning)+
public void tagSocket(Socket socket) + throws SocketException+
SocketExceptionpublic void untagSocket(Socket socket) + throws SocketException+
SocketExceptionpublic URI toUriLenient(URL url) + throws URISyntaxException+
URISyntaxExceptionpublic void enableTlsExtensions(SSLSocket socket, + String uriHost)+
public void supportTlsIntolerantServer(SSLSocket socket)+
public byte[] getNpnSelectedProtocol(SSLSocket socket)+
public void setNpnProtocols(SSLSocket socket, + byte[] npnProtocols)+
public void connectSocket(Socket socket, + InetSocketAddress address, + int connectTimeout) + throws IOException+
IOExceptionpublic OutputStream newDeflaterOutputStream(OutputStream out, + Deflater deflater, + boolean syncFlush)+
UnsupportedOperationException on
+ Java 6 and earlier where there is no built-in API to do SYNC_FLUSH.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/Util.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/Util.html new file mode 100644 index 000000000..1e1463971 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/Util.html @@ -0,0 +1,744 @@ + + + + + + +public final class Util +extends Object+
| Modifier and Type | +Field and Description | +
|---|---|
static byte[] |
+EMPTY_BYTE_ARRAY |
+
static String[] |
+EMPTY_STRING_ARRAY |
+
static Charset |
+ISO_8859_1
+A cheap and type-safe constant for the ISO-8859-1 Charset.
+ |
+
static Charset |
+US_ASCII
+A cheap and type-safe constant for the US-ASCII Charset.
+ |
+
static Charset |
+UTF_8
+A cheap and type-safe constant for the UTF-8 Charset.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+checkOffsetAndCount(int arrayLength,
+ int offset,
+ int count) |
+
static void |
+closeAll(Closeable a,
+ Closeable b)
+Closes
+a and b. |
+
static void |
+closeQuietly(Closeable closeable)
+Closes
+closeable, ignoring any checked exceptions. |
+
static void |
+closeQuietly(ServerSocket serverSocket)
+Closes
+serverSocket, ignoring any checked exceptions. |
+
static void |
+closeQuietly(Socket socket)
+Closes
+socket, ignoring any checked exceptions. |
+
static int |
+copy(InputStream in,
+ OutputStream out)
+Copies all of the bytes from
+in to out. |
+
static ThreadFactory |
+daemonThreadFactory(String name) |
+
static void |
+deleteContents(File dir)
+Deletes the contents of
+dir. |
+
static boolean |
+equal(Object a,
+ Object b)
+Returns true if two possibly-null objects are equal.
+ |
+
static int |
+getDefaultPort(String scheme) |
+
static int |
+getEffectivePort(URI uri) |
+
static int |
+getEffectivePort(URL url) |
+
static String |
+hash(String s)
+Returns a 32 character string containing a hash of
+s. |
+
static <T> List<T> |
+immutableList(List<T> list)
+Returns an immutable copy of
+list. |
+
static void |
+pokeInt(byte[] dst,
+ int offset,
+ int value,
+ ByteOrder order) |
+
static String |
+readAsciiLine(InputStream in)
+Returns the ASCII characters up to but not including the next "\r\n", or
+ "\n".
+ |
+
static void |
+readFully(InputStream in,
+ byte[] dst)
+Fills 'dst' with bytes from 'in', throwing EOFException if insufficient bytes are available.
+ |
+
static void |
+readFully(InputStream in,
+ byte[] dst,
+ int offset,
+ int byteCount)
+Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws
+ EOFException if insufficient bytes are available.
+ |
+
static String |
+readFully(Reader reader)
+Returns the remainder of 'reader' as a string, closing it when done.
+ |
+
static int |
+readSingleByte(InputStream in)
+Implements InputStream.read(int) in terms of InputStream.read(byte[], int, int).
+ |
+
static void |
+skipAll(InputStream in) |
+
static long |
+skipByReading(InputStream in,
+ long byteCount)
+Call
+in.read() repeatedly until either the stream is exhausted or
+ byteCount bytes have been read. |
+
static void |
+writeSingleByte(OutputStream out,
+ int b)
+Implements OutputStream.write(int) in terms of OutputStream.write(byte[], int, int).
+ |
+
public static final byte[] EMPTY_BYTE_ARRAY+
public static final String[] EMPTY_STRING_ARRAY+
public static final Charset ISO_8859_1+
public static final Charset US_ASCII+
public static final Charset UTF_8+
public static int getEffectivePort(URI uri)+
public static int getEffectivePort(URL url)+
public static int getDefaultPort(String scheme)+
public static void checkOffsetAndCount(int arrayLength, + int offset, + int count)+
public static void pokeInt(byte[] dst, + int offset, + int value, + ByteOrder order)+
public static boolean equal(Object a, + Object b)+
public static void closeQuietly(Closeable closeable)+
closeable, ignoring any checked exceptions. Does nothing
+ if closeable is null.public static void closeQuietly(Socket socket)+
socket, ignoring any checked exceptions. Does nothing if
+ socket is null.public static void closeQuietly(ServerSocket serverSocket)+
serverSocket, ignoring any checked exceptions. Does nothing if
+ serverSocket is null.public static void closeAll(Closeable a, + Closeable b) + throws IOException+
a and b. If either close fails, this completes
+ the other close and rethrows the first encountered exception.IOExceptionpublic static void deleteContents(File dir) + throws IOException+
dir. Throws an IOException if any file
+ could not be deleted, or if dir is not a readable directory.IOExceptionpublic static int readSingleByte(InputStream in) + throws IOException+
IOExceptionpublic static void writeSingleByte(OutputStream out, + int b) + throws IOException+
IOExceptionpublic static void readFully(InputStream in, + byte[] dst) + throws IOException+
IOExceptionpublic static void readFully(InputStream in, + byte[] dst, + int offset, + int byteCount) + throws IOException+
DataInputStream.readFully(byte[], int, int).IOExceptionpublic static String readFully(Reader reader) + throws IOException+
IOExceptionpublic static void skipAll(InputStream in) + throws IOException+
IOExceptionpublic static long skipByReading(InputStream in, + long byteCount) + throws IOException+
in.read() repeatedly until either the stream is exhausted or
+ byteCount bytes have been read.
+
+ This method reuses the skip buffer but is careful to never use it at + the same time that another stream is using it. Otherwise streams that use + the caller's buffer for consistency checks like CRC could be clobbered by + other threads. A thread-local buffer is also insufficient because some + streams may call other streams in their skip() method, also clobbering the + buffer.
IOExceptionpublic static int copy(InputStream in, + OutputStream out) + throws IOException+
in to out. Neither stream is closed.
+ Returns the total number of bytes transferred.IOExceptionpublic static String readAsciiLine(InputStream in) + throws IOException+
EOFException - if the stream is exhausted before the next newline
+ character.IOExceptionpublic static String hash(String s)+
s.public static <T> List<T> immutableList(List<T> list)+
list.public static ThreadFactory daemonThreadFactory(String name)+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Base64.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Base64.html new file mode 100644 index 000000000..80feeede7 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Base64.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/NamedRunnable.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/NamedRunnable.html new file mode 100644 index 000000000..bb4b9065c --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/NamedRunnable.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Platform.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Platform.html new file mode 100644 index 000000000..7928546fc --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Platform.html @@ -0,0 +1,157 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
static Platform |
+Platform.get() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Util.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Util.html new file mode 100644 index 000000000..881bf40f0 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/class-use/Util.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-frame.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-frame.html new file mode 100644 index 000000000..06d7dba9a --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +| Class | +Description | +
|---|---|
| Base64 | +
+ Base64 encoder/decoder.
+ |
+
| NamedRunnable | +
+ Runnable implementation which always sets its thread name.
+ |
+
| Platform | +
+ Access to Platform-specific features necessary for SPDY and advanced TLS.
+ |
+
| Util | +
+ Junk drawer of utility methods.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-tree.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-tree.html new file mode 100644 index 000000000..8ff01ca29 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-use.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-use.html new file mode 100644 index 000000000..13cf7fce9 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/package-use.html @@ -0,0 +1,152 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| Class and Description | +
|---|
| Platform
+ Access to Platform-specific features necessary for SPDY and advanced TLS.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/ErrorCode.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/ErrorCode.html new file mode 100644 index 000000000..a4d540d5a --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/ErrorCode.html @@ -0,0 +1,583 @@ + + + + + + +public enum ErrorCode +extends Enum<ErrorCode>+
| Enum Constant and Description | +
|---|
CANCEL |
+
COMPRESSION_ERROR |
+
FLOW_CONTROL_ERROR |
+
FRAME_TOO_LARGE |
+
INTERNAL_ERROR |
+
INVALID_CREDENTIALS |
+
INVALID_STREAM
+A subtype of PROTOCOL_ERROR used by SPDY.
+ |
+
NO_ERROR
+Not an error! For SPDY stream resets, prefer null over NO_ERROR.
+ |
+
PROTOCOL_ERROR |
+
REFUSED_STREAM |
+
STREAM_ALREADY_CLOSED
+A subtype of PROTOCOL_ERROR used by SPDY.
+ |
+
STREAM_CLOSED |
+
STREAM_IN_USE
+A subtype of PROTOCOL_ERROR used by SPDY.
+ |
+
UNSUPPORTED_VERSION
+A subtype of PROTOCOL_ERROR used by SPDY.
+ |
+
| Modifier and Type | +Field and Description | +
|---|---|
int |
+httpCode |
+
int |
+spdyGoAwayCode |
+
int |
+spdyRstCode |
+
| Modifier and Type | +Method and Description | +
|---|---|
static ErrorCode |
+fromHttp2(int code) |
+
static ErrorCode |
+fromSpdy3Rst(int code) |
+
static ErrorCode |
+fromSpdyGoAway(int code) |
+
static ErrorCode |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static ErrorCode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final ErrorCode NO_ERROR+
public static final ErrorCode PROTOCOL_ERROR+
public static final ErrorCode INVALID_STREAM+
public static final ErrorCode UNSUPPORTED_VERSION+
public static final ErrorCode STREAM_IN_USE+
public static final ErrorCode STREAM_ALREADY_CLOSED+
public static final ErrorCode INTERNAL_ERROR+
public static final ErrorCode FLOW_CONTROL_ERROR+
public static final ErrorCode STREAM_CLOSED+
public static final ErrorCode FRAME_TOO_LARGE+
public static final ErrorCode REFUSED_STREAM+
public static final ErrorCode CANCEL+
public static final ErrorCode COMPRESSION_ERROR+
public static final ErrorCode INVALID_CREDENTIALS+
public final int httpCode+
public final int spdyRstCode+
public final int spdyGoAwayCode+
public static ErrorCode[] values()+
+for (ErrorCode c : ErrorCode.values()) + System.out.println(c); +
public static ErrorCode valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullpublic static ErrorCode fromSpdy3Rst(int code)+
public static ErrorCode fromHttp2(int code)+
public static ErrorCode fromSpdyGoAway(int code)+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameReader.Handler.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameReader.Handler.html new file mode 100644 index 000000000..adf7237a9 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameReader.Handler.html @@ -0,0 +1,363 @@ + + + + + + +public static interface FrameReader.Handler
+| Modifier and Type | +Method and Description | +
|---|---|
void |
+data(boolean inFinished,
+ int streamId,
+ InputStream in,
+ int length) |
+
void |
+goAway(int lastGoodStreamId,
+ ErrorCode errorCode) |
+
void |
+headers(boolean outFinished,
+ boolean inFinished,
+ int streamId,
+ int associatedStreamId,
+ int priority,
+ List<String> nameValueBlock,
+ com.squareup.okhttp.internal.spdy.HeadersMode headersMode)
+Create or update incoming headers, creating the corresponding streams
+ if necessary.
+ |
+
void |
+noop() |
+
void |
+ping(boolean reply,
+ int payload1,
+ int payload2) |
+
void |
+priority(int streamId,
+ int priority) |
+
void |
+rstStream(int streamId,
+ ErrorCode errorCode) |
+
void |
+settings(boolean clearPrevious,
+ com.squareup.okhttp.internal.spdy.Settings settings) |
+
void |
+windowUpdate(int streamId,
+ int deltaWindowSize,
+ boolean endFlowControl) |
+
void data(boolean inFinished, + int streamId, + InputStream in, + int length) + throws IOException+
IOExceptionvoid headers(boolean outFinished, + boolean inFinished, + int streamId, + int associatedStreamId, + int priority, + List<String> nameValueBlock, + com.squareup.okhttp.internal.spdy.HeadersMode headersMode)+
inFinished - true if the sender will not send further frames.outFinished - true if the receiver should not send further frames.streamId - the stream owning these headers.associatedStreamId - the stream that triggered the sender to create
+ this stream.priority - or -1 for no priority. For SPDY, priorities range from 0
+ (highest) thru 7 (lowest). For HTTP/2.0, priorities range from 0
+ (highest) thru 2**31-1 (lowest).void rstStream(int streamId, + ErrorCode errorCode)+
void settings(boolean clearPrevious, + com.squareup.okhttp.internal.spdy.Settings settings)+
void noop()+
void ping(boolean reply, + int payload1, + int payload2)+
void goAway(int lastGoodStreamId, + ErrorCode errorCode)+
void windowUpdate(int streamId, + int deltaWindowSize, + boolean endFlowControl)+
void priority(int streamId, + int priority)+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameReader.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameReader.html new file mode 100644 index 000000000..220ce87ce --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameReader.html @@ -0,0 +1,259 @@ + + + + + + +public interface FrameReader +extends Closeable+
| Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+FrameReader.Handler |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+nextFrame(FrameReader.Handler handler) |
+
void |
+readConnectionHeader() |
+
void readConnectionHeader() + throws IOException+
IOExceptionboolean nextFrame(FrameReader.Handler handler) + throws IOException+
IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameWriter.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameWriter.html new file mode 100644 index 000000000..dd30f01b6 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/FrameWriter.html @@ -0,0 +1,462 @@ + + + + + + +public interface FrameWriter +extends Closeable+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+connectionHeader()
+HTTP/2.0 only.
+ |
+
void |
+data(boolean outFinished,
+ int streamId,
+ byte[] data) |
+
void |
+data(boolean outFinished,
+ int streamId,
+ byte[] data,
+ int offset,
+ int byteCount) |
+
void |
+flush()
+SPDY/3 only.
+ |
+
void |
+goAway(int lastGoodStreamId,
+ ErrorCode errorCode) |
+
void |
+headers(int streamId,
+ List<String> nameValueBlock) |
+
void |
+noop() |
+
void |
+ping(boolean reply,
+ int payload1,
+ int payload2) |
+
void |
+rstStream(int streamId,
+ ErrorCode errorCode) |
+
void |
+settings(com.squareup.okhttp.internal.spdy.Settings settings) |
+
void |
+synReply(boolean outFinished,
+ int streamId,
+ List<String> nameValueBlock) |
+
void |
+synStream(boolean outFinished,
+ boolean inFinished,
+ int streamId,
+ int associatedStreamId,
+ int priority,
+ int slot,
+ List<String> nameValueBlock) |
+
void |
+windowUpdate(int streamId,
+ int deltaWindowSize) |
+
void connectionHeader() + throws IOException+
IOExceptionvoid flush() + throws IOException+
IOExceptionvoid synStream(boolean outFinished, + boolean inFinished, + int streamId, + int associatedStreamId, + int priority, + int slot, + List<String> nameValueBlock) + throws IOException+
IOExceptionvoid synReply(boolean outFinished, + int streamId, + List<String> nameValueBlock) + throws IOException+
IOExceptionvoid headers(int streamId, + List<String> nameValueBlock) + throws IOException+
IOExceptionvoid rstStream(int streamId, + ErrorCode errorCode) + throws IOException+
IOExceptionvoid data(boolean outFinished, + int streamId, + byte[] data) + throws IOException+
IOExceptionvoid data(boolean outFinished, + int streamId, + byte[] data, + int offset, + int byteCount) + throws IOException+
IOExceptionvoid settings(com.squareup.okhttp.internal.spdy.Settings settings) + throws IOException+
IOExceptionvoid noop() + throws IOException+
IOExceptionvoid ping(boolean reply, + int payload1, + int payload2) + throws IOException+
IOExceptionvoid goAway(int lastGoodStreamId, + ErrorCode errorCode) + throws IOException+
IOExceptionvoid windowUpdate(int streamId, + int deltaWindowSize) + throws IOException+
IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/IncomingStreamHandler.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/IncomingStreamHandler.html new file mode 100644 index 000000000..de86a9fad --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/IncomingStreamHandler.html @@ -0,0 +1,254 @@ + + + + + + +public interface IncomingStreamHandler
+| Modifier and Type | +Field and Description | +
|---|---|
static IncomingStreamHandler |
+REFUSE_INCOMING_STREAMS |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+receive(SpdyStream stream)
+Handle a new stream from this connection's peer.
+ |
+
static final IncomingStreamHandler REFUSE_INCOMING_STREAMS+
void receive(SpdyStream stream) + throws IOException+
replying to the stream or
+ closing it. This response does not need to be
+ synchronous.IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/Ping.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/Ping.html new file mode 100644 index 000000000..aaab886ac --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/Ping.html @@ -0,0 +1,259 @@ + + + + + + +public final class Ping +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+roundTripTime()
+Returns the round trip time for this ping in nanoseconds, waiting for the
+ response to arrive if necessary.
+ |
+
long |
+roundTripTime(long timeout,
+ TimeUnit unit)
+Returns the round trip time for this ping in nanoseconds, or -1 if the
+ response was cancelled, or -2 if the timeout elapsed before the round
+ trip completed.
+ |
+
public long roundTripTime() + throws InterruptedException+
InterruptedExceptionpublic long roundTripTime(long timeout, + TimeUnit unit) + throws InterruptedException+
InterruptedExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyConnection.Builder.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyConnection.Builder.html new file mode 100644 index 000000000..7cdc04704 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyConnection.Builder.html @@ -0,0 +1,363 @@ + + + + + + +public static class SpdyConnection.Builder +extends Object+
| Constructor and Description | +
|---|
SpdyConnection.Builder(boolean client,
+ InputStream in,
+ OutputStream out) |
+
SpdyConnection.Builder(boolean client,
+ Socket socket) |
+
SpdyConnection.Builder(String hostName,
+ boolean client,
+ InputStream in,
+ OutputStream out) |
+
SpdyConnection.Builder(String hostName,
+ boolean client,
+ Socket socket) |
+
| Modifier and Type | +Method and Description | +
|---|---|
SpdyConnection |
+build() |
+
SpdyConnection.Builder |
+handler(IncomingStreamHandler handler) |
+
SpdyConnection.Builder |
+http20Draft06() |
+
SpdyConnection.Builder |
+spdy3() |
+
public SpdyConnection.Builder(boolean client, + Socket socket) + throws IOException+
IOExceptionpublic SpdyConnection.Builder(boolean client, + InputStream in, + OutputStream out)+
public SpdyConnection.Builder(String hostName, + boolean client, + Socket socket) + throws IOException+
client - true if this peer initiated the connection; false if
+ this peer accepted the connection.IOExceptionpublic SpdyConnection.Builder(String hostName, + boolean client, + InputStream in, + OutputStream out)+
client - true if this peer initiated the connection; false if this
+ peer accepted the connection.public SpdyConnection.Builder handler(IncomingStreamHandler handler)+
public SpdyConnection.Builder spdy3()+
public SpdyConnection.Builder http20Draft06()+
public SpdyConnection build()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyConnection.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyConnection.html new file mode 100644 index 000000000..63aa00697 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyConnection.html @@ -0,0 +1,488 @@ + + + + + + +public final class SpdyConnection +extends Object +implements Closeable+
Many methods in this API are synchronous: the call is + completed before the method returns. This is typical for Java but atypical + for SPDY. This is motivated by exception transparency: an IOException that + was triggered by a certain caller can be caught and handled by that caller.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SpdyConnection.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close()
+Closes this connection.
+ |
+
void |
+flush() |
+
long |
+getIdleStartTimeNs()
+Returns the time in ns when this connection became idle or Long.MAX_VALUE
+ if connection is not idle.
+ |
+
boolean |
+isIdle()
+Returns true if this connection is idle.
+ |
+
SpdyStream |
+newStream(List<String> requestHeaders,
+ boolean out,
+ boolean in)
+Returns a new locally-initiated stream.
+ |
+
void |
+noop()
+Sends a noop frame to the peer.
+ |
+
int |
+openStreamCount()
+Returns the number of
+open streams on this
+ connection. |
+
Ping |
+ping()
+Sends a ping frame to the peer.
+ |
+
void |
+readConnectionHeader()
+Reads a connection header if the current variant requires it.
+ |
+
void |
+sendConnectionHeader()
+Sends a connection header if the current variant requires it.
+ |
+
void |
+shutdown(ErrorCode statusCode)
+Degrades this connection such that new streams can neither be created
+ locally, nor accepted from the remote peer.
+ |
+
void |
+writeData(int streamId,
+ boolean outFinished,
+ byte[] buffer,
+ int offset,
+ int byteCount) |
+
public int openStreamCount()+
open streams on this
+ connection.public boolean isIdle()+
public long getIdleStartTimeNs()+
public SpdyStream newStream(List<String> requestHeaders, + boolean out, + boolean in) + throws IOException+
out - true to create an output stream that we can use to send data
+ to the remote peer. Corresponds to FLAG_FIN.in - true to create an input stream that the remote peer can use to
+ send data to us. Corresponds to FLAG_UNIDIRECTIONAL.IOExceptionpublic void writeData(int streamId, + boolean outFinished, + byte[] buffer, + int offset, + int byteCount) + throws IOException+
IOExceptionpublic Ping ping() + throws IOException+
IOExceptionpublic void noop() + throws IOException+
IOExceptionpublic void flush() + throws IOException+
IOExceptionpublic void shutdown(ErrorCode statusCode) + throws IOException+
IOExceptionpublic void close() + throws IOException+
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void sendConnectionHeader() + throws IOException+
SpdyConnection.Builder.build() for all new connections.IOExceptionpublic void readConnectionHeader() + throws IOException+
SpdyConnection.Builder.build() for all new connections.IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyStream.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyStream.html new file mode 100644 index 000000000..99bb6c99e --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/SpdyStream.html @@ -0,0 +1,486 @@ + + + + + + +public final class SpdyStream +extends Object+
| Modifier and Type | +Field and Description | +
|---|---|
static int |
+WINDOW_UPDATE_THRESHOLD
+The number of unacknowledged bytes at which the input stream will send
+ the peer a
+WINDOW_UPDATE frame. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close(ErrorCode rstStatusCode)
+Abnormally terminate this stream.
+ |
+
void |
+closeLater(ErrorCode errorCode)
+Abnormally terminate this stream.
+ |
+
SpdyConnection |
+getConnection() |
+
ErrorCode |
+getErrorCode()
+Returns the reason why this stream was closed, or null if it closed
+ normally or has not yet been closed.
+ |
+
InputStream |
+getInputStream()
+Returns an input stream that can be used to read data from the peer.
+ |
+
OutputStream |
+getOutputStream()
+Returns an output stream that can be used to write data to the peer.
+ |
+
long |
+getReadTimeoutMillis() |
+
List<String> |
+getRequestHeaders() |
+
List<String> |
+getResponseHeaders()
+Returns the stream's response headers, blocking if necessary if they
+ have not been received yet.
+ |
+
boolean |
+isLocallyInitiated()
+Returns true if this stream was created by this peer.
+ |
+
boolean |
+isOpen()
+Returns true if this stream is open.
+ |
+
void |
+reply(List<String> responseHeaders,
+ boolean out)
+Sends a reply to an incoming stream.
+ |
+
void |
+setReadTimeout(long readTimeoutMillis)
+Sets the maximum time to wait on input stream reads before failing with a
+
+SocketTimeoutException, or 0 to wait indefinitely. |
+
public static final int WINDOW_UPDATE_THRESHOLD+
WINDOW_UPDATE frame. Must be less than this client's
+ window size, otherwise the remote peer will stop sending data on this
+ stream. (Chrome 25 uses 5 MiB.)public boolean isOpen()+
SYN_RESET frame abnormally terminates the stream.
+ public boolean isLocallyInitiated()+
public SpdyConnection getConnection()+
public List<String> getResponseHeaders() + throws IOException+
IOExceptionpublic ErrorCode getErrorCode()+
public void reply(List<String> responseHeaders, + boolean out) + throws IOException+
out - true to create an output stream that we can use to send data
+ to the remote peer. Corresponds to FLAG_FIN.IOExceptionpublic void setReadTimeout(long readTimeoutMillis)+
SocketTimeoutException, or 0 to wait indefinitely.public long getReadTimeoutMillis()+
public InputStream getInputStream()+
public OutputStream getOutputStream()+
IllegalStateException - if this stream was initiated by the peer
+ and a reply(java.util.List<java.lang.String>, boolean) has not yet been sent.public void close(ErrorCode rstStatusCode) + throws IOException+
RST_STREAM
+ frame has been transmitted.IOExceptionpublic void closeLater(ErrorCode errorCode)+
RST_STREAM
+ frame and returns immediately.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/ErrorCode.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/ErrorCode.html new file mode 100644 index 000000000..2a779503f --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/ErrorCode.html @@ -0,0 +1,233 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
static ErrorCode |
+ErrorCode.fromHttp2(int code) |
+
static ErrorCode |
+ErrorCode.fromSpdy3Rst(int code) |
+
static ErrorCode |
+ErrorCode.fromSpdyGoAway(int code) |
+
ErrorCode |
+SpdyStream.getErrorCode()
+Returns the reason why this stream was closed, or null if it closed
+ normally or has not yet been closed.
+ |
+
static ErrorCode |
+ErrorCode.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static ErrorCode[] |
+ErrorCode.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+SpdyStream.close(ErrorCode rstStatusCode)
+Abnormally terminate this stream.
+ |
+
void |
+SpdyStream.closeLater(ErrorCode errorCode)
+Abnormally terminate this stream.
+ |
+
void |
+FrameWriter.goAway(int lastGoodStreamId,
+ ErrorCode errorCode) |
+
void |
+FrameReader.Handler.goAway(int lastGoodStreamId,
+ ErrorCode errorCode) |
+
void |
+FrameWriter.rstStream(int streamId,
+ ErrorCode errorCode) |
+
void |
+FrameReader.Handler.rstStream(int streamId,
+ ErrorCode errorCode) |
+
void |
+SpdyConnection.shutdown(ErrorCode statusCode)
+Degrades this connection such that new streams can neither be created
+ locally, nor accepted from the remote peer.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameReader.Handler.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameReader.Handler.html new file mode 100644 index 000000000..fa4d14ced --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameReader.Handler.html @@ -0,0 +1,157 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+FrameReader.nextFrame(FrameReader.Handler handler) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameReader.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameReader.html new file mode 100644 index 000000000..336cb0892 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameReader.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameWriter.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameWriter.html new file mode 100644 index 000000000..5bfe2c27b --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/FrameWriter.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/IncomingStreamHandler.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/IncomingStreamHandler.html new file mode 100644 index 000000000..ec17f9cac --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/IncomingStreamHandler.html @@ -0,0 +1,170 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Field and Description | +
|---|---|
static IncomingStreamHandler |
+IncomingStreamHandler.REFUSE_INCOMING_STREAMS |
+
| Modifier and Type | +Method and Description | +
|---|---|
SpdyConnection.Builder |
+SpdyConnection.Builder.handler(IncomingStreamHandler handler) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/Ping.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/Ping.html new file mode 100644 index 000000000..fef8fee29 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/Ping.html @@ -0,0 +1,159 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
Ping |
+SpdyConnection.ping()
+Sends a ping frame to the peer.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyConnection.Builder.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyConnection.Builder.html new file mode 100644 index 000000000..73a91343c --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyConnection.Builder.html @@ -0,0 +1,165 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SpdyConnection.Builder |
+SpdyConnection.Builder.handler(IncomingStreamHandler handler) |
+
SpdyConnection.Builder |
+SpdyConnection.Builder.http20Draft06() |
+
SpdyConnection.Builder |
+SpdyConnection.Builder.spdy3() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyConnection.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyConnection.html new file mode 100644 index 000000000..a6cf05402 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyConnection.html @@ -0,0 +1,161 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SpdyConnection |
+SpdyConnection.Builder.build() |
+
SpdyConnection |
+SpdyStream.getConnection() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyStream.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyStream.html new file mode 100644 index 000000000..b55b56a56 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/class-use/SpdyStream.html @@ -0,0 +1,176 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SpdyStream |
+SpdyConnection.newStream(List<String> requestHeaders,
+ boolean out,
+ boolean in)
+Returns a new locally-initiated stream.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+IncomingStreamHandler.receive(SpdyStream stream)
+Handle a new stream from this connection's peer.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-frame.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-frame.html new file mode 100644 index 000000000..b6b8e3b9c --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-frame.html @@ -0,0 +1,34 @@ + + + + + + +| Interface | +Description | +
|---|---|
| FrameReader | +
+ Reads transport frames for SPDY/3 or HTTP/2.0.
+ |
+
| FrameReader.Handler | ++ |
| FrameWriter | +
+ Writes transport frames for SPDY/3 or HTTP/2.0.
+ |
+
| IncomingStreamHandler | +
+ Listener to be notified when a connected peer creates a new stream.
+ |
+
| Class | +Description | +
|---|---|
| Ping | +
+ A locally-originated ping.
+ |
+
| SpdyConnection | +
+ A socket connection to a remote peer.
+ |
+
| SpdyConnection.Builder | ++ |
| SpdyStream | +
+ A logical bidirectional stream.
+ |
+
| Enum | +Description | +
|---|---|
| ErrorCode | ++ |
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-tree.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-tree.html new file mode 100644 index 000000000..9764375e0 --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-tree.html @@ -0,0 +1,160 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-use.html b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-use.html new file mode 100644 index 000000000..7eafbb4ae --- /dev/null +++ b/1.x/okhttp-protocols/com/squareup/okhttp/internal/spdy/package-use.html @@ -0,0 +1,176 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.spdy | ++ |
| Class and Description | +
|---|
| ErrorCode | +
| FrameReader.Handler | +
| IncomingStreamHandler
+ Listener to be notified when a connected peer creates a new stream.
+ |
+
| Ping
+ A locally-originated ping.
+ |
+
| SpdyConnection
+ A socket connection to a remote peer.
+ |
+
| SpdyConnection.Builder | +
| SpdyStream
+ A logical bidirectional stream.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/constant-values.html b/1.x/okhttp-protocols/constant-values.html new file mode 100644 index 000000000..ea497a859 --- /dev/null +++ b/1.x/okhttp-protocols/constant-values.html @@ -0,0 +1,146 @@ + + + + + + +| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+WINDOW_UPDATE_THRESHOLD |
+32768 |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/deprecated-list.html b/1.x/okhttp-protocols/deprecated-list.html new file mode 100644 index 000000000..ad43a4ae9 --- /dev/null +++ b/1.x/okhttp-protocols/deprecated-list.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/help-doc.html b/1.x/okhttp-protocols/help-doc.html new file mode 100644 index 000000000..727eed89f --- /dev/null +++ b/1.x/okhttp-protocols/help-doc.html @@ -0,0 +1,222 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/index-all.html b/1.x/okhttp-protocols/index-all.html new file mode 100644 index 000000000..210126a9a --- /dev/null +++ b/1.x/okhttp-protocols/index-all.html @@ -0,0 +1,631 @@ + + + + + + +a and b.closeable, ignoring any checked exceptions.socket, ignoring any checked exceptions.serverSocket, ignoring any checked exceptions.in to out.dir.s.list.open streams on this
+ connection.SocketTimeoutException, or 0 to wait indefinitely.in.read() repeatedly until either the stream is exhausted or
+ byteCount bytes have been read.WINDOW_UPDATE frame.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/index.html b/1.x/okhttp-protocols/index.html new file mode 100644 index 000000000..0855ea921 --- /dev/null +++ b/1.x/okhttp-protocols/index.html @@ -0,0 +1,34 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
++ + diff --git a/1.x/okhttp-protocols/overview-summary.html b/1.x/okhttp-protocols/overview-summary.html new file mode 100644 index 000000000..0cb7c9b17 --- /dev/null +++ b/1.x/okhttp-protocols/overview-summary.html @@ -0,0 +1,135 @@ + + + + + + +
| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| com.squareup.okhttp.internal.spdy | ++ |
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/overview-tree.html b/1.x/okhttp-protocols/overview-tree.html new file mode 100644 index 000000000..8071345d0 --- /dev/null +++ b/1.x/okhttp-protocols/overview-tree.html @@ -0,0 +1,167 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-protocols/package-list b/1.x/okhttp-protocols/package-list new file mode 100644 index 000000000..2b04f6721 --- /dev/null +++ b/1.x/okhttp-protocols/package-list @@ -0,0 +1,2 @@ +com.squareup.okhttp.internal +com.squareup.okhttp.internal.spdy diff --git a/1.x/okhttp-protocols/resources/background.gif b/1.x/okhttp-protocols/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp-protocols/resources/background.gif differ diff --git a/1.x/okhttp-protocols/resources/tab.gif b/1.x/okhttp-protocols/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp-protocols/resources/tab.gif differ diff --git a/1.x/okhttp-protocols/resources/titlebar.gif b/1.x/okhttp-protocols/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp-protocols/resources/titlebar.gif differ diff --git a/1.x/okhttp-protocols/resources/titlebar_end.gif b/1.x/okhttp-protocols/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp-protocols/resources/titlebar_end.gif differ diff --git a/1.x/okhttp-protocols/stylesheet.css b/1.x/okhttp-protocols/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp-protocols/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp-protocols/version.txt b/1.x/okhttp-protocols/version.txt new file mode 100644 index 000000000..589268e6f --- /dev/null +++ b/1.x/okhttp-protocols/version.txt @@ -0,0 +1 @@ +1.3.0 \ No newline at end of file diff --git a/1.x/okhttp-tests/META-INF/MANIFEST.MF b/1.x/okhttp-tests/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp-tests/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp-tests/version.txt b/1.x/okhttp-tests/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp-tests/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp-urlconnection/META-INF/MANIFEST.MF b/1.x/okhttp-urlconnection/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp-urlconnection/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp-urlconnection/allclasses-frame.html b/1.x/okhttp-urlconnection/allclasses-frame.html new file mode 100644 index 000000000..fd11c541a --- /dev/null +++ b/1.x/okhttp-urlconnection/allclasses-frame.html @@ -0,0 +1,19 @@ + + + + + + +public final class OkUrlFactory +extends Object +implements URLStreamHandlerFactory, Cloneable+
| Constructor and Description | +
|---|
OkUrlFactory(OkHttpClient client) |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+client() |
+
OkUrlFactory |
+clone()
+Returns a copy of this stream handler factory that includes a shallow copy
+ of the internal HTTP client.
+ |
+
URLStreamHandler |
+createURLStreamHandler(String protocol)
+Creates a URLStreamHandler as a
+URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory). |
+
HttpURLConnection |
+open(URL url) |
+
public OkUrlFactory(OkHttpClient client)+
public OkHttpClient client()+
public OkUrlFactory clone()+
public HttpURLConnection open(URL url)+
public URLStreamHandler createURLStreamHandler(String protocol)+
URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).
+
+ This code configures OkHttp to handle all HTTP and HTTPS connections
+ created with URL.openConnection():
OkHttpClient okHttpClient = new OkHttpClient();
+ URL.setURLStreamHandlerFactory(new OkUrlFactory(okHttpClient));
+ createURLStreamHandler in interface URLStreamHandlerFactoryCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html new file mode 100644 index 000000000..4254c9b0d --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html @@ -0,0 +1,143 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkUrlFactory |
+OkUrlFactory.clone()
+Returns a copy of this stream handler factory that includes a shallow copy
+ of the internal HTTP client.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..8e8f612bf --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkUrlFactory | ++ |
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..519ae0a63 --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..43c949ebb --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html @@ -0,0 +1,133 @@ + + + + + + +| Class and Description | +
|---|
| OkUrlFactory | +
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/constant-values.html b/1.x/okhttp-urlconnection/constant-values.html new file mode 100644 index 000000000..4afd10a95 --- /dev/null +++ b/1.x/okhttp-urlconnection/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/deprecated-list.html b/1.x/okhttp-urlconnection/deprecated-list.html new file mode 100644 index 000000000..907df337f --- /dev/null +++ b/1.x/okhttp-urlconnection/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/help-doc.html b/1.x/okhttp-urlconnection/help-doc.html new file mode 100644 index 000000000..c3c1ad70b --- /dev/null +++ b/1.x/okhttp-urlconnection/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/index-all.html b/1.x/okhttp-urlconnection/index-all.html new file mode 100644 index 000000000..c1be832ec --- /dev/null +++ b/1.x/okhttp-urlconnection/index-all.html @@ -0,0 +1,143 @@ + + + + + + +URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/index.html b/1.x/okhttp-urlconnection/index.html new file mode 100644 index 000000000..a63a3b49c --- /dev/null +++ b/1.x/okhttp-urlconnection/index.html @@ -0,0 +1,65 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/package-list b/1.x/okhttp-urlconnection/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/1.x/okhttp-urlconnection/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/1.x/okhttp-urlconnection/resources/background.gif b/1.x/okhttp-urlconnection/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/background.gif differ diff --git a/1.x/okhttp-urlconnection/resources/tab.gif b/1.x/okhttp-urlconnection/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/tab.gif differ diff --git a/1.x/okhttp-urlconnection/resources/titlebar.gif b/1.x/okhttp-urlconnection/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/titlebar.gif differ diff --git a/1.x/okhttp-urlconnection/resources/titlebar_end.gif b/1.x/okhttp-urlconnection/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/titlebar_end.gif differ diff --git a/1.x/okhttp-urlconnection/stylesheet.css b/1.x/okhttp-urlconnection/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp-urlconnection/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp-urlconnection/version.txt b/1.x/okhttp-urlconnection/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp-urlconnection/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp/META-INF/MANIFEST.MF b/1.x/okhttp/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp/allclasses-frame.html b/1.x/okhttp/allclasses-frame.html new file mode 100644 index 000000000..4dd63e89c --- /dev/null +++ b/1.x/okhttp/allclasses-frame.html @@ -0,0 +1,36 @@ + + + + + + +public final class Address +extends Object+
no proxy is explicitly requested), this also includes
+ that proxy information. For secure connections the address also includes the
+ SSL socket factory and hostname verifier.
+
+ HTTP requests that share the same Address may also share the same
+ Connection.
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ OkAuthenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object other) |
+
OkAuthenticator |
+getAuthenticator()
+Returns the client's authenticator.
+ |
+
HostnameVerifier |
+getHostnameVerifier()
+Returns the hostname verifier, or null if this is not an HTTPS
+ address.
+ |
+
List<Protocol> |
+getProtocols()
+Returns the protocols the client supports.
+ |
+
Proxy |
+getProxy()
+Returns this address's explicitly-specified HTTP proxy, or null to
+ delegate to the HTTP client's proxy selector.
+ |
+
SSLSocketFactory |
+getSslSocketFactory()
+Returns the SSL socket factory, or null if this is not an HTTPS
+ address.
+ |
+
String |
+getUriHost()
+Returns the hostname of the origin server.
+ |
+
int |
+getUriPort()
+Returns the port of the origin server; typically 80 or 443.
+ |
+
int |
+hashCode() |
+
public Address(String uriHost, + int uriPort, + SSLSocketFactory sslSocketFactory, + HostnameVerifier hostnameVerifier, + OkAuthenticator authenticator, + Proxy proxy, + List<Protocol> protocols) + throws UnknownHostException+
UnknownHostExceptionpublic String getUriHost()+
public int getUriPort()+
getPort() accessors, this method never returns -1.public SSLSocketFactory getSslSocketFactory()+
public HostnameVerifier getHostnameVerifier()+
public OkAuthenticator getAuthenticator()+
public List<Protocol> getProtocols()+
Protocol.HTTP_11.public Proxy getProxy()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Cache.html b/1.x/okhttp/com/squareup/okhttp/Cache.html new file mode 100644 index 000000000..cc12476f6 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Cache.html @@ -0,0 +1,661 @@ + + + + + + + +public class Cache +extends ResponseCache +implements OkResponseCache+
Request Count: the number
+ of HTTP requests issued since this cache was created.
+ Network Count: the
+ number of those requests that required network use.
+ Hit Count: the number of
+ those requests whose responses were served by the cache.
+ GET. The server will then send either the updated response if it has
+ changed, or a short 'not modified' response if the client's copy is still
+ valid. Such responses increment both the network count and hit count.
+
+ The best way to improve the cache hit rate is by configuring the web + server to return cacheable responses. Although this client honors all HTTP/1.1 (RFC 2068) cache + headers, it doesn't cache partial responses. + +
no-cache directive: connection.addRequestProperty("Cache-Control", "no-cache");
+
+ If it is only necessary to force a cached response to be validated by the
+ server, use the more efficient max-age=0 instead: connection.addRequestProperty("Cache-Control", "max-age=0");
+
+
+ only-if-cached directive: try {
+ connection.addRequestProperty("Cache-Control", "only-if-cached");
+ InputStream cached = connection.getInputStream();
+ // the resource was cached! show it
+ } catch (FileNotFoundException e) {
+ // the resource was not cached
+ }
+
+ This technique works even better in situations where a stale response is
+ better than no response. To permit stale cached responses, use the max-stale directive with the maximum staleness in seconds: int maxStale = 60 * 60 * 24 * 28; // tolerate 4-weeks stale
+ connection.addRequestProperty("Cache-Control", "max-stale=" + maxStale);
+ | Constructor and Description | +
|---|
Cache(File directory,
+ long maxSize) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close() |
+
void |
+delete()
+Closes the cache and deletes all of its stored values.
+ |
+
void |
+flush() |
+
com.squareup.okhttp.internal.http.Response |
+get(com.squareup.okhttp.internal.http.Request request) |
+
CacheResponse |
+get(URI uri,
+ String s,
+ Map<String,List<String>> stringListMap) |
+
File |
+getDirectory() |
+
int |
+getHitCount() |
+
long |
+getMaxSize() |
+
int |
+getNetworkCount() |
+
int |
+getRequestCount() |
+
long |
+getSize() |
+
int |
+getWriteAbortCount() |
+
int |
+getWriteSuccessCount() |
+
boolean |
+isClosed() |
+
boolean |
+maybeRemove(com.squareup.okhttp.internal.http.Request request)
+Remove any cache entries for the supplied
+uri. |
+
CacheRequest |
+put(com.squareup.okhttp.internal.http.Response response) |
+
CacheRequest |
+put(URI uri,
+ URLConnection urlConnection) |
+
void |
+trackConditionalCacheHit()
+Track an conditional GET that was satisfied by this cache.
+ |
+
void |
+trackResponse(ResponseSource source)
+Track an HTTP response being satisfied by
+source. |
+
void |
+update(com.squareup.okhttp.internal.http.Response cached,
+ com.squareup.okhttp.internal.http.Response network)
+Handles a conditional request hit by updating the stored cache response
+ with the headers from
+network. |
+
getDefault, setDefaultpublic Cache(File directory, + long maxSize) + throws IOException+
IOExceptionpublic CacheResponse get(URI uri, + String s, + Map<String,List<String>> stringListMap) + throws IOException+
get in class ResponseCacheIOExceptionpublic CacheRequest put(URI uri, + URLConnection urlConnection) + throws IOException+
put in class ResponseCacheIOExceptionpublic com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request)+
get in interface OkResponseCachepublic CacheRequest put(com.squareup.okhttp.internal.http.Response response) + throws IOException+
put in interface OkResponseCacheIOExceptionpublic boolean maybeRemove(com.squareup.okhttp.internal.http.Request request)+
OkResponseCacheuri. Returns true if the
+ supplied requestMethod potentially invalidates an entry in the
+ cache.maybeRemove in interface OkResponseCachepublic void update(com.squareup.okhttp.internal.http.Response cached, + com.squareup.okhttp.internal.http.Response network)+
OkResponseCachenetwork. The cached response body is not
+ updated. If the stored response has changed since cached was
+ returned, this does nothing.update in interface OkResponseCachepublic void delete() + throws IOException+
IOExceptionpublic int getWriteAbortCount()+
public int getWriteSuccessCount()+
public long getSize()+
public long getMaxSize()+
public void flush() + throws IOException+
IOExceptionpublic void close() + throws IOException+
IOExceptionpublic File getDirectory()+
public boolean isClosed()+
public void trackResponse(ResponseSource source)+
OkResponseCachesource.trackResponse in interface OkResponseCachepublic void trackConditionalCacheHit()+
OkResponseCachetrackConditionalCacheHit in interface OkResponseCachepublic int getNetworkCount()+
public int getHitCount()+
public int getRequestCount()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/CacheControl.html b/1.x/okhttp/com/squareup/okhttp/CacheControl.html new file mode 100644 index 000000000..e125a4672 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/CacheControl.html @@ -0,0 +1,378 @@ + + + + + + + +public final class CacheControl +extends Object+
See RFC + 2616, 14.9.
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+isPublic() |
+
int |
+maxAgeSeconds()
+The duration past the response's served date that it can be served without
+ validation.
+ |
+
int |
+maxStaleSeconds() |
+
int |
+minFreshSeconds() |
+
boolean |
+mustRevalidate() |
+
boolean |
+noCache()
+In a response, this field's name "no-cache" is misleading.
+ |
+
boolean |
+noStore()
+If true, this response should not be cached.
+ |
+
boolean |
+onlyIfCached()
+This field's name "only-if-cached" is misleading.
+ |
+
static CacheControl |
+parse(com.squareup.okhttp.internal.http.Headers headers)
+Returns the cache directives of
+headers. |
+
int |
+sMaxAgeSeconds()
+The "s-maxage" directive is the max age for shared caches.
+ |
+
public boolean noCache()+
In a request, it means do not use a cache to satisfy the request.
public boolean noStore()+
public int maxAgeSeconds()+
public int sMaxAgeSeconds()+
public boolean isPublic()+
public boolean mustRevalidate()+
public int maxStaleSeconds()+
public int minFreshSeconds()+
public boolean onlyIfCached()+
public static CacheControl parse(com.squareup.okhttp.internal.http.Headers headers)+
headers. This honors both
+ Cache-Control and Pragma headers if they are present.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Connection.html b/1.x/okhttp/com/squareup/okhttp/Connection.html new file mode 100644 index 000000000..b03fb63fd --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Connection.html @@ -0,0 +1,676 @@ + + + + + + + +public final class Connection +extends Object +implements Closeable+
Typically instances of this class are created, connected and exercised
+ automatically by the HTTP client. Applications may use this class to monitor
+ HTTP connections as members of a connection pool.
+
+
Do not confuse this class with the misnamed HttpURLConnection,
+ which isn't so much a connection as a single request/response exchange.
+
+
| Constructor and Description | +
|---|
Connection(ConnectionPool pool,
+ Route route) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+clearOwner()
+Attempts to clears the owner of this connection.
+ |
+
void |
+close() |
+
void |
+closeIfOwnedBy(Object owner)
+Closes this connection if it is currently owned by
+owner. |
+
void |
+connect(int connectTimeout,
+ int readTimeout,
+ TunnelRequest tunnelRequest) |
+
Handshake |
+getHandshake() |
+
int |
+getHttpMinorVersion()
+Returns the minor HTTP version that should be used for future requests on
+ this connection.
+ |
+
long |
+getIdleStartTimeNs()
+Returns the time in ns when this connection became idle.
+ |
+
Object |
+getOwner() |
+
Route |
+getRoute()
+Returns the route used by this connection.
+ |
+
Socket |
+getSocket()
+Returns the socket that this connection uses, or null if the connection
+ is not currently connected.
+ |
+
void |
+incrementRecycleCount() |
+
boolean |
+isAlive()
+Returns true if this connection is alive.
+ |
+
boolean |
+isConnected()
+Returns true if
+connect(int, int, com.squareup.okhttp.TunnelRequest) has been attempted on this connection. |
+
boolean |
+isExpired(long keepAliveDurationNs)
+Returns true if this connection has been idle for longer than
+
+keepAliveDurationNs. |
+
boolean |
+isIdle()
+Returns true if this connection is idle.
+ |
+
boolean |
+isReadable()
+Returns true if we are confident that we can read data from this
+ connection.
+ |
+
boolean |
+isSpdy()
+Returns true if this is a SPDY connection.
+ |
+
Object |
+newTransport(com.squareup.okhttp.internal.http.HttpEngine httpEngine)
+Returns the transport appropriate for this connection.
+ |
+
int |
+recycleCount()
+Returns the number of times this connection has been returned to the
+ connection pool.
+ |
+
boolean |
+requiresTunnel()
+Returns true if the HTTP connection needs to tunnel one protocol over
+ another, such as when using HTTPS through an HTTP proxy.
+ |
+
void |
+resetIdleStartTime() |
+
void |
+setHttpMinorVersion(int httpMinorVersion) |
+
void |
+setOwner(Object owner) |
+
void |
+updateReadTimeout(int newTimeout) |
+
public Connection(ConnectionPool pool, + Route route)+
public Object getOwner()+
public void setOwner(Object owner)+
public boolean clearOwner()+
closeIfOwnedBy(java.lang.Object).public void closeIfOwnedBy(Object owner) + throws IOException+
owner. This also
+ strips the ownership of the connection so it cannot be pooled or reused.IOExceptionpublic void connect(int connectTimeout, + int readTimeout, + TunnelRequest tunnelRequest) + throws IOException+
IOExceptionpublic boolean isConnected()+
connect(int, int, com.squareup.okhttp.TunnelRequest) has been attempted on this connection.public void close() + throws IOException+
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Route getRoute()+
public Socket getSocket()+
public boolean isAlive()+
public boolean isReadable()+ +
public void resetIdleStartTime()+
public boolean isIdle()+
public boolean isExpired(long keepAliveDurationNs)+
keepAliveDurationNs.public long getIdleStartTimeNs()+
public Handshake getHandshake()+
public Object newTransport(com.squareup.okhttp.internal.http.HttpEngine httpEngine) + throws IOException+
IOExceptionpublic boolean isSpdy()+
public int getHttpMinorVersion()+
public void setHttpMinorVersion(int httpMinorVersion)+
public boolean requiresTunnel()+
public void updateReadTimeout(int newTimeout) + throws IOException+
IOExceptionpublic void incrementRecycleCount()+
public int recycleCount()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/ConnectionPool.html b/1.x/okhttp/com/squareup/okhttp/ConnectionPool.html new file mode 100644 index 000000000..01cb17bf0 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/ConnectionPool.html @@ -0,0 +1,396 @@ + + + + + + + +public class ConnectionPool +extends Object+
Address may share a
+ Connection. This class implements the policy of
+ which connections to keep open for future use.
+
+ The system-wide default uses system properties for
+ tuning parameters:
+
http.keepAlive true if HTTP and SPDY connections should be
+ pooled at all. Default is true.
+ http.maxConnections maximum number of idle connections to
+ each to keep in the pool. Default is 5.
+ http.keepAliveDuration Time in milliseconds to keep the
+ connection alive in the pool before closing it. Default is 5 minutes.
+ This property isn't used by HttpURLConnection.
+ The default instance doesn't adjust its configuration as system + properties are changed. This assumes that the applications that set these + parameters do so before making HTTP connections, and that this class is + initialized lazily.
| Constructor and Description | +
|---|
ConnectionPool(int maxIdleConnections,
+ long keepAliveDurationMs) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+evictAll()
+Close and remove all connections in the pool.
+ |
+
Connection |
+get(Address address)
+Returns a recycled connection to
+address, or null if no such connection exists. |
+
int |
+getConnectionCount()
+Returns total number of connections in the pool.
+ |
+
static ConnectionPool |
+getDefault() |
+
int |
+getHttpConnectionCount()
+Returns total number of http connections in the pool.
+ |
+
int |
+getSpdyConnectionCount()
+Returns total number of spdy connections in the pool.
+ |
+
void |
+recycle(Connection connection)
+Gives
+connection to the pool. |
+
void |
+share(Connection connection)
+Shares the SPDY connection with the pool.
+ |
+
public ConnectionPool(int maxIdleConnections, + long keepAliveDurationMs)+
public static ConnectionPool getDefault()+
public int getConnectionCount()+
public int getSpdyConnectionCount()+
public int getHttpConnectionCount()+
public Connection get(Address address)+
address, or null if no such connection exists.public void recycle(Connection connection)+
connection to the pool. The pool may store the connection,
+ or close it, as its policy describes.
+
+ It is an error to use connection after calling this method.
public void share(Connection connection)+
connection.public void evictAll()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Handshake.html b/1.x/okhttp/com/squareup/okhttp/Handshake.html new file mode 100644 index 000000000..4b48d6de3 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Handshake.html @@ -0,0 +1,358 @@ + + + + + + + +public final class Handshake +extends Object+
This value object describes a completed handshake. Use SSLSocketFactory to set policy for new handshakes.
| Modifier and Type | +Method and Description | +
|---|---|
String |
+cipherSuite()
+Returns a cipher suite name like "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA".
+ |
+
boolean |
+equals(Object other) |
+
static Handshake |
+get(SSLSession session) |
+
static Handshake |
+get(String cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
int |
+hashCode() |
+
List<Certificate> |
+localCertificates()
+Returns a possibly-empty list of certificates that identify this peer.
+ |
+
Principal |
+localPrincipal()
+Returns the local principle, or null if this peer is anonymous.
+ |
+
List<Certificate> |
+peerCertificates()
+Returns a possibly-empty list of certificates that identify the remote peer.
+ |
+
Principal |
+peerPrincipal()
+Returns the remote peer's principle, or null if that peer is anonymous.
+ |
+
public static Handshake get(SSLSession session)+
public static Handshake get(String cipherSuite, + List<Certificate> peerCertificates, + List<Certificate> localCertificates)+
public String cipherSuite()+
public List<Certificate> peerCertificates()+
public Principal peerPrincipal()+
public List<Certificate> localCertificates()+
public Principal localPrincipal()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/HttpResponseCache.html b/1.x/okhttp/com/squareup/okhttp/HttpResponseCache.html new file mode 100644 index 000000000..beba2022a --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/HttpResponseCache.html @@ -0,0 +1,268 @@ + + + + + + +Cache.@Deprecated +public final class HttpResponseCache +extends Cache+
| Constructor and Description | +
|---|
HttpResponseCache(File directory,
+ long maxSize)
+Deprecated.
+ |
+
close, delete, flush, get, get, getDirectory, getHitCount, getMaxSize, getNetworkCount, getRequestCount, getSize, getWriteAbortCount, getWriteSuccessCount, isClosed, maybeRemove, put, put, trackConditionalCacheHit, trackResponse, updategetDefault, setDefaultpublic HttpResponseCache(File directory, + long maxSize) + throws IOException+
IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/MediaType.html b/1.x/okhttp/com/squareup/okhttp/MediaType.html new file mode 100644 index 000000000..270dddc28 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/MediaType.html @@ -0,0 +1,358 @@ + + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Charset |
+charset()
+Returns the charset of this media type, or null if this media type doesn't
+ specify a charset.
+ |
+
Charset |
+charset(Charset defaultValue)
+Returns the charset of this media type, or
+defaultValue if this
+ media type doesn't specify a charset. |
+
boolean |
+equals(Object o) |
+
int |
+hashCode() |
+
static MediaType |
+parse(String string)
+Returns a media type for
+string, or null if string is not a
+ well-formed media type. |
+
String |
+subtype()
+Returns a specific media subtype, such as "plain" or "png", "mpeg",
+ "mp4" or "xml".
+ |
+
String |
+toString()
+Returns the encoded media type, like "text/plain; charset=utf-8",
+ appropriate for use in a Content-Type header.
+ |
+
String |
+type()
+Returns the high-level media type, such as "text", "image", "audio",
+ "video", or "application".
+ |
+
public static MediaType parse(String string)+
string, or null if string is not a
+ well-formed media type.public String type()+
public String subtype()+
public Charset charset()+
public Charset charset(Charset defaultValue)+
defaultValue if this
+ media type doesn't specify a charset.public String toString()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Challenge.html b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Challenge.html new file mode 100644 index 000000000..e7f244601 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Challenge.html @@ -0,0 +1,333 @@ + + + + + + +public static final class OkAuthenticator.Challenge +extends Object+
| Constructor and Description | +
|---|
OkAuthenticator.Challenge(String scheme,
+ String realm) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Credential.html b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Credential.html new file mode 100644 index 000000000..171354f00 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Credential.html @@ -0,0 +1,296 @@ + + + + + + +public static final class OkAuthenticator.Credential +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
static OkAuthenticator.Credential |
+basic(String userName,
+ String password)
+Returns an auth credential for the Basic scheme.
+ |
+
boolean |
+equals(Object o) |
+
String |
+getHeaderValue() |
+
int |
+hashCode() |
+
String |
+toString() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.html b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.html new file mode 100644 index 000000000..8b1242890 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.html @@ -0,0 +1,290 @@ + + + + + + +Authenticator in OkHttp 2.0.@Deprecated +public interface OkAuthenticator+
| Modifier and Type | +Interface and Description | +
|---|---|
static class |
+OkAuthenticator.Challenge
+Deprecated.
+An RFC 2617 challenge.
+ |
+
static class |
+OkAuthenticator.Credential
+Deprecated.
+An RFC 2617 credential.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator.Credential |
+authenticate(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+url. |
+
OkAuthenticator.Credential |
+authenticateProxy(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+proxy. |
+
OkAuthenticator.Credential authenticate(Proxy proxy, + URL url, + List<OkAuthenticator.Challenge> challenges) + throws IOException+
url. Returns null if the challenge cannot be satisfied. This method
+ is called in response to an HTTP 401 unauthorized status code sent by the
+ origin server.challenges - parsed "WWW-Authenticate" challenge headers from the HTTP
+ response.IOExceptionOkAuthenticator.Credential authenticateProxy(Proxy proxy, + URL url, + List<OkAuthenticator.Challenge> challenges) + throws IOException+
proxy. Returns null if the challenge cannot be satisfied. This
+ method is called in response to an HTTP 401 unauthorized status code sent
+ by the proxy server.challenges - parsed "Proxy-Authenticate" challenge headers from the
+ HTTP response.IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkHttpClient.html b/1.x/okhttp/com/squareup/okhttp/OkHttpClient.html new file mode 100644 index 000000000..4a5c778a9 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkHttpClient.html @@ -0,0 +1,926 @@ + + + + + + + +public final class OkHttpClient +extends Object +implements URLStreamHandlerFactory, Cloneable+
clone() to make a shallow copy of the OkHttpClient that can be
+ safely modified with further configuration changes.| Constructor and Description | +
|---|
OkHttpClient() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+clone()
+Returns a shallow copy of this OkHttpClient.
+ |
+
URLStreamHandler |
+createURLStreamHandler(String protocol)
+Deprecated.
+
+moved to
+OkUrlFactory.createURLStreamHandler. |
+
OkAuthenticator |
+getAuthenticator() |
+
Cache |
+getCache() |
+
ConnectionPool |
+getConnectionPool() |
+
int |
+getConnectTimeout()
+Default connect timeout (in milliseconds).
+ |
+
CookieHandler |
+getCookieHandler() |
+
boolean |
+getFollowProtocolRedirects()
+Deprecated.
+
+moved to
+getFollowSslRedirects(). |
+
boolean |
+getFollowSslRedirects() |
+
HostnameVerifier |
+getHostnameVerifier() |
+
OkResponseCache |
+getOkResponseCache()
+Deprecated.
+
+replaced by
+getCache() which doesn't support custom
+ cache implementations. |
+
List<Protocol> |
+getProtocols() |
+
Proxy |
+getProxy() |
+
ProxySelector |
+getProxySelector() |
+
int |
+getReadTimeout()
+Default read timeout (in milliseconds).
+ |
+
ResponseCache |
+getResponseCache()
+Deprecated.
+
+replaced by
+getCache() which doesn't support custom
+ cache implementations. |
+
RouteDatabase |
+getRoutesDatabase()
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
SSLSocketFactory |
+getSslSocketFactory() |
+
List<String> |
+getTransports()
+Deprecated.
+
+OkHttp 1.5 enforces an enumeration of
+protocols that can be selected. Please switch to getProtocols(). |
+
HttpURLConnection |
+open(URL url)
+Deprecated.
+
+moved to
+OkUrlFactory.open. |
+
OkHttpClient |
+setAuthenticator(OkAuthenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
OkHttpClient |
+setCache(Cache cache) |
+
OkHttpClient |
+setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
void |
+setConnectTimeout(long timeout,
+ TimeUnit unit)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient |
+setCookieHandler(CookieHandler cookieHandler)
+Sets the cookie handler to be used to read outgoing cookies and write
+ incoming cookies.
+ |
+
OkHttpClient |
+setFollowProtocolRedirects(boolean followProtocolRedirects)
+Deprecated.
+
+moved to
+setFollowSslRedirects(boolean). |
+
OkHttpClient |
+setFollowSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP
+ to HTTPS.
+ |
+
OkHttpClient |
+setHostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to
+ requested hostnames for HTTPS connections.
+ |
+
OkHttpClient |
+setOkResponseCache(OkResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
OkHttpClient |
+setProxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this
+ client.
+ |
+
OkHttpClient |
+setProxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy
+ is specified explicitly. |
+
void |
+setReadTimeout(long timeout,
+ TimeUnit unit)
+Sets the default read timeout for new connections.
+ |
+
OkHttpClient |
+setResponseCache(ResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+setSslSocketFactory(SSLSocketFactory sslSocketFactory)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
OkHttpClient |
+setTransports(List<String> transports)
+Deprecated.
+
+OkHttp 1.5 enforces an enumeration of
+protocols
+ that can be selected. Please switch to setProtocols(java.util.List). |
+
public void setConnectTimeout(long timeout, + TimeUnit unit)+
URLConnection.setConnectTimeout(int)public int getConnectTimeout()+
public void setReadTimeout(long timeout, + TimeUnit unit)+
URLConnection.setReadTimeout(int)public int getReadTimeout()+
public OkHttpClient setProxy(Proxy proxy)+
setProxySelector(java.net.ProxySelector), which is
+ only honored when this proxy is null (which it is by default). To disable
+ proxy use completely, call setProxy(Proxy.NO_PROXY).public Proxy getProxy()+
public OkHttpClient setProxySelector(ProxySelector proxySelector)+
proxy
+ is specified explicitly. The proxy selector may return multiple proxies;
+ in that case they will be tried in sequence until a successful connection
+ is established.
+
+ If unset, the system-wide default
+ proxy selector will be used.
public ProxySelector getProxySelector()+
public OkHttpClient setCookieHandler(CookieHandler cookieHandler)+
If unset, the system-wide default
+ cookie handler will be used.
public CookieHandler getCookieHandler()+
@Deprecated +public OkHttpClient setResponseCache(ResponseCache responseCache)+
setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.@Deprecated +public ResponseCache getResponseCache()+
getCache() which doesn't support custom
+ cache implementations.@Deprecated +public OkHttpClient setOkResponseCache(OkResponseCache responseCache)+
setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.@Deprecated +public OkResponseCache getOkResponseCache()+
getCache() which doesn't support custom
+ cache implementations.public OkHttpClient setCache(Cache cache)+
public Cache getCache()+
public OkHttpClient setSslSocketFactory(SSLSocketFactory sslSocketFactory)+
If unset, a lazily created SSL socket factory will be used.
public SSLSocketFactory getSslSocketFactory()+
public OkHttpClient setHostnameVerifier(HostnameVerifier hostnameVerifier)+
If unset, the
+ system-wide default hostname verifier will be used.
public HostnameVerifier getHostnameVerifier()+
public OkHttpClient setAuthenticator(OkAuthenticator authenticator)+
If unset, the system-wide default
+ authenticator will be used.
public OkAuthenticator getAuthenticator()+
public OkHttpClient setConnectionPool(ConnectionPool connectionPool)+
If unset, the system-wide
+ default connection pool will be used.
public ConnectionPool getConnectionPool()+
@Deprecated +public OkHttpClient setFollowProtocolRedirects(boolean followProtocolRedirects)+
setFollowSslRedirects(boolean).@Deprecated +public boolean getFollowProtocolRedirects()+
getFollowSslRedirects().public OkHttpClient setFollowSslRedirects(boolean followProtocolRedirects)+
If unset, protocol redirects will be followed. This is different than
+ the built-in HttpURLConnection's default.
public boolean getFollowSslRedirects()+
@Deprecated +public RouteDatabase getRoutesDatabase()+
@Deprecated +public OkHttpClient setTransports(List<String> transports)+
protocols
+ that can be selected. Please switch to setProtocols(java.util.List).public OkHttpClient setProtocols(List<Protocol> protocols)+
The following protocols are currently supported: +
This is an evolving set. Future releases may drop + support for transitional protocols (like spdy/3.1), in favor of their + successors (spdy/4 or http/2.0). The http/1.1 transport will never be + dropped. + +
If multiple protocols are specified, NPN will + be used to negotiate a transport. Future releases may use another mechanism + (such as ALPN) + to negotiate a transport.
protocols - the protocols to use, in order of preference. The list
+ must contain "http/1.1". It must not contain null.@Deprecated +public List<String> getTransports()+
protocols that can be selected. Please switch to getProtocols().@Deprecated +public HttpURLConnection open(URL url)+
OkUrlFactory.open.public OkHttpClient clone()+
@Deprecated +public URLStreamHandler createURLStreamHandler(String protocol)+
OkUrlFactory.createURLStreamHandler.URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).
+
+ This code configures OkHttp to handle all HTTP and HTTPS connections
+ created with URL.openConnection():
OkHttpClient okHttpClient = new OkHttpClient();
+ URL.setURLStreamHandlerFactory(okHttpClient);
+ createURLStreamHandler in interface URLStreamHandlerFactoryCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkResponseCache.html b/1.x/okhttp/com/squareup/okhttp/OkResponseCache.html new file mode 100644 index 000000000..46d098443 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkResponseCache.html @@ -0,0 +1,330 @@ + + + + + + +@Deprecated +public interface OkResponseCache+
ResponseCache, this
+ interface supports conditional caching and statistics.
+
+ | Modifier and Type | +Method and Description | +
|---|---|
com.squareup.okhttp.internal.http.Response |
+get(com.squareup.okhttp.internal.http.Request request)
+Deprecated.
+ |
+
boolean |
+maybeRemove(com.squareup.okhttp.internal.http.Request request)
+Deprecated.
+Remove any cache entries for the supplied
+uri. |
+
CacheRequest |
+put(com.squareup.okhttp.internal.http.Response response)
+Deprecated.
+ |
+
void |
+trackConditionalCacheHit()
+Deprecated.
+Track an conditional GET that was satisfied by this cache.
+ |
+
void |
+trackResponse(ResponseSource source)
+Deprecated.
+Track an HTTP response being satisfied by
+source. |
+
void |
+update(com.squareup.okhttp.internal.http.Response cached,
+ com.squareup.okhttp.internal.http.Response network)
+Deprecated.
+Handles a conditional request hit by updating the stored cache response
+ with the headers from
+network. |
+
com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request) + throws IOException+
IOExceptionCacheRequest put(com.squareup.okhttp.internal.http.Response response) + throws IOException+
IOExceptionboolean maybeRemove(com.squareup.okhttp.internal.http.Request request) + throws IOException+
uri. Returns true if the
+ supplied requestMethod potentially invalidates an entry in the
+ cache.IOExceptionvoid update(com.squareup.okhttp.internal.http.Response cached, + com.squareup.okhttp.internal.http.Response network) + throws IOException+
network. The cached response body is not
+ updated. If the stored response has changed since cached was
+ returned, this does nothing.IOExceptionvoid trackConditionalCacheHit()+
void trackResponse(ResponseSource source)+
source.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Protocol.html b/1.x/okhttp/com/squareup/okhttp/Protocol.html new file mode 100644 index 000000000..c22a47c4f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Protocol.html @@ -0,0 +1,408 @@ + + + + + + + +public enum Protocol +extends Enum<Protocol>+
+
URL.getProtocol() returns the
+ scheme (http, https, etc.) of the URL, not
+ the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol to
+ indicate how HTTP messages are framed.| Enum Constant and Description | +
|---|
HTTP_11 |
+
HTTP_2 |
+
SPDY_3 |
+
| Modifier and Type | +Field and Description | +
|---|---|
com.squareup.okhttp.internal.okio.ByteString |
+name
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
boolean |
+spdyVariant
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final Protocol HTTP_2+
public static final Protocol SPDY_3+
public static final Protocol HTTP_11+
@Deprecated +public final com.squareup.okhttp.internal.okio.ByteString name+
@Deprecated +public final boolean spdyVariant+
Variantpublic static Protocol[] values()+
+for (Protocol c : Protocol.values()) + System.out.println(c); +
public static Protocol valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/ResponseSource.html b/1.x/okhttp/com/squareup/okhttp/ResponseSource.html new file mode 100644 index 000000000..d7e1556db --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/ResponseSource.html @@ -0,0 +1,413 @@ + + + + + + +networkResponse() and cacheResponse() to compute how the
+ request was satisfied.@Deprecated +public enum ResponseSource +extends Enum<ResponseSource>+
| Enum Constant and Description | +
|---|
CACHE
+Deprecated.
+The response was returned from the local cache.
+ |
+
CONDITIONAL_CACHE
+Deprecated.
+The response is available in the cache but must be validated with the
+ network.
+ |
+
NETWORK
+Deprecated.
+The response was returned from the network.
+ |
+
NONE
+Deprecated.
+The request demanded a cached response that the cache couldn't satisfy.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+requiresConnection()
+Deprecated.
+ |
+
boolean |
+usesCache()
+Deprecated.
+ |
+
static ResponseSource |
+valueOf(String name)
+Deprecated.
+Returns the enum constant of this type with the specified name.
+ |
+
static ResponseSource[] |
+values()
+Deprecated.
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final ResponseSource CACHE+
public static final ResponseSource CONDITIONAL_CACHE+
public static final ResponseSource NETWORK+
public static final ResponseSource NONE+
public static ResponseSource[] values()+
+for (ResponseSource c : ResponseSource.values()) + System.out.println(c); +
public static ResponseSource valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullpublic boolean requiresConnection()+
public boolean usesCache()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Route.html b/1.x/okhttp/com/squareup/okhttp/Route.html new file mode 100644 index 000000000..bf10f6105 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Route.html @@ -0,0 +1,380 @@ + + + + + + + +public class Route +extends Object+
proxy selector is used. It may return multiple proxies to attempt.
+ | Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress,
+ boolean modernTls) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object obj) |
+
Address |
+getAddress()
+Returns the
+Address of this route. |
+
Proxy |
+getProxy()
+Returns the
+Proxy of this route. |
+
InetSocketAddress |
+getSocketAddress()
+Returns the
+InetSocketAddress of this route. |
+
String |
+getTlsVersion() |
+
int |
+hashCode() |
+
boolean |
+isModernTls()
+Deprecated.
+
+replaced with
+getTlsVersion() in OkHttp 2.0. |
+
public Route(Address address, + Proxy proxy, + InetSocketAddress inetSocketAddress, + boolean modernTls)+
public Proxy getProxy()+
Proxy of this route.
+
+ Warning: This may disagree with Address.getProxy()
+ is null. When the address's proxy is null, the proxy selector will be used.public InetSocketAddress getSocketAddress()+
InetSocketAddress of this route.@Deprecated +public boolean isModernTls()+
getTlsVersion() in OkHttp 2.0.public String getTlsVersion()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/RouteDatabase.html b/1.x/okhttp/com/squareup/okhttp/RouteDatabase.html new file mode 100644 index 000000000..b789cdeca --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/RouteDatabase.html @@ -0,0 +1,325 @@ + + + + + + +@Deprecated +public final class RouteDatabase +extends Object+
| Constructor and Description | +
|---|
RouteDatabase()
+Deprecated.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+connected(Route route)
+Deprecated.
+Records success connecting to
+failedRoute. |
+
void |
+failed(Route failedRoute)
+Deprecated.
+Records a failure connecting to
+failedRoute. |
+
int |
+failedRoutesCount()
+Deprecated.
+ |
+
boolean |
+shouldPostpone(Route route)
+Deprecated.
+Returns true if
+route has failed recently and should be avoided. |
+
public void failed(Route failedRoute)+
failedRoute.public void connected(Route route)+
failedRoute.public boolean shouldPostpone(Route route)+
route has failed recently and should be avoided.public int failedRoutesCount()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/TunnelRequest.html b/1.x/okhttp/com/squareup/okhttp/TunnelRequest.html new file mode 100644 index 000000000..9e6c0d695 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/TunnelRequest.html @@ -0,0 +1,249 @@ + + + + + + +@Deprecated +public final class TunnelRequest +extends Object+
| Constructor and Description | +
|---|
TunnelRequest(String host,
+ int port,
+ String userAgent,
+ String proxyAuthorization)
+Deprecated.
+ |
+
public TunnelRequest(String host, + int port, + String userAgent, + String proxyAuthorization)+
host - the origin server's hostname. Not null.port - the origin server's port, like 80 or 443.userAgent - the client's user-agent. Not null.proxyAuthorization - proxy authorization, or null if the proxy is
+ used without an authorization header.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Address.html b/1.x/okhttp/com/squareup/okhttp/class-use/Address.html new file mode 100644 index 000000000..0faf23064 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Address.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Address |
+Route.getAddress()
+Returns the
+Address of this route. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+ConnectionPool.get(Address address)
+Returns a recycled connection to
+address, or null if no such connection exists. |
+
| Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress,
+ boolean modernTls) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Cache.html b/1.x/okhttp/com/squareup/okhttp/class-use/Cache.html new file mode 100644 index 000000000..b14522141 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Cache.html @@ -0,0 +1,170 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+HttpResponseCache
+Deprecated.
+
+renamed to
+Cache. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+OkHttpClient.getCache() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setCache(Cache cache) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html b/1.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html new file mode 100644 index 000000000..ff44b478e --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html @@ -0,0 +1,142 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static CacheControl |
+CacheControl.parse(com.squareup.okhttp.internal.http.Headers headers)
+Returns the cache directives of
+headers. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Connection.html b/1.x/okhttp/com/squareup/okhttp/class-use/Connection.html new file mode 100644 index 000000000..8828e98d3 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Connection.html @@ -0,0 +1,163 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+ConnectionPool.get(Address address)
+Returns a recycled connection to
+address, or null if no such connection exists. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+ConnectionPool.recycle(Connection connection)
+Gives
+connection to the pool. |
+
void |
+ConnectionPool.share(Connection connection)
+Shares the SPDY connection with the pool.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html b/1.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html new file mode 100644 index 000000000..5089cbc40 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ConnectionPool |
+OkHttpClient.getConnectionPool() |
+
static ConnectionPool |
+ConnectionPool.getDefault() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
| Constructor and Description | +
|---|
Connection(ConnectionPool pool,
+ Route route) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Handshake.html b/1.x/okhttp/com/squareup/okhttp/class-use/Handshake.html new file mode 100644 index 000000000..4fe500aa9 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Handshake.html @@ -0,0 +1,150 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Handshake |
+Handshake.get(SSLSession session) |
+
static Handshake |
+Handshake.get(String cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
Handshake |
+Connection.getHandshake() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/HttpResponseCache.html b/1.x/okhttp/com/squareup/okhttp/class-use/HttpResponseCache.html new file mode 100644 index 000000000..4ee7f30ac --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/HttpResponseCache.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/MediaType.html b/1.x/okhttp/com/squareup/okhttp/class-use/MediaType.html new file mode 100644 index 000000000..2c6a2a152 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/MediaType.html @@ -0,0 +1,143 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static MediaType |
+MediaType.parse(String string)
+Returns a media type for
+string, or null if string is not a
+ well-formed media type. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html new file mode 100644 index 000000000..f576b2cb4 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html @@ -0,0 +1,156 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator.Credential |
+OkAuthenticator.authenticate(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+url. |
+
OkAuthenticator.Credential |
+OkAuthenticator.authenticateProxy(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+proxy. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html new file mode 100644 index 000000000..c331bb0e6 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html @@ -0,0 +1,163 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator.Credential |
+OkAuthenticator.authenticate(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+url. |
+
OkAuthenticator.Credential |
+OkAuthenticator.authenticateProxy(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+proxy. |
+
static OkAuthenticator.Credential |
+OkAuthenticator.Credential.basic(String userName,
+ String password)
+Returns an auth credential for the Basic scheme.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.html new file mode 100644 index 000000000..08d077b3d --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.html @@ -0,0 +1,179 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator |
+OkHttpClient.getAuthenticator() |
+
OkAuthenticator |
+Address.getAuthenticator()
+Returns the client's authenticator.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setAuthenticator(OkAuthenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ OkAuthenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html new file mode 100644 index 000000000..f9aeb366d --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html @@ -0,0 +1,242 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.clone()
+Returns a shallow copy of this OkHttpClient.
+ |
+
OkHttpClient |
+OkHttpClient.setAuthenticator(OkAuthenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
OkHttpClient |
+OkHttpClient.setCache(Cache cache) |
+
OkHttpClient |
+OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setCookieHandler(CookieHandler cookieHandler)
+Sets the cookie handler to be used to read outgoing cookies and write
+ incoming cookies.
+ |
+
OkHttpClient |
+OkHttpClient.setFollowProtocolRedirects(boolean followProtocolRedirects)
+Deprecated.
+
+moved to
+setFollowSslRedirects(boolean). |
+
OkHttpClient |
+OkHttpClient.setFollowSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP
+ to HTTPS.
+ |
+
OkHttpClient |
+OkHttpClient.setHostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to
+ requested hostnames for HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setOkResponseCache(OkResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+OkHttpClient.setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
OkHttpClient |
+OkHttpClient.setProxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this
+ client.
+ |
+
OkHttpClient |
+OkHttpClient.setProxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy
+ is specified explicitly. |
+
OkHttpClient |
+OkHttpClient.setResponseCache(ResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+OkHttpClient.setSslSocketFactory(SSLSocketFactory sslSocketFactory)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setTransports(List<String> transports)
+Deprecated.
+
+OkHttp 1.5 enforces an enumeration of
+protocols
+ that can be selected. Please switch to setProtocols(java.util.List). |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkResponseCache.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkResponseCache.html new file mode 100644 index 000000000..9c4622fc1 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkResponseCache.html @@ -0,0 +1,187 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+Cache
+Caches HTTP and HTTPS responses to the filesystem so they may be reused,
+ saving time and bandwidth.
+ |
+
class |
+HttpResponseCache
+Deprecated.
+
+renamed to
+Cache. |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkResponseCache |
+OkHttpClient.getOkResponseCache()
+Deprecated.
+
+replaced by
+OkHttpClient.getCache() which doesn't support custom
+ cache implementations. |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setOkResponseCache(OkResponseCache responseCache)
+Deprecated.
+
+replaced by
+OkHttpClient.setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Protocol.html b/1.x/okhttp/com/squareup/okhttp/class-use/Protocol.html new file mode 100644 index 000000000..c6fd90937 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Protocol.html @@ -0,0 +1,201 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+Protocol.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+Protocol.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Protocol> |
+OkHttpClient.getProtocols() |
+
List<Protocol> |
+Address.getProtocols()
+Returns the protocols the client supports.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ OkAuthenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/ResponseSource.html b/1.x/okhttp/com/squareup/okhttp/class-use/ResponseSource.html new file mode 100644 index 000000000..7e6a1b6b8 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/ResponseSource.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static ResponseSource |
+ResponseSource.valueOf(String name)
+Deprecated.
+Returns the enum constant of this type with the specified name.
+ |
+
static ResponseSource[] |
+ResponseSource.values()
+Deprecated.
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+OkResponseCache.trackResponse(ResponseSource source)
+Deprecated.
+Track an HTTP response being satisfied by
+source. |
+
void |
+Cache.trackResponse(ResponseSource source) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Route.html b/1.x/okhttp/com/squareup/okhttp/class-use/Route.html new file mode 100644 index 000000000..e97b3e6f1 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Route.html @@ -0,0 +1,184 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Route |
+Connection.getRoute()
+Returns the route used by this connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+RouteDatabase.connected(Route route)
+Deprecated.
+Records success connecting to
+failedRoute. |
+
void |
+RouteDatabase.failed(Route failedRoute)
+Deprecated.
+Records a failure connecting to
+failedRoute. |
+
boolean |
+RouteDatabase.shouldPostpone(Route route)
+Deprecated.
+Returns true if
+route has failed recently and should be avoided. |
+
| Constructor and Description | +
|---|
Connection(ConnectionPool pool,
+ Route route) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/RouteDatabase.html b/1.x/okhttp/com/squareup/okhttp/class-use/RouteDatabase.html new file mode 100644 index 000000000..b0930de1e --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/RouteDatabase.html @@ -0,0 +1,144 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
RouteDatabase |
+OkHttpClient.getRoutesDatabase()
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/TunnelRequest.html b/1.x/okhttp/com/squareup/okhttp/class-use/TunnelRequest.html new file mode 100644 index 000000000..d0fae401f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/TunnelRequest.html @@ -0,0 +1,142 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+Connection.connect(int connectTimeout,
+ int readTimeout,
+ TunnelRequest tunnelRequest) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/package-frame.html b/1.x/okhttp/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..95ce502c7 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/package-frame.html @@ -0,0 +1,43 @@ + + + + + + +| Interface | +Description | +
|---|---|
| OkAuthenticator | +Deprecated
+ replaced with
+Authenticator in OkHttp 2.0. |
+
| OkResponseCache | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
| Class | +Description | +
|---|---|
| Address | +
+ A specification for a connection to an origin server.
+ |
+
| Cache | +
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused,
+ saving time and bandwidth.
+ |
+
| CacheControl | +
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| Connection | +
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
+ |
+
| ConnectionPool | +
+ Manages reuse of HTTP and SPDY connections for reduced network latency.
+ |
+
| Handshake | +
+ A record of a TLS handshake.
+ |
+
| HttpResponseCache | +Deprecated
+ renamed to
+Cache. |
+
| MediaType | +
+ An RFC 2045 Media Type,
+ appropriate to describe the content type of an HTTP request or response body.
+ |
+
| OkAuthenticator.Challenge | +
+ An RFC 2617 challenge.
+ |
+
| OkAuthenticator.Credential | +
+ An RFC 2617 credential.
+ |
+
| OkHttpClient | +
+ Configures and creates HTTP connections.
+ |
+
| Route | +
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| RouteDatabase | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
| TunnelRequest | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
| Enum | +Description | +
|---|---|
| Protocol | ++ + | +
| ResponseSource | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/package-tree.html b/1.x/okhttp/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..9bc67034f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/package-use.html b/1.x/okhttp/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..90dcea70f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/package-use.html @@ -0,0 +1,233 @@ + + + + + + +| Class and Description | +
|---|
| Address
+ A specification for a connection to an origin server.
+ |
+
| Cache
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused,
+ saving time and bandwidth.
+ |
+
| CacheControl
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| Connection
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
+ |
+
| ConnectionPool
+ Manages reuse of HTTP and SPDY connections for reduced network latency.
+ |
+
| Handshake
+ A record of a TLS handshake.
+ |
+
| MediaType
+ An RFC 2045 Media Type,
+ appropriate to describe the content type of an HTTP request or response body.
+ |
+
| OkAuthenticator
+ Deprecated.
+
+replaced with
+Authenticator in OkHttp 2.0. |
+
| OkAuthenticator.Challenge
+ Deprecated.
+An RFC 2617 challenge.
+ |
+
| OkAuthenticator.Credential
+ Deprecated.
+An RFC 2617 credential.
+ |
+
| OkHttpClient
+ Configures and creates HTTP connections.
+ |
+
| OkResponseCache
+ Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
| Protocol + + | +
| ResponseSource
+ Deprecated.
+
+removed from the public API in OkHttp 2.0. Use the response's
+
+networkResponse() and cacheResponse() to compute how the
+ request was satisfied. |
+
| Route
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| RouteDatabase
+ Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
| TunnelRequest
+ Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/constant-values.html b/1.x/okhttp/constant-values.html new file mode 100644 index 000000000..ab05969fa --- /dev/null +++ b/1.x/okhttp/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/deprecated-list.html b/1.x/okhttp/deprecated-list.html new file mode 100644 index 000000000..ebbae57e9 --- /dev/null +++ b/1.x/okhttp/deprecated-list.html @@ -0,0 +1,305 @@ + + + + + + +| Interface and Description | +
|---|
| com.squareup.okhttp.OkAuthenticator
+ replaced with
+Authenticator in OkHttp 2.0. |
+
| com.squareup.okhttp.OkResponseCache
+ removed from the public API in OkHttp 2.0.
+ |
+
| Class and Description | +
|---|
| com.squareup.okhttp.HttpResponseCache
+ renamed to
+Cache. |
+
| com.squareup.okhttp.RouteDatabase
+ removed from the public API in OkHttp 2.0.
+ |
+
| com.squareup.okhttp.TunnelRequest
+ removed from the public API in OkHttp 2.0.
+ |
+
| Enum and Description | +
|---|
| com.squareup.okhttp.ResponseSource
+ removed from the public API in OkHttp 2.0. Use the response's
+
+networkResponse() and cacheResponse() to compute how the
+ request was satisfied. |
+
| Field and Description | +
|---|
| com.squareup.okhttp.Protocol.name
+ removed from the public API in OkHttp 2.0.
+ |
+
| com.squareup.okhttp.Protocol.spdyVariant
+ removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/help-doc.html b/1.x/okhttp/help-doc.html new file mode 100644 index 000000000..7b644ab08 --- /dev/null +++ b/1.x/okhttp/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/index-all.html b/1.x/okhttp/index-all.html new file mode 100644 index 000000000..f6680415a --- /dev/null +++ b/1.x/okhttp/index-all.html @@ -0,0 +1,957 @@ + + + + + + +url.proxy.defaultValue if this
+ media type doesn't specify a charset.owner.failedRoute.OkUrlFactory.createURLStreamHandler.failedRoute.address, or null if no such connection exists.Address of this route.OkHttpClient.getFollowSslRedirects().OkHttpClient.getCache() which doesn't support custom
+ cache implementations.Proxy of this route.OkHttpClient.getCache() which doesn't support custom
+ cache implementations.Basic.InetSocketAddress of this route.protocols that can be selected. Please switch to OkHttpClient.getProtocols().Cache.Connection.connect(int, int, com.squareup.okhttp.TunnelRequest) has been attempted on this connection.keepAliveDurationNs.Route.getTlsVersion() in OkHttp 2.0.uri.Authenticator in OkHttp 2.0.OkUrlFactory.open.headers.string, or null if string is not a
+ well-formed media type.connection to the pool.networkResponse() and cacheResponse() to compute how the
+ request was satisfied.OkHttpClient.setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.proxy
+ is specified explicitly.OkHttpClient.setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.protocols
+ that can be selected. Please switch to OkHttpClient.setProtocols(java.util.List).route has failed recently and should be avoided.source.network.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/index.html b/1.x/okhttp/index.html new file mode 100644 index 000000000..833c4a6cb --- /dev/null +++ b/1.x/okhttp/index.html @@ -0,0 +1,66 @@ + + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/package-list b/1.x/okhttp/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/1.x/okhttp/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/1.x/okhttp/resources/background.gif b/1.x/okhttp/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp/resources/background.gif differ diff --git a/1.x/okhttp/resources/tab.gif b/1.x/okhttp/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp/resources/tab.gif differ diff --git a/1.x/okhttp/resources/titlebar.gif b/1.x/okhttp/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp/resources/titlebar.gif differ diff --git a/1.x/okhttp/resources/titlebar_end.gif b/1.x/okhttp/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp/resources/titlebar_end.gif differ diff --git a/1.x/okhttp/stylesheet.css b/1.x/okhttp/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp/version.txt b/1.x/okhttp/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/2.x/benchmarks/META-INF/MANIFEST.MF b/2.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/benchmarks/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/benchmarks/allclasses-frame.html b/2.x/benchmarks/allclasses-frame.html new file mode 100644 index 000000000..fc95c9f4f --- /dev/null +++ b/2.x/benchmarks/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +public class Benchmark
+extends com.google.caliper.Benchmark
+| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String[] args) |
+
double |
+run() |
+
String |
+toString() |
+
setUp, tearDownCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html b/2.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html new file mode 100644 index 000000000..c621b1cb5 --- /dev/null +++ b/2.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html b/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html new file mode 100644 index 000000000..9a3b99ba4 --- /dev/null +++ b/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Benchmark | +
+ This benchmark is fake, but may be useful for certain relative comparisons.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html b/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html new file mode 100644 index 000000000..fe3684e00 --- /dev/null +++ b/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html b/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html new file mode 100644 index 000000000..b099ce683 --- /dev/null +++ b/2.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/constant-values.html b/2.x/benchmarks/constant-values.html new file mode 100644 index 000000000..33271b10a --- /dev/null +++ b/2.x/benchmarks/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/deprecated-list.html b/2.x/benchmarks/deprecated-list.html new file mode 100644 index 000000000..5730f19ab --- /dev/null +++ b/2.x/benchmarks/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/help-doc.html b/2.x/benchmarks/help-doc.html new file mode 100644 index 000000000..8519d842c --- /dev/null +++ b/2.x/benchmarks/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/index-all.html b/2.x/benchmarks/index-all.html new file mode 100644 index 000000000..ba28eac31 --- /dev/null +++ b/2.x/benchmarks/index-all.html @@ -0,0 +1,165 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/index.html b/2.x/benchmarks/index.html new file mode 100644 index 000000000..31ee81427 --- /dev/null +++ b/2.x/benchmarks/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/benchmarks/package-list b/2.x/benchmarks/package-list new file mode 100644 index 000000000..8caffeb9a --- /dev/null +++ b/2.x/benchmarks/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.benchmarks diff --git a/2.x/benchmarks/resources/background.gif b/2.x/benchmarks/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/benchmarks/resources/background.gif differ diff --git a/2.x/benchmarks/resources/tab.gif b/2.x/benchmarks/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/benchmarks/resources/tab.gif differ diff --git a/2.x/benchmarks/resources/titlebar.gif b/2.x/benchmarks/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/benchmarks/resources/titlebar.gif differ diff --git a/2.x/benchmarks/resources/titlebar_end.gif b/2.x/benchmarks/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/benchmarks/resources/titlebar_end.gif differ diff --git a/2.x/benchmarks/script.js b/2.x/benchmarks/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/benchmarks/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/benchmarks/stylesheet.css b/2.x/benchmarks/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/benchmarks/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/benchmarks/version.txt b/2.x/benchmarks/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/benchmarks/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/logging-interceptor/META-INF/MANIFEST.MF b/2.x/logging-interceptor/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/logging-interceptor/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/logging-interceptor/allclasses-frame.html b/2.x/logging-interceptor/allclasses-frame.html new file mode 100644 index 000000000..5f2dffd96 --- /dev/null +++ b/2.x/logging-interceptor/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +public static enum HttpLoggingInterceptor.Level +extends Enum<HttpLoggingInterceptor.Level>+
| Enum Constant and Description | +
|---|
BASIC
+Logs request and response lines.
+ |
+
BODY
+Logs request and response lines and their respective headers and bodies (if present).
+ |
+
HEADERS
+Logs request and response lines and their respective headers.
+ |
+
NONE
+No logs.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static HttpLoggingInterceptor.Level |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static HttpLoggingInterceptor.Level[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final HttpLoggingInterceptor.Level NONE+
public static final HttpLoggingInterceptor.Level BASIC+
+ Example: +
+ --> POST /greeting HTTP/1.1 (3-byte body)
+
+ <-- HTTP/1.1 200 OK (22ms, 6-byte body)
+ public static final HttpLoggingInterceptor.Level HEADERS+
+ Example: +
+ --> POST /greeting HTTP/1.1
+ Host: example.com
+ Content-Type: plain/text
+ Content-Length: 3
+ --> END POST
+
+ <-- HTTP/1.1 200 OK (22ms)
+ Content-Type: plain/text
+ Content-Length: 6
+ <-- END HTTP
+ public static final HttpLoggingInterceptor.Level BODY+
+ Example: +
+ --> POST /greeting HTTP/1.1
+ Host: example.com
+ Content-Type: plain/text
+ Content-Length: 3
+
+ Hi?
+ --> END GET
+
+ <-- HTTP/1.1 200 OK (22ms)
+ Content-Type: plain/text
+ Content-Length: 6
+
+ Hello!
+ <-- END HTTP
+ public static HttpLoggingInterceptor.Level[] values()+
+for (HttpLoggingInterceptor.Level c : HttpLoggingInterceptor.Level.values()) + System.out.println(c); +
public static HttpLoggingInterceptor.Level valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/HttpLoggingInterceptor.Logger.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/HttpLoggingInterceptor.Logger.html new file mode 100644 index 000000000..b21a55554 --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/HttpLoggingInterceptor.Logger.html @@ -0,0 +1,264 @@ + + + + + + +public static interface HttpLoggingInterceptor.Logger
+| Modifier and Type | +Field and Description | +
|---|---|
static HttpLoggingInterceptor.Logger |
+DEFAULT
+A
+HttpLoggingInterceptor.Logger defaults output appropriate for the current platform. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+log(String message) |
+
static final HttpLoggingInterceptor.Logger DEFAULT+
HttpLoggingInterceptor.Logger defaults output appropriate for the current platform.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/HttpLoggingInterceptor.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/HttpLoggingInterceptor.html new file mode 100644 index 000000000..b5608ecc0 --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/HttpLoggingInterceptor.html @@ -0,0 +1,361 @@ + + + + + + + +public final class HttpLoggingInterceptor +extends Object +implements Interceptor+
+ The format of the logs created by this class should not be considered stable and may change + slightly between releases. If you need a stable logging format, use your own interceptor.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HttpLoggingInterceptor.Level |
+
static interface |
+HttpLoggingInterceptor.Logger |
+
Interceptor.Chain| Constructor and Description | +
|---|
HttpLoggingInterceptor() |
+
HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger) |
+
| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor.Level |
+getLevel() |
+
Response |
+intercept(Interceptor.Chain chain) |
+
HttpLoggingInterceptor |
+setLevel(HttpLoggingInterceptor.Level level)
+Change the level at which this interceptor logs.
+ |
+
public HttpLoggingInterceptor()+
public HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger)+
public HttpLoggingInterceptor setLevel(HttpLoggingInterceptor.Level level)+
public HttpLoggingInterceptor.Level getLevel()+
public Response intercept(Interceptor.Chain chain) + throws IOException+
intercept in interface InterceptorIOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.Level.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.Level.html new file mode 100644 index 000000000..2f060988d --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.Level.html @@ -0,0 +1,177 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor.Level |
+HttpLoggingInterceptor.getLevel() |
+
static HttpLoggingInterceptor.Level |
+HttpLoggingInterceptor.Level.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static HttpLoggingInterceptor.Level[] |
+HttpLoggingInterceptor.Level.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor |
+HttpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level level)
+Change the level at which this interceptor logs.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.Logger.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.Logger.html new file mode 100644 index 000000000..610a077fe --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.Logger.html @@ -0,0 +1,162 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static HttpLoggingInterceptor.Logger |
+HttpLoggingInterceptor.Logger.DEFAULT
+A
+HttpLoggingInterceptor.Logger defaults output appropriate for the current platform. |
+
| Constructor and Description | +
|---|
HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.html new file mode 100644 index 000000000..c1c3e29ec --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/class-use/HttpLoggingInterceptor.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor |
+HttpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level level)
+Change the level at which this interceptor logs.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/package-frame.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/package-frame.html new file mode 100644 index 000000000..f260885a6 --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/package-frame.html @@ -0,0 +1,29 @@ + + + + + + +| Interface | +Description | +
|---|---|
| HttpLoggingInterceptor.Logger | ++ |
| Class | +Description | +
|---|---|
| HttpLoggingInterceptor | +
+ An OkHttp interceptor which logs request and response information.
+ |
+
| Enum | +Description | +
|---|---|
| HttpLoggingInterceptor.Level | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/package-tree.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/package-tree.html new file mode 100644 index 000000000..1d844d787 --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/com/squareup/okhttp/logging/package-use.html b/2.x/logging-interceptor/com/squareup/okhttp/logging/package-use.html new file mode 100644 index 000000000..e51d86049 --- /dev/null +++ b/2.x/logging-interceptor/com/squareup/okhttp/logging/package-use.html @@ -0,0 +1,150 @@ + + + + + + +| Class and Description | +
|---|
| HttpLoggingInterceptor
+ An OkHttp interceptor which logs request and response information.
+ |
+
| HttpLoggingInterceptor.Level | +
| HttpLoggingInterceptor.Logger | +
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/constant-values.html b/2.x/logging-interceptor/constant-values.html new file mode 100644 index 000000000..e23b99b13 --- /dev/null +++ b/2.x/logging-interceptor/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/deprecated-list.html b/2.x/logging-interceptor/deprecated-list.html new file mode 100644 index 000000000..28254a069 --- /dev/null +++ b/2.x/logging-interceptor/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/help-doc.html b/2.x/logging-interceptor/help-doc.html new file mode 100644 index 000000000..220515400 --- /dev/null +++ b/2.x/logging-interceptor/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/index-all.html b/2.x/logging-interceptor/index-all.html new file mode 100644 index 000000000..a58633e61 --- /dev/null +++ b/2.x/logging-interceptor/index-all.html @@ -0,0 +1,206 @@ + + + + + + +HttpLoggingInterceptor.Logger defaults output appropriate for the current platform.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/index.html b/2.x/logging-interceptor/index.html new file mode 100644 index 000000000..851114bb5 --- /dev/null +++ b/2.x/logging-interceptor/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/logging-interceptor/package-list b/2.x/logging-interceptor/package-list new file mode 100644 index 000000000..097664dae --- /dev/null +++ b/2.x/logging-interceptor/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.logging diff --git a/2.x/logging-interceptor/resources/background.gif b/2.x/logging-interceptor/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/logging-interceptor/resources/background.gif differ diff --git a/2.x/logging-interceptor/resources/tab.gif b/2.x/logging-interceptor/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/logging-interceptor/resources/tab.gif differ diff --git a/2.x/logging-interceptor/resources/titlebar.gif b/2.x/logging-interceptor/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/logging-interceptor/resources/titlebar.gif differ diff --git a/2.x/logging-interceptor/resources/titlebar_end.gif b/2.x/logging-interceptor/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/logging-interceptor/resources/titlebar_end.gif differ diff --git a/2.x/logging-interceptor/script.js b/2.x/logging-interceptor/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/logging-interceptor/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/logging-interceptor/stylesheet.css b/2.x/logging-interceptor/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/logging-interceptor/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/logging-interceptor/version.txt b/2.x/logging-interceptor/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/logging-interceptor/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/mockwebserver/META-INF/MANIFEST.MF b/2.x/mockwebserver/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/mockwebserver/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/mockwebserver/allclasses-frame.html b/2.x/mockwebserver/allclasses-frame.html new file mode 100644 index 000000000..60feb5873 --- /dev/null +++ b/2.x/mockwebserver/allclasses-frame.html @@ -0,0 +1,30 @@ + + + + + + +public static final class HeldCertificate.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+build() |
+
HeldCertificate.Builder |
+ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+commonName(String hostname)
+Set this certificate's name.
+ |
+
KeyPair |
+generateKeyPair() |
+
HeldCertificate.Builder |
+issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+serialNumber(String serialNumber) |
+
public HeldCertificate.Builder serialNumber(String serialNumber)+
public HeldCertificate.Builder commonName(String hostname)+
public HeldCertificate.Builder keyPair(KeyPair keyPair)+
public HeldCertificate.Builder issuedBy(HeldCertificate signedBy)+
public HeldCertificate.Builder ca(int maxIntermediateCas)+
maxIntermediateCas
+ intermediate certificate authorities beneath it.public HeldCertificate build() + throws GeneralSecurityException+
GeneralSecurityExceptionpublic KeyPair generateKeyPair() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/HeldCertificate.html b/2.x/mockwebserver/com/squareup/okhttp/internal/HeldCertificate.html new file mode 100644 index 000000000..5a577b5d6 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/HeldCertificate.html @@ -0,0 +1,312 @@ + + + + + + +public final class HeldCertificate +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HeldCertificate.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
X509Certificate |
+certificate |
+
KeyPair |
+keyPair |
+
| Constructor and Description | +
|---|
HeldCertificate(X509Certificate certificate,
+ KeyPair keyPair) |
+
public final X509Certificate certificate+
public final KeyPair keyPair+
public HeldCertificate(X509Certificate certificate, + KeyPair keyPair)+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/SslContextBuilder.html b/2.x/mockwebserver/com/squareup/okhttp/internal/SslContextBuilder.html new file mode 100644 index 000000000..8a510b18e --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/SslContextBuilder.html @@ -0,0 +1,334 @@ + + + + + + +public final class SslContextBuilder +extends Object+
The crypto performed by this class is relatively slow. Clients should + reuse SSL context instances where possible.
| Constructor and Description | +
|---|
SslContextBuilder() |
+
| Modifier and Type | +Method and Description | +
|---|---|
SslContextBuilder |
+addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SSLContext |
+build() |
+
SslContextBuilder |
+certificateChain(HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
static SSLContext |
+localhost()
+Returns a new SSL context for this host's current localhost address.
+ |
+
public static SSLContext localhost()+
public SslContextBuilder certificateChain(HeldCertificate... chain)+
public SslContextBuilder addTrustedCertificate(X509Certificate certificate)+
public SSLContext build() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/HeldCertificate.Builder.html b/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/HeldCertificate.Builder.html new file mode 100644 index 000000000..d9a00854f --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/HeldCertificate.Builder.html @@ -0,0 +1,189 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate.Builder |
+HeldCertificate.Builder.ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.commonName(String hostname)
+Set this certificate's name.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.serialNumber(String serialNumber) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/HeldCertificate.html b/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/HeldCertificate.html new file mode 100644 index 000000000..8b7d3770b --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/HeldCertificate.html @@ -0,0 +1,187 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+HeldCertificate.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
SslContextBuilder |
+SslContextBuilder.certificateChain(HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html b/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html new file mode 100644 index 000000000..27985fc50 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html @@ -0,0 +1,174 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SslContextBuilder |
+SslContextBuilder.addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SslContextBuilder |
+SslContextBuilder.certificateChain(HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/framed/FramedServer.html b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/FramedServer.html new file mode 100644 index 000000000..a785fca50 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/FramedServer.html @@ -0,0 +1,328 @@ + + + + + + +public final class FramedServer +extends com.squareup.okhttp.internal.framed.FramedConnection.Listener+
REFUSE_INCOMING_STREAMS| Constructor and Description | +
|---|
FramedServer(File baseDirectory,
+ SSLSocketFactory sslSocketFactory) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+onStream(com.squareup.okhttp.internal.framed.FramedStream stream) |
+
onSettingspublic FramedServer(File baseDirectory, + SSLSocketFactory sslSocketFactory)+
public void onStream(com.squareup.okhttp.internal.framed.FramedStream stream) + throws IOException+
onStream in class com.squareup.okhttp.internal.framed.FramedConnection.ListenerIOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/framed/class-use/FramedServer.html b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/class-use/FramedServer.html new file mode 100644 index 000000000..ad7a309bd --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/class-use/FramedServer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-frame.html b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-frame.html new file mode 100644 index 000000000..4c55df5dc --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| FramedServer | +
+ A basic SPDY/HTTP_2 server that serves the contents of a local directory.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-tree.html b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-tree.html new file mode 100644 index 000000000..16b76a6e8 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-use.html b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-use.html new file mode 100644 index 000000000..2f42656cc --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/framed/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html b/2.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html new file mode 100644 index 000000000..1ead42a1c --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +| Class | +Description | +
|---|---|
| HeldCertificate | +
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | ++ |
| SslContextBuilder | +
+ Constructs an SSL context for testing.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html b/2.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html new file mode 100644 index 000000000..51bf8f6bc --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/internal/package-use.html b/2.x/mockwebserver/com/squareup/okhttp/internal/package-use.html new file mode 100644 index 000000000..55300ea9a --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/internal/package-use.html @@ -0,0 +1,169 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| Class and Description | +
|---|
| HeldCertificate
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | +
| SslContextBuilder
+ Constructs an SSL context for testing.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html new file mode 100644 index 000000000..733d347e3 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html @@ -0,0 +1,309 @@ + + + + + + + +public abstract class Dispatcher +extends Object+
| Constructor and Description | +
|---|
Dispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+peek()
+Returns an early guess of the next response, used for policy on how an
+ incoming request should be received.
+ |
+
public abstract MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
request. This method may block (for
+ instance, to wait on a CountdownLatch).InterruptedExceptionpublic MockResponse peek()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html new file mode 100644 index 000000000..8c2e79788 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html @@ -0,0 +1,779 @@ + + + + + + + +| Constructor and Description | +
|---|
MockResponse()
+Creates a new mock response with an empty body.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+addHeaderLenient(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+clearHeaders()
+Removes all HTTP headers including any "Content-Length" and
+ "Transfer-encoding" headers that were added by default.
+ |
+
MockResponse |
+clone() |
+
okio.Buffer |
+getBody()
+Returns a copy of the raw HTTP payload.
+ |
+
long |
+getBodyDelay(TimeUnit unit) |
+
Headers |
+getHeaders()
+Returns the HTTP headers, such as "Content-Length: 0".
+ |
+
List<PushPromise> |
+getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
com.squareup.okhttp.internal.framed.Settings |
+getSettings() |
+
SocketPolicy |
+getSocketPolicy() |
+
String |
+getStatus()
+Returns the HTTP response line, such as "HTTP/1.1 200 OK".
+ |
+
long |
+getThrottleBytesPerPeriod() |
+
long |
+getThrottlePeriod(TimeUnit unit) |
+
WebSocketListener |
+getWebSocketListener() |
+
MockResponse |
+removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+setBody(okio.Buffer body) |
+
MockResponse |
+setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+setBodyDelay(long delay,
+ TimeUnit unit)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+setChunkedBody(okio.Buffer body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize
+ bytes. |
+
MockResponse |
+setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked
+ every maxChunkSize bytes. |
+
MockResponse |
+setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the
+ name and value. |
+
MockResponse |
+setHeaders(Headers headers)
+Replaces all headers with those specified in
+headers. |
+
MockResponse |
+setResponseCode(int code) |
+
MockResponse |
+setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+setStatus(String status) |
+
MockResponse |
+throttleBody(long bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the response body writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are written. |
+
String |
+toString() |
+
MockResponse |
+withPush(PushPromise promise)
+When
+protocols
+ include Protocol.HTTP_2, this attaches a
+ pushed stream to this response. |
+
MockResponse |
+withSettings(com.squareup.okhttp.internal.framed.Settings settings)
+
+ |
+
MockResponse |
+withWebSocketUpgrade(WebSocketListener listener)
+Attempts to perform a web socket upgrade on the connection.
+ |
+
public MockResponse()+
public MockResponse clone()+ +
public String getStatus()+
public MockResponse setResponseCode(int code)+
public MockResponse setStatus(String status)+
public Headers getHeaders()+
public MockResponse clearHeaders()+
public MockResponse addHeader(String header)+
header as an HTTP header. For well-formed HTTP header
+ should contain a name followed by a colon and a value.public MockResponse addHeader(String name, + Object value)+
public MockResponse addHeaderLenient(String name, + Object value)+
addHeader(String, Object) this
+ does not validate the name and value.public MockResponse setHeader(String name, + Object value)+
name, then adds a new header with the
+ name and value.public MockResponse setHeaders(Headers headers)+
headers.public MockResponse removeHeader(String name)+
name.public okio.Buffer getBody()+
public MockResponse setBody(okio.Buffer body)+
public MockResponse setBody(String body)+
body.public MockResponse setChunkedBody(okio.Buffer body, + int maxChunkSize)+
body, chunked every maxChunkSize
+ bytes.public MockResponse setChunkedBody(String body, + int maxChunkSize)+
body, chunked
+ every maxChunkSize bytes.public SocketPolicy getSocketPolicy()+
public MockResponse setSocketPolicy(SocketPolicy socketPolicy)+
public MockResponse throttleBody(long bytesPerPeriod, + long period, + TimeUnit unit)+
bytesPerPeriod bytes are written. Use this to simulate
+ network behavior.public long getThrottleBytesPerPeriod()+
public long getThrottlePeriod(TimeUnit unit)+
public MockResponse setBodyDelay(long delay, + TimeUnit unit)+
delay. This applies to the
+ response body only; response headers are not affected.public long getBodyDelay(TimeUnit unit)+
public MockResponse withPush(PushPromise promise)+
protocols
+ include Protocol.HTTP_2, this attaches a
+ pushed stream to this response.public List<PushPromise> getPushPromises()+
public MockResponse withSettings(com.squareup.okhttp.internal.framed.Settings settings)+ +
public com.squareup.okhttp.internal.framed.Settings getSettings()+
public MockResponse withWebSocketUpgrade(WebSocketListener listener)+
public WebSocketListener getWebSocketListener()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html new file mode 100644 index 000000000..9be2f7fad --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html @@ -0,0 +1,710 @@ + + + + + + + +public final class MockWebServer +extends Object +implements org.junit.rules.TestRule+
| Constructor and Description | +
|---|
MockWebServer() |
+
| Modifier and Type | +Method and Description | +
|---|---|
org.junit.runners.model.Statement |
+apply(org.junit.runners.model.Statement base,
+ org.junit.runner.Description description) |
+
void |
+enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
String |
+getCookieDomain()
+Returns a cookie domain for this server.
+ |
+
String |
+getHostName() |
+
int |
+getPort() |
+
int |
+getRequestCount()
+Returns the number of HTTP requests received thus far by this server.
+ |
+
URL |
+getUrl(String path)
+Deprecated.
+ |
+
void |
+setBodyLimit(long maxBodyLength)
+Sets the number of bytes of the POST body to keep in memory to the given
+ limit.
+ |
+
void |
+setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
void |
+setProtocolNegotiationEnabled(boolean protocolNegotiationEnabled)
+Sets whether ALPN is used on incoming HTTPS connections to
+ negotiate a protocol like HTTP/1.1 or HTTP/2.
+ |
+
void |
+setProtocols(List<Protocol> protocols)
+Indicates the protocols supported by ALPN on incoming HTTPS
+ connections.
+ |
+
void |
+setServerSocketFactory(ServerSocketFactory serverSocketFactory) |
+
void |
+shutdown() |
+
void |
+start()
+Equivalent to
+start(0). |
+
void |
+start(InetAddress inetAddress,
+ int port)
+Starts the server on the given address and port.
+ |
+
void |
+start(int port)
+Starts the server on the loopback interface for the given port.
+ |
+
RecordedRequest |
+takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
RecordedRequest |
+takeRequest(long timeout,
+ TimeUnit unit)
+Awaits the next HTTP request (waiting up to the
+ specified wait time if necessary), removes it, and returns it.
+ |
+
Proxy |
+toProxyAddress() |
+
String |
+toString() |
+
HttpUrl |
+url(String path)
+Returns a URL for connecting to this server.
+ |
+
void |
+useHttps(SSLSocketFactory sslSocketFactory,
+ boolean tunnelProxy)
+Serve requests with HTTPS rather than otherwise.
+ |
+
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, + org.junit.runner.Description description)+
apply in interface org.junit.rules.TestRulepublic int getPort()+
public String getHostName()+
public Proxy toProxyAddress()+
public void setServerSocketFactory(ServerSocketFactory serverSocketFactory)+
@Deprecated +public URL getUrl(String path)+
path - the request path, such as "/".public HttpUrl url(String path)+
path - the request path, such as "/".public String getCookieDomain()+
public void setBodyLimit(long maxBodyLength)+
public void setProtocolNegotiationEnabled(boolean protocolNegotiationEnabled)+
public void setProtocols(List<Protocol> protocols)+
negotiation is disabled.protocols - the protocols to use, in order of preference. The list
+ must contain Protocol.HTTP_1_1. It must not contain null.public void useHttps(SSLSocketFactory sslSocketFactory, + boolean tunnelProxy)+
tunnelProxy - true to expect the HTTP CONNECT method before
+ negotiating TLS.public RecordedRequest takeRequest() + throws InterruptedException+
InterruptedExceptionpublic RecordedRequest takeRequest(long timeout, + TimeUnit unit) + throws InterruptedException+
timeout - how long to wait before giving up, in units of
+ unitunit - a TimeUnit determining how to interpret the
+ timeout parameterInterruptedExceptionpublic int getRequestCount()+
public void enqueue(MockResponse response)+
response to be returned to a request made in sequence. The
+ first request is served by the first enqueued response; the second request
+ by the second enqueued response; and so on.ClassCastException - if the default dispatcher has been replaced
+ with setDispatcher(Dispatcher).public void start() + throws IOException+
start(0).IOExceptionpublic void start(int port) + throws IOException+
port - the port to listen to, or 0 for any available port. Automated
+ tests should always use port 0 to avoid flakiness when a specific port
+ is unavailable.IOExceptionpublic void start(InetAddress inetAddress, + int port) + throws IOException+
inetAddress - the address to create the server socket onport - the port to listen to, or 0 for any available port. Automated
+ tests should always use port 0 to avoid flakiness when a specific port
+ is unavailable.IOExceptionpublic void shutdown() + throws IOException+
IOExceptionpublic void setDispatcher(Dispatcher dispatcher)+
queue; custom dispatchers can vary the
+ response based on timing or the content of the request.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html new file mode 100644 index 000000000..17b85acad --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html @@ -0,0 +1,320 @@ + + + + + + + +public final class PushPromise +extends Object+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ Headers headers,
+ MockResponse response) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Headers |
+getHeaders() |
+
String |
+getMethod() |
+
String |
+getPath() |
+
MockResponse |
+getResponse() |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html new file mode 100644 index 000000000..e0d96276c --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html @@ -0,0 +1,394 @@ + + + + + + + +public class QueueDispatcher +extends Dispatcher+
enqueueResponse(MockResponse).| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+responseQueue |
+
| Constructor and Description | +
|---|
QueueDispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
void |
+enqueueResponse(MockResponse response) |
+
MockResponse |
+peek()
+Returns an early guess of the next response, used for policy on how an
+ incoming request should be received.
+ |
+
void |
+setFailFast(boolean failFast) |
+
void |
+setFailFast(MockResponse failFastResponse) |
+
protected final BlockingQueue<MockResponse> responseQueue+
public MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
Dispatcherrequest. This method may block (for
+ instance, to wait on a CountdownLatch).dispatch in class DispatcherInterruptedExceptionpublic MockResponse peek()+
Dispatcherpeek in class Dispatcherpublic void enqueueResponse(MockResponse response)+
public void setFailFast(boolean failFast)+
public void setFailFast(MockResponse failFastResponse)+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html new file mode 100644 index 000000000..d10ce68d4 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html @@ -0,0 +1,466 @@ + + + + + + + +public final class RecordedRequest +extends Object+
| Constructor and Description | +
|---|
RecordedRequest(String requestLine,
+ Headers headers,
+ List<Integer> chunkSizes,
+ long bodySize,
+ okio.Buffer body,
+ int sequenceNumber,
+ Socket socket) |
+
| Modifier and Type | +Method and Description | +
|---|---|
okio.Buffer |
+getBody()
+Returns the body of this POST request.
+ |
+
long |
+getBodySize()
+Returns the total size of the body of this POST request (before
+ truncation).
+ |
+
List<Integer> |
+getChunkSizes()
+Returns the sizes of the chunks of this request's body, or an empty list
+ if the request's body was empty or unchunked.
+ |
+
String |
+getHeader(String name)
+Returns the first header named
+name, or null if no such header exists. |
+
Headers |
+getHeaders()
+Returns all headers.
+ |
+
String |
+getMethod() |
+
String |
+getPath() |
+
String |
+getRequestLine() |
+
int |
+getSequenceNumber()
+Returns the index of this request on its HTTP connection.
+ |
+
TlsVersion |
+getTlsVersion()
+Returns the connection's TLS version or null if the connection doesn't use SSL.
+ |
+
String |
+getUtf8Body()
+Deprecated.
+
+Use
+getBody().readUtf8(). |
+
String |
+toString() |
+
public String getRequestLine()+
public String getMethod()+
public String getPath()+
public Headers getHeaders()+
public String getHeader(String name)+
name, or null if no such header exists.public List<Integer> getChunkSizes()+
public long getBodySize()+
public okio.Buffer getBody()+
public String getUtf8Body()+
getBody().readUtf8().public int getSequenceNumber()+
public TlsVersion getTlsVersion()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html new file mode 100644 index 000000000..15f23cf2f --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html @@ -0,0 +1,495 @@ + + + + + + + +public enum SocketPolicy +extends Enum<SocketPolicy>+
| Enum Constant and Description | +
|---|
DISCONNECT_AFTER_REQUEST
+Close connection after reading the request but before writing the response.
+ |
+
DISCONNECT_AT_END
+Close the socket after the response.
+ |
+
DISCONNECT_AT_START
+Request immediate close of connection without even reading the request.
+ |
+
DISCONNECT_DURING_REQUEST_BODY
+Close connection after reading half of the request body (if present).
+ |
+
DISCONNECT_DURING_RESPONSE_BODY
+Close connection after writing half of the response body (if present).
+ |
+
FAIL_HANDSHAKE
+Don't trust the client during the SSL handshake.
+ |
+
KEEP_OPEN
+Keep the socket open after the response.
+ |
+
NO_RESPONSE
+Don't respond to the request but keep the socket open.
+ |
+
SHUTDOWN_INPUT_AT_END
+Shutdown the socket input after sending the response.
+ |
+
SHUTDOWN_OUTPUT_AT_END
+Shutdown the socket output after sending the response.
+ |
+
UPGRADE_TO_SSL_AT_END
+Wrap the socket with SSL at the completion of this request/response pair.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static SocketPolicy |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final SocketPolicy KEEP_OPEN+
public static final SocketPolicy DISCONNECT_AT_END+
public static final SocketPolicy UPGRADE_TO_SSL_AT_END+
public static final SocketPolicy DISCONNECT_AT_START+
public static final SocketPolicy DISCONNECT_AFTER_REQUEST+
public static final SocketPolicy DISCONNECT_DURING_REQUEST_BODY+
public static final SocketPolicy DISCONNECT_DURING_RESPONSE_BODY+
public static final SocketPolicy FAIL_HANDSHAKE+
public static final SocketPolicy SHUTDOWN_INPUT_AT_END+
public static final SocketPolicy SHUTDOWN_OUTPUT_AT_END+
public static final SocketPolicy NO_RESPONSE+
public static SocketPolicy[] values()+
+for (SocketPolicy c : SocketPolicy.values()) + System.out.println(c); +
public static SocketPolicy valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html new file mode 100644 index 000000000..83d02ac6d --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html @@ -0,0 +1,183 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Class and Description | +
|---|---|
class |
+QueueDispatcher
+Default dispatcher that processes a script of responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html new file mode 100644 index 000000000..c5efde46e --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html @@ -0,0 +1,364 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+QueueDispatcher.responseQueue |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+MockResponse.addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+MockResponse.addHeaderLenient(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+MockResponse.clearHeaders()
+Removes all HTTP headers including any "Content-Length" and
+ "Transfer-encoding" headers that were added by default.
+ |
+
MockResponse |
+MockResponse.clone() |
+
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+PushPromise.getResponse() |
+
MockResponse |
+QueueDispatcher.peek() |
+
MockResponse |
+Dispatcher.peek()
+Returns an early guess of the next response, used for policy on how an
+ incoming request should be received.
+ |
+
MockResponse |
+MockResponse.removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+MockResponse.setBody(okio.Buffer body) |
+
MockResponse |
+MockResponse.setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+MockResponse.setBodyDelay(long delay,
+ TimeUnit unit)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+MockResponse.setChunkedBody(okio.Buffer body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize
+ bytes. |
+
MockResponse |
+MockResponse.setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked
+ every maxChunkSize bytes. |
+
MockResponse |
+MockResponse.setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the
+ name and value. |
+
MockResponse |
+MockResponse.setHeaders(Headers headers)
+Replaces all headers with those specified in
+headers. |
+
MockResponse |
+MockResponse.setResponseCode(int code) |
+
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+MockResponse.setStatus(String status) |
+
MockResponse |
+MockResponse.throttleBody(long bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the response body writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are written. |
+
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols
+ include Protocol.HTTP_2, this attaches a
+ pushed stream to this response. |
+
MockResponse |
+MockResponse.withSettings(com.squareup.okhttp.internal.framed.Settings settings)
+
+ |
+
MockResponse |
+MockResponse.withWebSocketUpgrade(WebSocketListener listener)
+Attempts to perform a web socket upgrade on the connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
void |
+QueueDispatcher.enqueueResponse(MockResponse response) |
+
void |
+QueueDispatcher.setFailFast(MockResponse failFastResponse) |
+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ Headers headers,
+ MockResponse response) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html new file mode 100644 index 000000000..80f25462b --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html new file mode 100644 index 000000000..797e31ab8 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html @@ -0,0 +1,185 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
List<PushPromise> |
+MockResponse.getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols
+ include Protocol.HTTP_2, this attaches a
+ pushed stream to this response. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html new file mode 100644 index 000000000..b117f5fa8 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html new file mode 100644 index 000000000..9a3e293e7 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html @@ -0,0 +1,195 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
RecordedRequest |
+MockWebServer.takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
RecordedRequest |
+MockWebServer.takeRequest(long timeout,
+ TimeUnit unit)
+Awaits the next HTTP request (waiting up to the
+ specified wait time if necessary), removes it, and returns it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html new file mode 100644 index 000000000..6b80f1226 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html @@ -0,0 +1,192 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SocketPolicy |
+MockResponse.getSocketPolicy() |
+
static SocketPolicy |
+SocketPolicy.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+SocketPolicy.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html new file mode 100644 index 000000000..01f70f0e5 --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html @@ -0,0 +1,30 @@ + + + + + + +| Class | +Description | +
|---|---|
| Dispatcher | +
+ Handler for mock server requests.
+ |
+
| MockResponse | +
+ A scripted response to be replayed by the mock web server.
+ |
+
| MockWebServer | +
+ A scriptable web server.
+ |
+
| PushPromise | +
+ An HTTP request initiated by the server.
+ |
+
| QueueDispatcher | +
+ Default dispatcher that processes a script of responses.
+ |
+
| RecordedRequest | +
+ An HTTP request that came into the mock web server.
+ |
+
| Enum | +Description | +
|---|---|
| SocketPolicy | +
+ What should be done with the incoming socket.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html new file mode 100644 index 000000000..753a1407d --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html @@ -0,0 +1,159 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html new file mode 100644 index 000000000..51906391b --- /dev/null +++ b/2.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html @@ -0,0 +1,181 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Class and Description | +
|---|
| Dispatcher
+ Handler for mock server requests.
+ |
+
| MockResponse
+ A scripted response to be replayed by the mock web server.
+ |
+
| PushPromise
+ An HTTP request initiated by the server.
+ |
+
| RecordedRequest
+ An HTTP request that came into the mock web server.
+ |
+
| SocketPolicy
+ What should be done with the incoming socket.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/constant-values.html b/2.x/mockwebserver/constant-values.html new file mode 100644 index 000000000..8dc0c1627 --- /dev/null +++ b/2.x/mockwebserver/constant-values.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/deprecated-list.html b/2.x/mockwebserver/deprecated-list.html new file mode 100644 index 000000000..bb5ee9d6d --- /dev/null +++ b/2.x/mockwebserver/deprecated-list.html @@ -0,0 +1,153 @@ + + + + + + +| Method and Description | +
|---|
| com.squareup.okhttp.mockwebserver.MockWebServer.getUrl(String) | +
| com.squareup.okhttp.mockwebserver.RecordedRequest.getUtf8Body()
+ Use
+getBody().readUtf8(). |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/help-doc.html b/2.x/mockwebserver/help-doc.html new file mode 100644 index 000000000..d1ea5bcbc --- /dev/null +++ b/2.x/mockwebserver/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/index-all.html b/2.x/mockwebserver/index-all.html new file mode 100644 index 000000000..81ea43a9e --- /dev/null +++ b/2.x/mockwebserver/index-all.html @@ -0,0 +1,631 @@ + + + + + + +header as an HTTP header.maxIntermediateCas
+ intermediate certificate authorities beneath it.request.response to be returned to a request made in sequence.name, or null if no such header exists.getBody().readUtf8().name.body.delay.body, chunked every maxChunkSize
+ bytes.body, chunked
+ every maxChunkSize bytes.name, then adds a new header with the
+ name and value.headers.start(0).bytesPerPeriod bytes are written.protocols
+ include Protocol.HTTP_2, this attaches a
+ pushed stream to this response.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/index.html b/2.x/mockwebserver/index.html new file mode 100644 index 000000000..8157b4f84 --- /dev/null +++ b/2.x/mockwebserver/index.html @@ -0,0 +1,75 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
++ + diff --git a/2.x/mockwebserver/overview-summary.html b/2.x/mockwebserver/overview-summary.html new file mode 100644 index 000000000..876d527e5 --- /dev/null +++ b/2.x/mockwebserver/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +
| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| com.squareup.okhttp.internal.framed | ++ |
| com.squareup.okhttp.mockwebserver | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/overview-tree.html b/2.x/mockwebserver/overview-tree.html new file mode 100644 index 000000000..fe6803cc6 --- /dev/null +++ b/2.x/mockwebserver/overview-tree.html @@ -0,0 +1,169 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/mockwebserver/package-list b/2.x/mockwebserver/package-list new file mode 100644 index 000000000..cccb0f5b2 --- /dev/null +++ b/2.x/mockwebserver/package-list @@ -0,0 +1,3 @@ +com.squareup.okhttp.internal +com.squareup.okhttp.internal.framed +com.squareup.okhttp.mockwebserver diff --git a/2.x/mockwebserver/resources/background.gif b/2.x/mockwebserver/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/mockwebserver/resources/background.gif differ diff --git a/2.x/mockwebserver/resources/tab.gif b/2.x/mockwebserver/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/mockwebserver/resources/tab.gif differ diff --git a/2.x/mockwebserver/resources/titlebar.gif b/2.x/mockwebserver/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/mockwebserver/resources/titlebar.gif differ diff --git a/2.x/mockwebserver/resources/titlebar_end.gif b/2.x/mockwebserver/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/mockwebserver/resources/titlebar_end.gif differ diff --git a/2.x/mockwebserver/script.js b/2.x/mockwebserver/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/mockwebserver/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/mockwebserver/stylesheet.css b/2.x/mockwebserver/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/mockwebserver/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/mockwebserver/version.txt b/2.x/mockwebserver/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/mockwebserver/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okcurl/META-INF/MANIFEST.MF b/2.x/okcurl/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okcurl/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okcurl/allclasses-frame.html b/2.x/okcurl/allclasses-frame.html new file mode 100644 index 000000000..291f9f377 --- /dev/null +++ b/2.x/okcurl/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
boolean |
+allowInsecure |
+
int |
+connectTimeout |
+
String |
+data |
+
boolean |
+followRedirects |
+
List<String> |
+headers |
+
String |
+method |
+
int |
+readTimeout |
+
String |
+referer |
+
boolean |
+showHeaders |
+
boolean |
+showHttp2Frames |
+
String |
+url |
+
String |
+userAgent |
+
boolean |
+version |
+
commandMetadata, help| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+run() |
+
showHelpIfRequestedpublic String method+
public String data+
public String userAgent+
public int connectTimeout+
public int readTimeout+
public boolean followRedirects+
public boolean allowInsecure+
public boolean showHeaders+
public boolean showHttp2Frames+
public String referer+
public boolean version+
public String url+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/com/squareup/okhttp/curl/class-use/Main.html b/2.x/okcurl/com/squareup/okhttp/curl/class-use/Main.html new file mode 100644 index 000000000..6f0de8cf3 --- /dev/null +++ b/2.x/okcurl/com/squareup/okhttp/curl/class-use/Main.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/com/squareup/okhttp/curl/package-frame.html b/2.x/okcurl/com/squareup/okhttp/curl/package-frame.html new file mode 100644 index 000000000..343590bab --- /dev/null +++ b/2.x/okcurl/com/squareup/okhttp/curl/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Main | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/com/squareup/okhttp/curl/package-tree.html b/2.x/okcurl/com/squareup/okhttp/curl/package-tree.html new file mode 100644 index 000000000..e99efff07 --- /dev/null +++ b/2.x/okcurl/com/squareup/okhttp/curl/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/com/squareup/okhttp/curl/package-use.html b/2.x/okcurl/com/squareup/okhttp/curl/package-use.html new file mode 100644 index 000000000..e31a6eb58 --- /dev/null +++ b/2.x/okcurl/com/squareup/okhttp/curl/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/constant-values.html b/2.x/okcurl/constant-values.html new file mode 100644 index 000000000..28404f8e6 --- /dev/null +++ b/2.x/okcurl/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/deprecated-list.html b/2.x/okcurl/deprecated-list.html new file mode 100644 index 000000000..382f42487 --- /dev/null +++ b/2.x/okcurl/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/help-doc.html b/2.x/okcurl/help-doc.html new file mode 100644 index 000000000..fcb689c6e --- /dev/null +++ b/2.x/okcurl/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/index-all.html b/2.x/okcurl/index-all.html new file mode 100644 index 000000000..0c433d1ef --- /dev/null +++ b/2.x/okcurl/index-all.html @@ -0,0 +1,217 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/index.html b/2.x/okcurl/index.html new file mode 100644 index 000000000..c0cfa5451 --- /dev/null +++ b/2.x/okcurl/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okcurl/package-list b/2.x/okcurl/package-list new file mode 100644 index 000000000..369b2e8b4 --- /dev/null +++ b/2.x/okcurl/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.curl diff --git a/2.x/okcurl/resources/background.gif b/2.x/okcurl/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okcurl/resources/background.gif differ diff --git a/2.x/okcurl/resources/tab.gif b/2.x/okcurl/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okcurl/resources/tab.gif differ diff --git a/2.x/okcurl/resources/titlebar.gif b/2.x/okcurl/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okcurl/resources/titlebar.gif differ diff --git a/2.x/okcurl/resources/titlebar_end.gif b/2.x/okcurl/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okcurl/resources/titlebar_end.gif differ diff --git a/2.x/okcurl/script.js b/2.x/okcurl/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okcurl/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okcurl/stylesheet.css b/2.x/okcurl/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okcurl/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okcurl/version.txt b/2.x/okcurl/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okcurl/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okhttp-android-support/META-INF/MANIFEST.MF b/2.x/okhttp-android-support/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okhttp-android-support/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okhttp-android-support/allclasses-frame.html b/2.x/okhttp-android-support/allclasses-frame.html new file mode 100644 index 000000000..8446e7198 --- /dev/null +++ b/2.x/okhttp-android-support/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +public class AndroidInternal +extends Object+
HttpURLConnection / HttpsURLConnection
+ implementation including support for a custom ResponseCache.| Modifier and Type | +Method and Description | +
|---|---|
static void |
+setResponseCache(OkUrlFactory okUrlFactory,
+ ResponseCache responseCache)
+Sets the response cache to be used to read and write cached responses.
+ |
+
public static void setResponseCache(OkUrlFactory okUrlFactory, + ResponseCache responseCache)+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/AndroidShimResponseCache.html b/2.x/okhttp-android-support/com/squareup/okhttp/AndroidShimResponseCache.html new file mode 100644 index 000000000..7745ccd19 --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/AndroidShimResponseCache.html @@ -0,0 +1,495 @@ + + + + + + +public class AndroidShimResponseCache +extends ResponseCache+
ResponseCache
+ with stats.| Modifier and Type | +Method and Description | +
|---|---|
void |
+close()
+Uninstalls the cache and releases any active resources.
+ |
+
static AndroidShimResponseCache |
+create(File directory,
+ long maxSize) |
+
void |
+delete()
+Uninstalls the cache and deletes all of its stored contents.
+ |
+
void |
+flush()
+Force buffered operations to the filesystem.
+ |
+
CacheResponse |
+get(URI uri,
+ String requestMethod,
+ Map<String,List<String>> requestHeaders) |
+
Cache |
+getCache() |
+
int |
+getHitCount()
+Returns the number of HTTP requests whose response was provided by the
+ cache.
+ |
+
int |
+getNetworkCount()
+Returns the number of HTTP requests that required the network to either
+ supply a response or validate a locally cached response.
+ |
+
int |
+getRequestCount()
+Returns the total number of HTTP requests that were made.
+ |
+
boolean |
+isEquivalent(File directory,
+ long maxSize) |
+
long |
+maxSize()
+Returns the maximum number of bytes that this cache should use to store
+ its data.
+ |
+
CacheRequest |
+put(URI uri,
+ URLConnection urlConnection) |
+
long |
+size()
+Returns the number of bytes currently being used to store the values in
+ this cache.
+ |
+
getDefault, setDefaultpublic static AndroidShimResponseCache create(File directory, + long maxSize) + throws IOException+
IOExceptionpublic boolean isEquivalent(File directory, + long maxSize)+
public Cache getCache()+
public CacheResponse get(URI uri, + String requestMethod, + Map<String,List<String>> requestHeaders) + throws IOException+
get in class ResponseCacheIOExceptionpublic CacheRequest put(URI uri, + URLConnection urlConnection) + throws IOException+
put in class ResponseCacheIOExceptionpublic long size() + throws IOException+
maxSize() if a background
+ deletion is pending.IOExceptionpublic long maxSize()+
public void flush() + throws IOException+
IOExceptionpublic int getNetworkCount()+
public int getHitCount()+
GET requests that were
+ validated over the network.public int getRequestCount()+
public void close() + throws IOException+
IOExceptionpublic void delete() + throws IOException+
IOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/OkCacheContainer.html b/2.x/okhttp-android-support/com/squareup/okhttp/OkCacheContainer.html new file mode 100644 index 000000000..a543ca39d --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/OkCacheContainer.html @@ -0,0 +1,223 @@ + + + + + + +public interface OkCacheContainer
+ResponseCache contains a
+ Cache.| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+getCache() |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/class-use/AndroidInternal.html b/2.x/okhttp-android-support/com/squareup/okhttp/class-use/AndroidInternal.html new file mode 100644 index 000000000..4d8017461 --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/class-use/AndroidInternal.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/class-use/AndroidShimResponseCache.html b/2.x/okhttp-android-support/com/squareup/okhttp/class-use/AndroidShimResponseCache.html new file mode 100644 index 000000000..5e847009b --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/class-use/AndroidShimResponseCache.html @@ -0,0 +1,150 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static AndroidShimResponseCache |
+AndroidShimResponseCache.create(File directory,
+ long maxSize) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/class-use/OkCacheContainer.html b/2.x/okhttp-android-support/com/squareup/okhttp/class-use/OkCacheContainer.html new file mode 100644 index 000000000..4d45d6618 --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/class-use/OkCacheContainer.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/package-frame.html b/2.x/okhttp-android-support/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..e7ee35fcd --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +| Interface | +Description | +
|---|---|
| OkCacheContainer | +
+ An interface that allows OkHttp to detect that a
+ResponseCache contains a
+ Cache. |
+
| Class | +Description | +
|---|---|
| AndroidInternal | +
+ Back doors to enable the use of OkHttp within the Android platform libraries.
+ |
+
| AndroidShimResponseCache | +
+ A class provided for use by Android so that it can continue supporting a
+ResponseCache
+ with stats. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/package-tree.html b/2.x/okhttp-android-support/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..2382facb3 --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/com/squareup/okhttp/package-use.html b/2.x/okhttp-android-support/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..148140b16 --- /dev/null +++ b/2.x/okhttp-android-support/com/squareup/okhttp/package-use.html @@ -0,0 +1,145 @@ + + + + + + +| Class and Description | +
|---|
| AndroidShimResponseCache
+ A class provided for use by Android so that it can continue supporting a
+ResponseCache
+ with stats. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/constant-values.html b/2.x/okhttp-android-support/constant-values.html new file mode 100644 index 000000000..a52344981 --- /dev/null +++ b/2.x/okhttp-android-support/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/deprecated-list.html b/2.x/okhttp-android-support/deprecated-list.html new file mode 100644 index 000000000..292bab5b8 --- /dev/null +++ b/2.x/okhttp-android-support/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/help-doc.html b/2.x/okhttp-android-support/help-doc.html new file mode 100644 index 000000000..c709e980e --- /dev/null +++ b/2.x/okhttp-android-support/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/index-all.html b/2.x/okhttp-android-support/index-all.html new file mode 100644 index 000000000..d3449c5c5 --- /dev/null +++ b/2.x/okhttp-android-support/index-all.html @@ -0,0 +1,249 @@ + + + + + + +ResponseCache
+ with stats.ResponseCache contains a
+ Cache.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/index.html b/2.x/okhttp-android-support/index.html new file mode 100644 index 000000000..80ec0658a --- /dev/null +++ b/2.x/okhttp-android-support/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-android-support/package-list b/2.x/okhttp-android-support/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/2.x/okhttp-android-support/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/2.x/okhttp-android-support/resources/background.gif b/2.x/okhttp-android-support/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okhttp-android-support/resources/background.gif differ diff --git a/2.x/okhttp-android-support/resources/tab.gif b/2.x/okhttp-android-support/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okhttp-android-support/resources/tab.gif differ diff --git a/2.x/okhttp-android-support/resources/titlebar.gif b/2.x/okhttp-android-support/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okhttp-android-support/resources/titlebar.gif differ diff --git a/2.x/okhttp-android-support/resources/titlebar_end.gif b/2.x/okhttp-android-support/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okhttp-android-support/resources/titlebar_end.gif differ diff --git a/2.x/okhttp-android-support/script.js b/2.x/okhttp-android-support/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okhttp-android-support/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okhttp-android-support/stylesheet.css b/2.x/okhttp-android-support/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okhttp-android-support/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okhttp-android-support/version.txt b/2.x/okhttp-android-support/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okhttp-android-support/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okhttp-apache/META-INF/MANIFEST.MF b/2.x/okhttp-apache/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okhttp-apache/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okhttp-apache/allclasses-frame.html b/2.x/okhttp-apache/allclasses-frame.html new file mode 100644 index 000000000..ac2886bb8 --- /dev/null +++ b/2.x/okhttp-apache/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +public final class OkApacheClient +extends Object +implements HttpClient+
HttpClient API using OkHttpClient.
+ + Warning: Many core features of Apache HTTP client are not implemented by this + API. This includes the keep-alive strategy, cookie store, credentials provider, route planner + and others.
| Constructor and Description | +
|---|
OkApacheClient() |
+
OkApacheClient(OkHttpClient client) |
+
| Modifier and Type | +Method and Description | +
|---|---|
HttpResponse |
+execute(HttpHost host,
+ HttpRequest request) |
+
HttpResponse |
+execute(HttpHost host,
+ HttpRequest request,
+ HttpContext context) |
+
<T> T |
+execute(HttpHost host,
+ HttpRequest request,
+ ResponseHandler<? extends T> handler) |
+
<T> T |
+execute(HttpHost host,
+ HttpRequest request,
+ ResponseHandler<? extends T> handler,
+ HttpContext context) |
+
HttpResponse |
+execute(HttpUriRequest request) |
+
HttpResponse |
+execute(HttpUriRequest request,
+ HttpContext context) |
+
<T> T |
+execute(HttpUriRequest request,
+ ResponseHandler<? extends T> handler) |
+
<T> T |
+execute(HttpUriRequest request,
+ ResponseHandler<? extends T> handler,
+ HttpContext context) |
+
ClientConnectionManager |
+getConnectionManager() |
+
HttpParams |
+getParams() |
+
public OkApacheClient()+
public OkApacheClient(OkHttpClient client)+
public HttpParams getParams()+
getParams in interface HttpClientpublic ClientConnectionManager getConnectionManager()+
getConnectionManager in interface HttpClientpublic HttpResponse execute(HttpUriRequest request) + throws IOException+
execute in interface HttpClientIOExceptionpublic HttpResponse execute(HttpUriRequest request, + HttpContext context) + throws IOException+
execute in interface HttpClientIOExceptionpublic HttpResponse execute(HttpHost host, + HttpRequest request) + throws IOException+
execute in interface HttpClientIOExceptionpublic HttpResponse execute(HttpHost host, + HttpRequest request, + HttpContext context) + throws IOException+
execute in interface HttpClientIOExceptionpublic <T> T execute(HttpUriRequest request, + ResponseHandler<? extends T> handler) + throws IOException+
execute in interface HttpClientIOExceptionpublic <T> T execute(HttpUriRequest request, + ResponseHandler<? extends T> handler, + HttpContext context) + throws IOException+
execute in interface HttpClientIOExceptionpublic <T> T execute(HttpHost host, + HttpRequest request, + ResponseHandler<? extends T> handler) + throws IOException+
execute in interface HttpClientIOExceptionpublic <T> T execute(HttpHost host, + HttpRequest request, + ResponseHandler<? extends T> handler, + HttpContext context) + throws IOException+
execute in interface HttpClientIOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html b/2.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html new file mode 100644 index 000000000..798fbd2ec --- /dev/null +++ b/2.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html b/2.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html new file mode 100644 index 000000000..e25f3ac59 --- /dev/null +++ b/2.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkApacheClient | +
+ Implements Apache's
+HttpClient API using OkHttpClient. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html b/2.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html new file mode 100644 index 000000000..35fbffef1 --- /dev/null +++ b/2.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html b/2.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html new file mode 100644 index 000000000..eeae2eea3 --- /dev/null +++ b/2.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/constant-values.html b/2.x/okhttp-apache/constant-values.html new file mode 100644 index 000000000..2395b8d36 --- /dev/null +++ b/2.x/okhttp-apache/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/deprecated-list.html b/2.x/okhttp-apache/deprecated-list.html new file mode 100644 index 000000000..20fc1cb20 --- /dev/null +++ b/2.x/okhttp-apache/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/help-doc.html b/2.x/okhttp-apache/help-doc.html new file mode 100644 index 000000000..d6a5ec853 --- /dev/null +++ b/2.x/okhttp-apache/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/index-all.html b/2.x/okhttp-apache/index-all.html new file mode 100644 index 000000000..2f6e25da9 --- /dev/null +++ b/2.x/okhttp-apache/index-all.html @@ -0,0 +1,175 @@ + + + + + + +HttpClient API using OkHttpClient.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/index.html b/2.x/okhttp-apache/index.html new file mode 100644 index 000000000..2d487d467 --- /dev/null +++ b/2.x/okhttp-apache/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-apache/package-list b/2.x/okhttp-apache/package-list new file mode 100644 index 000000000..510faa8fd --- /dev/null +++ b/2.x/okhttp-apache/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.apache diff --git a/2.x/okhttp-apache/resources/background.gif b/2.x/okhttp-apache/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okhttp-apache/resources/background.gif differ diff --git a/2.x/okhttp-apache/resources/tab.gif b/2.x/okhttp-apache/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okhttp-apache/resources/tab.gif differ diff --git a/2.x/okhttp-apache/resources/titlebar.gif b/2.x/okhttp-apache/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okhttp-apache/resources/titlebar.gif differ diff --git a/2.x/okhttp-apache/resources/titlebar_end.gif b/2.x/okhttp-apache/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okhttp-apache/resources/titlebar_end.gif differ diff --git a/2.x/okhttp-apache/script.js b/2.x/okhttp-apache/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okhttp-apache/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okhttp-apache/stylesheet.css b/2.x/okhttp-apache/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okhttp-apache/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okhttp-apache/version.txt b/2.x/okhttp-apache/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okhttp-apache/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okhttp-testing-support/META-INF/MANIFEST.MF b/2.x/okhttp-testing-support/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okhttp-testing-support/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okhttp-testing-support/allclasses-frame.html b/2.x/okhttp-testing-support/allclasses-frame.html new file mode 100644 index 000000000..1fe8b41ad --- /dev/null +++ b/2.x/okhttp-testing-support/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +public final class InMemoryFileSystem +extends Object +implements com.squareup.okhttp.internal.io.FileSystem, org.junit.rules.TestRule+
SYSTEM| Constructor and Description | +
|---|
InMemoryFileSystem() |
+
| Modifier and Type | +Method and Description | +
|---|---|
okio.Sink |
+appendingSink(File file) |
+
org.junit.runners.model.Statement |
+apply(org.junit.runners.model.Statement base,
+ org.junit.runner.Description description) |
+
void |
+delete(File file) |
+
void |
+deleteContents(File directory) |
+
void |
+ensureResourcesClosed() |
+
boolean |
+exists(File file) |
+
void |
+rename(File from,
+ File to) |
+
okio.Sink |
+sink(File file) |
+
long |
+size(File file) |
+
okio.Source |
+source(File file) |
+
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, + org.junit.runner.Description description)+
apply in interface org.junit.rules.TestRulepublic void ensureResourcesClosed()+
public okio.Source source(File file) + throws FileNotFoundException+
source in interface com.squareup.okhttp.internal.io.FileSystemFileNotFoundExceptionpublic okio.Sink sink(File file) + throws FileNotFoundException+
sink in interface com.squareup.okhttp.internal.io.FileSystemFileNotFoundExceptionpublic okio.Sink appendingSink(File file) + throws FileNotFoundException+
appendingSink in interface com.squareup.okhttp.internal.io.FileSystemFileNotFoundExceptionpublic void delete(File file) + throws IOException+
delete in interface com.squareup.okhttp.internal.io.FileSystemIOExceptionpublic boolean exists(File file) + throws IOException+
exists in interface com.squareup.okhttp.internal.io.FileSystemIOExceptionpublic long size(File file)+
size in interface com.squareup.okhttp.internal.io.FileSystempublic void rename(File from, + File to) + throws IOException+
rename in interface com.squareup.okhttp.internal.io.FileSystemIOExceptionpublic void deleteContents(File directory) + throws IOException+
deleteContents in interface com.squareup.okhttp.internal.io.FileSystemIOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/class-use/InMemoryFileSystem.html b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/class-use/InMemoryFileSystem.html new file mode 100644 index 000000000..e0e93b37a --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/class-use/InMemoryFileSystem.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-frame.html b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-frame.html new file mode 100644 index 000000000..63d6242a4 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| InMemoryFileSystem | +
+ A simple file system where all files are held in memory.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-tree.html b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-tree.html new file mode 100644 index 000000000..47d232718 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-use.html b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-use.html new file mode 100644 index 000000000..091395be0 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/internal/io/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/InstallUncaughtExceptionHandlerListener.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/InstallUncaughtExceptionHandlerListener.html new file mode 100644 index 000000000..bb0612da2 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/InstallUncaughtExceptionHandlerListener.html @@ -0,0 +1,336 @@ + + + + + + +public class InstallUncaughtExceptionHandlerListener
+extends org.junit.runner.notification.RunListener
+RunListener used to install an aggressive default
+ Thread.UncaughtExceptionHandler similar to the one found on Android.
+ No exceptions should escape from OkHttp that might cause apps to be killed or tests to fail on
+ Android.| Constructor and Description | +
|---|
InstallUncaughtExceptionHandlerListener() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+testRunFinished(org.junit.runner.Result result) |
+
void |
+testRunStarted(org.junit.runner.Description description) |
+
void |
+testStarted(org.junit.runner.Description description) |
+
testAssumptionFailure, testFailure, testFinished, testIgnoredpublic InstallUncaughtExceptionHandlerListener()+
public void testRunStarted(org.junit.runner.Description description) + throws Exception+
testRunStarted in class org.junit.runner.notification.RunListenerExceptionpublic void testStarted(org.junit.runner.Description description) + throws Exception+
testStarted in class org.junit.runner.notification.RunListenerExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/RecordingHostnameVerifier.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/RecordingHostnameVerifier.html new file mode 100644 index 000000000..ef9f2ade2 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/RecordingHostnameVerifier.html @@ -0,0 +1,320 @@ + + + + + + +public final class RecordingHostnameVerifier +extends Object +implements HostnameVerifier+
| Modifier and Type | +Field and Description | +
|---|---|
List<String> |
+calls |
+
| Constructor and Description | +
|---|
RecordingHostnameVerifier() |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+verify(String hostname,
+ SSLSession session) |
+
public RecordingHostnameVerifier()+
public boolean verify(String hostname, + SSLSession session)+
verify in interface HostnameVerifierCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/class-use/InstallUncaughtExceptionHandlerListener.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/class-use/InstallUncaughtExceptionHandlerListener.html new file mode 100644 index 000000000..a27ab443f --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/class-use/InstallUncaughtExceptionHandlerListener.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/class-use/RecordingHostnameVerifier.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/class-use/RecordingHostnameVerifier.html new file mode 100644 index 000000000..bf4fdb1b8 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/class-use/RecordingHostnameVerifier.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-frame.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-frame.html new file mode 100644 index 000000000..03ac37dff --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +| Class | +Description | +
|---|---|
| InstallUncaughtExceptionHandlerListener | +
+ A
+RunListener used to install an aggressive default
+ Thread.UncaughtExceptionHandler similar to the one found on Android. |
+
| RecordingHostnameVerifier | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-tree.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-tree.html new file mode 100644 index 000000000..6dabb7c5f --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-tree.html @@ -0,0 +1,144 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-use.html b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-use.html new file mode 100644 index 000000000..4a06d5d83 --- /dev/null +++ b/2.x/okhttp-testing-support/com/squareup/okhttp/testing/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/constant-values.html b/2.x/okhttp-testing-support/constant-values.html new file mode 100644 index 000000000..d4909a0c2 --- /dev/null +++ b/2.x/okhttp-testing-support/constant-values.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/deprecated-list.html b/2.x/okhttp-testing-support/deprecated-list.html new file mode 100644 index 000000000..4c90ef63c --- /dev/null +++ b/2.x/okhttp-testing-support/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/help-doc.html b/2.x/okhttp-testing-support/help-doc.html new file mode 100644 index 000000000..3b9a98116 --- /dev/null +++ b/2.x/okhttp-testing-support/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/index-all.html b/2.x/okhttp-testing-support/index-all.html new file mode 100644 index 000000000..476622366 --- /dev/null +++ b/2.x/okhttp-testing-support/index-all.html @@ -0,0 +1,228 @@ + + + + + + +RunListener used to install an aggressive default
+ Thread.UncaughtExceptionHandler similar to the one found on Android.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/index.html b/2.x/okhttp-testing-support/index.html new file mode 100644 index 000000000..c07e98d99 --- /dev/null +++ b/2.x/okhttp-testing-support/index.html @@ -0,0 +1,75 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
++ + diff --git a/2.x/okhttp-testing-support/overview-summary.html b/2.x/okhttp-testing-support/overview-summary.html new file mode 100644 index 000000000..92dfa4a48 --- /dev/null +++ b/2.x/okhttp-testing-support/overview-summary.html @@ -0,0 +1,144 @@ + + + + + + +
| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal.io | ++ |
| com.squareup.okhttp.testing | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/overview-tree.html b/2.x/okhttp-testing-support/overview-tree.html new file mode 100644 index 000000000..3e6b0d358 --- /dev/null +++ b/2.x/okhttp-testing-support/overview-tree.html @@ -0,0 +1,146 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-testing-support/package-list b/2.x/okhttp-testing-support/package-list new file mode 100644 index 000000000..e94322002 --- /dev/null +++ b/2.x/okhttp-testing-support/package-list @@ -0,0 +1,2 @@ +com.squareup.okhttp.internal.io +com.squareup.okhttp.testing diff --git a/2.x/okhttp-testing-support/resources/background.gif b/2.x/okhttp-testing-support/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okhttp-testing-support/resources/background.gif differ diff --git a/2.x/okhttp-testing-support/resources/tab.gif b/2.x/okhttp-testing-support/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okhttp-testing-support/resources/tab.gif differ diff --git a/2.x/okhttp-testing-support/resources/titlebar.gif b/2.x/okhttp-testing-support/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okhttp-testing-support/resources/titlebar.gif differ diff --git a/2.x/okhttp-testing-support/resources/titlebar_end.gif b/2.x/okhttp-testing-support/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okhttp-testing-support/resources/titlebar_end.gif differ diff --git a/2.x/okhttp-testing-support/script.js b/2.x/okhttp-testing-support/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okhttp-testing-support/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okhttp-testing-support/stylesheet.css b/2.x/okhttp-testing-support/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okhttp-testing-support/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okhttp-testing-support/version.txt b/2.x/okhttp-testing-support/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okhttp-testing-support/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okhttp-urlconnection/META-INF/MANIFEST.MF b/2.x/okhttp-urlconnection/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okhttp-urlconnection/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okhttp-urlconnection/allclasses-frame.html b/2.x/okhttp-urlconnection/allclasses-frame.html new file mode 100644 index 000000000..d42baa4c3 --- /dev/null +++ b/2.x/okhttp-urlconnection/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +public final class OkUrlFactory +extends Object +implements URLStreamHandlerFactory, Cloneable+
| Constructor and Description | +
|---|
OkUrlFactory(OkHttpClient client) |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+client() |
+
OkUrlFactory |
+clone()
+Returns a copy of this stream handler factory that includes a shallow copy
+ of the internal HTTP client.
+ |
+
URLStreamHandler |
+createURLStreamHandler(String protocol)
+Creates a URLStreamHandler as a
+URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory). |
+
HttpURLConnection |
+open(URL url) |
+
public OkUrlFactory(OkHttpClient client)+
public OkHttpClient client()+
public OkUrlFactory clone()+
public HttpURLConnection open(URL url)+
public URLStreamHandler createURLStreamHandler(String protocol)+
URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).
+
+ This code configures OkHttp to handle all HTTP and HTTPS connections
+ created with URL.openConnection():
+
+ OkHttpClient okHttpClient = new OkHttpClient();
+ URL.setURLStreamHandlerFactory(new OkUrlFactory(okHttpClient));
+ createURLStreamHandler in interface URLStreamHandlerFactoryCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html b/2.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html new file mode 100644 index 000000000..0ba99612b --- /dev/null +++ b/2.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkUrlFactory |
+OkUrlFactory.clone()
+Returns a copy of this stream handler factory that includes a shallow copy
+ of the internal HTTP client.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html b/2.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..e34e54700 --- /dev/null +++ b/2.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkUrlFactory | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html b/2.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..eeed89042 --- /dev/null +++ b/2.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html b/2.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..8f3765cb3 --- /dev/null +++ b/2.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html @@ -0,0 +1,142 @@ + + + + + + +| Class and Description | +
|---|
| OkUrlFactory | +
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/constant-values.html b/2.x/okhttp-urlconnection/constant-values.html new file mode 100644 index 000000000..08c247bca --- /dev/null +++ b/2.x/okhttp-urlconnection/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/deprecated-list.html b/2.x/okhttp-urlconnection/deprecated-list.html new file mode 100644 index 000000000..062156953 --- /dev/null +++ b/2.x/okhttp-urlconnection/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/help-doc.html b/2.x/okhttp-urlconnection/help-doc.html new file mode 100644 index 000000000..ed5b58f6b --- /dev/null +++ b/2.x/okhttp-urlconnection/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/index-all.html b/2.x/okhttp-urlconnection/index-all.html new file mode 100644 index 000000000..28a486dfb --- /dev/null +++ b/2.x/okhttp-urlconnection/index-all.html @@ -0,0 +1,152 @@ + + + + + + +URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/index.html b/2.x/okhttp-urlconnection/index.html new file mode 100644 index 000000000..934152eea --- /dev/null +++ b/2.x/okhttp-urlconnection/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-urlconnection/package-list b/2.x/okhttp-urlconnection/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/2.x/okhttp-urlconnection/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/2.x/okhttp-urlconnection/resources/background.gif b/2.x/okhttp-urlconnection/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okhttp-urlconnection/resources/background.gif differ diff --git a/2.x/okhttp-urlconnection/resources/tab.gif b/2.x/okhttp-urlconnection/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okhttp-urlconnection/resources/tab.gif differ diff --git a/2.x/okhttp-urlconnection/resources/titlebar.gif b/2.x/okhttp-urlconnection/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okhttp-urlconnection/resources/titlebar.gif differ diff --git a/2.x/okhttp-urlconnection/resources/titlebar_end.gif b/2.x/okhttp-urlconnection/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okhttp-urlconnection/resources/titlebar_end.gif differ diff --git a/2.x/okhttp-urlconnection/script.js b/2.x/okhttp-urlconnection/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okhttp-urlconnection/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okhttp-urlconnection/stylesheet.css b/2.x/okhttp-urlconnection/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okhttp-urlconnection/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okhttp-urlconnection/version.txt b/2.x/okhttp-urlconnection/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okhttp-urlconnection/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okhttp-ws/META-INF/MANIFEST.MF b/2.x/okhttp-ws/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okhttp-ws/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okhttp-ws/allclasses-frame.html b/2.x/okhttp-ws/allclasses-frame.html new file mode 100644 index 000000000..3009972e5 --- /dev/null +++ b/2.x/okhttp-ws/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +public static enum WebSocket.PayloadType +extends Enum<WebSocket.PayloadType>+
| Enum Constant and Description | +
|---|
BINARY
+Arbitrary binary data.
+ |
+
TEXT
+UTF8-encoded text data.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static WebSocket.PayloadType |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static WebSocket.PayloadType[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final WebSocket.PayloadType TEXT+
public static final WebSocket.PayloadType BINARY+
public static WebSocket.PayloadType[] values()+
+for (WebSocket.PayloadType c : WebSocket.PayloadType.values()) + System.out.println(c); +
public static WebSocket.PayloadType valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocket.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocket.html new file mode 100644 index 000000000..cfeb7f745 --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocket.html @@ -0,0 +1,343 @@ + + + + + + +public interface WebSocket
+| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+BINARY
+A
+MediaType indicating binary frames should be used when sending the message. |
+
static MediaType |
+TEXT
+A
+MediaType indicating UTF-8 text frames should be used when sending the message. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close(int code,
+ String reason)
+Send a close frame to the server.
+ |
+
void |
+sendMessage(RequestBody message)
+Send a message payload to the server.
+ |
+
void |
+sendPing(okio.Buffer payload)
+Send a ping to the server with optional payload.
+ |
+
static final MediaType TEXT+
MediaType indicating UTF-8 text frames should be used when sending the message.void sendMessage(RequestBody message) + throws IOException+
The content type of message should be either
+ TEXT or BINARY.
IOException - if unable to write the message. Clients must call close(int, java.lang.String) when this
+ happens to ensure resources are cleaned up.IllegalStateException - if not connected, already closed, or another writer is active.void sendPing(okio.Buffer payload) + throws IOException+
IOException - if unable to write the ping. Clients must call close(int, java.lang.String) when this
+ happens to ensure resources are cleaned up.IllegalStateException - if already closed.void close(int code, + String reason) + throws IOException+
+ The corresponding WebSocketListener will continue to get messages until its
+ onClose() method is called.
+
+ It is an error to call this method before calling close on an active writer. Calling this + method more than once has no effect.
IOException - if unable to write the close message. Resources will still be freed.IllegalStateException - if already closed.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocketCall.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocketCall.html new file mode 100644 index 000000000..52085435e --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocketCall.html @@ -0,0 +1,285 @@ + + + + + + +public final class WebSocketCall +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Cancels the request, if possible.
+ |
+
static WebSocketCall |
+create(OkHttpClient client,
+ Request request)
+Prepares the
+request to create a web socket at some point in the future. |
+
void |
+enqueue(WebSocketListener listener)
+Schedules the request to be executed at some point in the future.
+ |
+
public static WebSocketCall create(OkHttpClient client, + Request request)+
request to create a web socket at some point in the future.public void enqueue(WebSocketListener listener)+
The dispatcher defines when the request will run:
+ usually immediately unless there are several other requests currently being executed.
+
+
This client will later call back responseCallback with either an HTTP response or a
+ failure exception. If you cancel() a request before it completes the callback will not
+ be invoked.
IllegalStateException - when the call has already been executed.public void cancel()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocketListener.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocketListener.html new file mode 100644 index 000000000..7aeb43973 --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/WebSocketListener.html @@ -0,0 +1,327 @@ + + + + + + +public interface WebSocketListener
+WebSocket.| Modifier and Type | +Method and Description | +
|---|---|
void |
+onClose(int code,
+ String reason)
+Called when the server sends a close message.
+ |
+
void |
+onFailure(IOException e,
+ Response response)
+Called when the transport or protocol layer of this web socket errors during communication.
+ |
+
void |
+onMessage(ResponseBody message)
+Called when a server message is received.
+ |
+
void |
+onOpen(WebSocket webSocket,
+ Response response)
+Called when the request has successfully been upgraded to a web socket.
+ |
+
void |
+onPong(okio.Buffer payload)
+Called when a server pong is received.
+ |
+
void onOpen(WebSocket webSocket, + Response response)+
close
+ callbacks start.
+ + Do not use this callback to write to the web socket. Start a new thread or use + another thread in your application.
void onFailure(IOException e, + Response response)+
response - Present when the failure is a direct result of the response (e.g., failed
+ upgrade, non-101 response code, etc.). null otherwise.void onMessage(ResponseBody message) + throws IOException+
type indicates whether the
+ payload should be interpreted as UTF-8 text or binary data.
+
+ Implementations must call source.close() before returning. This
+ indicates completion of parsing the message payload and will consume any remaining bytes in
+ the message.
+
+
The content type of message will be either
+ WebSocket.TEXT or WebSocket.BINARY which indicates the format of the message.
IOExceptionvoid onPong(okio.Buffer payload)+
WebSocket.sendPing(Buffer) but might also be unsolicited.void onClose(int code, + String reason)+
close() or as an unprompted
+ message from the server.code - The RFC-compliant
+ status code.reason - Reason for close or an empty string.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocket.PayloadType.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocket.PayloadType.html new file mode 100644 index 000000000..1343a4a8c --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocket.PayloadType.html @@ -0,0 +1,187 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static WebSocket.PayloadType |
+WebSocket.PayloadType.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static WebSocket.PayloadType[] |
+WebSocket.PayloadType.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
okio.BufferedSink |
+WebSocket.newMessageSink(WebSocket.PayloadType type)
+Stream a message payload to the server of the specified {code type}.
+ |
+
void |
+WebSocketListener.onMessage(okio.BufferedSource payload,
+ WebSocket.PayloadType type)
+Called when a server message is received.
+ |
+
void |
+WebSocket.sendMessage(WebSocket.PayloadType type,
+ okio.Buffer payload)
+Send a message payload to the server of the specified
+type. |
+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocket.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocket.html new file mode 100644 index 000000000..660a848a7 --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocket.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+WebSocketListener.onOpen(WebSocket webSocket,
+ Response response)
+Called when the request has successfully been upgraded to a web socket.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocketCall.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocketCall.html new file mode 100644 index 000000000..235a46948 --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocketCall.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static WebSocketCall |
+WebSocketCall.create(OkHttpClient client,
+ Request request)
+Prepares the
+request to create a web socket at some point in the future. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocketListener.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocketListener.html new file mode 100644 index 000000000..b8edf4f89 --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/class-use/WebSocketListener.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+WebSocketCall.enqueue(WebSocketListener listener)
+Schedules the request to be executed at some point in the future.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/package-frame.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/package-frame.html new file mode 100644 index 000000000..422358a7e --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +| Interface | +Description | +
|---|---|
| WebSocket | +
+ Blocking interface to connect and write to a web socket.
+ |
+
| WebSocketListener | +
+ Listener for server-initiated messages on a connected
+WebSocket. |
+
| Class | +Description | +
|---|---|
| WebSocketCall | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/package-tree.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/package-tree.html new file mode 100644 index 000000000..4795d17af --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/package-tree.html @@ -0,0 +1,138 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/com/squareup/okhttp/ws/package-use.html b/2.x/okhttp-ws/com/squareup/okhttp/ws/package-use.html new file mode 100644 index 000000000..87ac24c61 --- /dev/null +++ b/2.x/okhttp-ws/com/squareup/okhttp/ws/package-use.html @@ -0,0 +1,152 @@ + + + + + + +| Class and Description | +
|---|
| WebSocket
+ Blocking interface to connect and write to a web socket.
+ |
+
| WebSocketCall | +
| WebSocketListener
+ Listener for server-initiated messages on a connected
+WebSocket. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/constant-values.html b/2.x/okhttp-ws/constant-values.html new file mode 100644 index 000000000..965f1436f --- /dev/null +++ b/2.x/okhttp-ws/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/deprecated-list.html b/2.x/okhttp-ws/deprecated-list.html new file mode 100644 index 000000000..c6ed3c1a4 --- /dev/null +++ b/2.x/okhttp-ws/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/help-doc.html b/2.x/okhttp-ws/help-doc.html new file mode 100644 index 000000000..10608728d --- /dev/null +++ b/2.x/okhttp-ws/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/index-all.html b/2.x/okhttp-ws/index-all.html new file mode 100644 index 000000000..354446319 --- /dev/null +++ b/2.x/okhttp-ws/index-all.html @@ -0,0 +1,227 @@ + + + + + + +MediaType indicating binary frames should be used when sending the message.request to create a web socket at some point in the future.MediaType indicating UTF-8 text frames should be used when sending the message.WebSocket.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/index.html b/2.x/okhttp-ws/index.html new file mode 100644 index 000000000..7d4fb45e9 --- /dev/null +++ b/2.x/okhttp-ws/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp-ws/package-list b/2.x/okhttp-ws/package-list new file mode 100644 index 000000000..a5f10306d --- /dev/null +++ b/2.x/okhttp-ws/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.ws diff --git a/2.x/okhttp-ws/resources/background.gif b/2.x/okhttp-ws/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okhttp-ws/resources/background.gif differ diff --git a/2.x/okhttp-ws/resources/tab.gif b/2.x/okhttp-ws/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okhttp-ws/resources/tab.gif differ diff --git a/2.x/okhttp-ws/resources/titlebar.gif b/2.x/okhttp-ws/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okhttp-ws/resources/titlebar.gif differ diff --git a/2.x/okhttp-ws/resources/titlebar_end.gif b/2.x/okhttp-ws/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okhttp-ws/resources/titlebar_end.gif differ diff --git a/2.x/okhttp-ws/script.js b/2.x/okhttp-ws/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okhttp-ws/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okhttp-ws/stylesheet.css b/2.x/okhttp-ws/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okhttp-ws/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okhttp-ws/version.txt b/2.x/okhttp-ws/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okhttp-ws/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/2.x/okhttp/META-INF/MANIFEST.MF b/2.x/okhttp/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/2.x/okhttp/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_45 + diff --git a/2.x/okhttp/allclasses-frame.html b/2.x/okhttp/allclasses-frame.html new file mode 100644 index 000000000..8a38751e4 --- /dev/null +++ b/2.x/okhttp/allclasses-frame.html @@ -0,0 +1,57 @@ + + + + + + +public final class Address +extends Object+
HTTP requests that share the same Address may also share the same
+ Connection.
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object other) |
+
Authenticator |
+getAuthenticator()
+Returns the client's authenticator.
+ |
+
CertificatePinner |
+getCertificatePinner()
+Returns this address's certificate pinner, or null if this is not an HTTPS address.
+ |
+
List<ConnectionSpec> |
+getConnectionSpecs() |
+
Dns |
+getDns()
+Returns the service that will be used to resolve IP addresses for hostnames.
+ |
+
HostnameVerifier |
+getHostnameVerifier()
+Returns the hostname verifier, or null if this is not an HTTPS address.
+ |
+
List<Protocol> |
+getProtocols()
+Returns the protocols the client supports.
+ |
+
Proxy |
+getProxy()
+Returns this address's explicitly-specified HTTP proxy, or null to
+ delegate to the proxy selector.
+ |
+
ProxySelector |
+getProxySelector()
+Returns this address's proxy selector.
+ |
+
SocketFactory |
+getSocketFactory()
+Returns the socket factory for new connections.
+ |
+
SSLSocketFactory |
+getSslSocketFactory()
+Returns the SSL socket factory, or null if this is not an HTTPS address.
+ |
+
String |
+getUriHost()
+Deprecated.
+
+prefer
+address.url().host(). |
+
int |
+getUriPort()
+Deprecated.
+
+prefer
+address.url().port(). |
+
int |
+hashCode() |
+
HttpUrl |
+url()
+Returns a URL with the hostname and port of the origin server.
+ |
+
public Address(String uriHost, + int uriPort, + Dns dns, + SocketFactory socketFactory, + SSLSocketFactory sslSocketFactory, + HostnameVerifier hostnameVerifier, + CertificatePinner certificatePinner, + Authenticator authenticator, + Proxy proxy, + List<Protocol> protocols, + List<ConnectionSpec> connectionSpecs, + ProxySelector proxySelector)+
public HttpUrl url()+
@Deprecated +public String getUriHost()+
address.url().host().@Deprecated +public int getUriPort()+
address.url().port().getPort() accessors, this method never returns -1.public Dns getDns()+
public SocketFactory getSocketFactory()+
public Authenticator getAuthenticator()+
public List<Protocol> getProtocols()+
Protocol.HTTP_1_1.public List<ConnectionSpec> getConnectionSpecs()+
public ProxySelector getProxySelector()+
public Proxy getProxy()+
public SSLSocketFactory getSslSocketFactory()+
public HostnameVerifier getHostnameVerifier()+
public CertificatePinner getCertificatePinner()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Authenticator.html b/2.x/okhttp/com/squareup/okhttp/Authenticator.html new file mode 100644 index 000000000..a5ff6f778 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Authenticator.html @@ -0,0 +1,284 @@ + + + + + + + +public interface Authenticator
+| Modifier and Type | +Method and Description | +
|---|---|
Request |
+authenticate(Proxy proxy,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication
+ challenge in
+response. |
+
Request |
+authenticateProxy(Proxy proxy,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication
+ challenge made by
+response. |
+
Request authenticate(Proxy proxy, + Response response) + throws IOException+
response. Returns null if the challenge cannot be
+ satisfied. This method is called in response to an HTTP 401 unauthorized
+ status code sent by the origin server.
+
+ Typical implementations will look up a credential and create a request + derived from the initial request by setting the "Authorization" header. +
+
+ String credential = Credentials.basic(...)
+ return response.request().newBuilder()
+ .header("Authorization", credential)
+ .build();
+ IOExceptionRequest authenticateProxy(Proxy proxy, + Response response) + throws IOException+
response. Returns null if the challenge cannot be
+ satisfied. This method is called in response to an HTTP 407 unauthorized
+ status code sent by the proxy server.
+
+ Typical implementations will look up a credential and create a request + derived from the initial request by setting the "Proxy-Authorization" + header.
+
+ String credential = Credentials.basic(...)
+ return response.request().newBuilder()
+ .header("Proxy-Authorization", credential)
+ .build();
+ IOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Cache.html b/2.x/okhttp/com/squareup/okhttp/Cache.html new file mode 100644 index 000000000..37192c03c --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Cache.html @@ -0,0 +1,599 @@ + + + + + + + +public final class Cache +extends Object+
GET. The server will then send either
+ the updated response if it has changed, or a short 'not modified' response if the client's copy
+ is still valid. Such responses increment both the network count and hit count.
+
+ The best way to improve the cache hit rate is by configuring the web server to return + cacheable responses. Although this client honors all HTTP/1.1 (RFC 7234) cache headers, it doesn't cache + partial responses. + +
no-cache directive:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder().noCache().build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+
+
+ If it is only necessary to force a cached response to be validated by the server, use the more
+ efficient max-age=0 directive instead:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder()
+ .maxAge(0, TimeUnit.SECONDS)
+ .build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+
+
+ only-if-cached directive:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder()
+ .onlyIfCached()
+ .build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+ Response forceCacheResponse = client.newCall(request).execute();
+ if (forceCacheResponse.code() != 504) {
+ // The resource was cached! Show it.
+ } else {
+ // The resource was not cached.
+ }
+
+ This technique works even better in situations where a stale response is better than no response.
+ To permit stale cached responses, use the max-stale directive with the maximum staleness
+ in seconds:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder()
+ .maxStale(365, TimeUnit.DAYS)
+ .build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+
+
+ The CacheControl class can configure request caching directives and parse response
+ caching directives. It even offers convenient constants CacheControl.FORCE_NETWORK and
+ CacheControl.FORCE_CACHE that address the use cases above.
| Constructor and Description | +
|---|
Cache(File directory,
+ long maxSize) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close() |
+
void |
+delete()
+Closes the cache and deletes all of its stored values.
+ |
+
void |
+evictAll()
+Deletes all values stored in the cache.
+ |
+
void |
+flush() |
+
File |
+getDirectory() |
+
int |
+getHitCount() |
+
long |
+getMaxSize() |
+
int |
+getNetworkCount() |
+
int |
+getRequestCount() |
+
long |
+getSize() |
+
int |
+getWriteAbortCount() |
+
int |
+getWriteSuccessCount() |
+
void |
+initialize()
+Initialize the cache.
+ |
+
boolean |
+isClosed() |
+
Iterator<String> |
+urls()
+Returns an iterator over the URLs in this cache.
+ |
+
public void initialize() + throws IOException+
+ The initialization time may vary depending on the journal file size and + the current actual cache size. The application needs to be aware of calling + this function during the initialization phase and preferably in a background + worker thread. +
+ Note that if the application chooses to not call this method to initialize + the cache. By default, the okhttp will perform lazy initialization upon the + first usage of the cache.
IOExceptionpublic void delete() + throws IOException+
IOExceptionpublic void evictAll() + throws IOException+
IOExceptionpublic Iterator<String> urls() + throws IOException+
ConcurrentModificationException, but if new responses are added while iterating, their URLs
+ will not be returned. If existing responses are evicted during iteration, they will be absent
+ (unless they were already returned).
+
+ The iterator supports Iterator.remove(). Removing a URL from the iterator evicts + the corresponding response from the cache. Use this to evict selected responses.
IOExceptionpublic int getWriteAbortCount()+
public int getWriteSuccessCount()+
public long getSize() + throws IOException+
IOExceptionpublic long getMaxSize()+
public void flush() + throws IOException+
IOExceptionpublic void close() + throws IOException+
IOExceptionpublic File getDirectory()+
public boolean isClosed()+
public int getNetworkCount()+
public int getHitCount()+
public int getRequestCount()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/CacheControl.Builder.html b/2.x/okhttp/com/squareup/okhttp/CacheControl.Builder.html new file mode 100644 index 000000000..83e89f8b5 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/CacheControl.Builder.html @@ -0,0 +1,422 @@ + + + + + + + +public static final class CacheControl.Builder +extends Object+
Cache-Control request header.| Modifier and Type | +Method and Description | +
|---|---|
CacheControl |
+build() |
+
CacheControl.Builder |
+maxAge(int maxAge,
+ TimeUnit timeUnit)
+Sets the maximum age of a cached response.
+ |
+
CacheControl.Builder |
+maxStale(int maxStale,
+ TimeUnit timeUnit)
+Accept cached responses that have exceeded their freshness lifetime by
+ up to
+maxStale. |
+
CacheControl.Builder |
+minFresh(int minFresh,
+ TimeUnit timeUnit)
+Sets the minimum number of seconds that a response will continue to be
+ fresh for.
+ |
+
CacheControl.Builder |
+noCache()
+Don't accept an unvalidated cached response.
+ |
+
CacheControl.Builder |
+noStore()
+Don't store the server's response in any cache.
+ |
+
CacheControl.Builder |
+noTransform()
+Don't accept a transformed response.
+ |
+
CacheControl.Builder |
+onlyIfCached()
+Only accept the response if it is in the cache.
+ |
+
public CacheControl.Builder noCache()+
public CacheControl.Builder noStore()+
public CacheControl.Builder maxAge(int maxAge, + TimeUnit timeUnit)+
maxAge, it will not be used and a network request will
+ be made.maxAge - a non-negative integer. This is stored and transmitted with
+ TimeUnit.SECONDS precision; finer precision will be lost.public CacheControl.Builder maxStale(int maxStale, + TimeUnit timeUnit)+
maxStale. If unspecified, stale cache responses will not be
+ used.maxStale - a non-negative integer. This is stored and transmitted
+ with TimeUnit.SECONDS precision; finer precision will be
+ lost.public CacheControl.Builder minFresh(int minFresh, + TimeUnit timeUnit)+
minFresh have
+ elapsed, the cached response will not be used and a network request will
+ be made.minFresh - a non-negative integer. This is stored and transmitted
+ with TimeUnit.SECONDS precision; finer precision will be
+ lost.public CacheControl.Builder onlyIfCached()+
504 Unsatisfiable Request response will be returned.public CacheControl.Builder noTransform()+
public CacheControl build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/CacheControl.html b/2.x/okhttp/com/squareup/okhttp/CacheControl.html new file mode 100644 index 000000000..3bf17a5f6 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/CacheControl.html @@ -0,0 +1,519 @@ + + + + + + + +public final class CacheControl +extends Object+
See RFC + 2616, 14.9.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+CacheControl.Builder
+Builds a
+Cache-Control request header. |
+
| Modifier and Type | +Field and Description | +
|---|---|
static CacheControl |
+FORCE_CACHE
+Cache control request directives that uses the cache only, even if the
+ cached response is stale.
+ |
+
static CacheControl |
+FORCE_NETWORK
+Cache control request directives that require network validation of
+ responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+isPrivate() |
+
boolean |
+isPublic() |
+
int |
+maxAgeSeconds()
+The duration past the response's served date that it can be served without
+ validation.
+ |
+
int |
+maxStaleSeconds() |
+
int |
+minFreshSeconds() |
+
boolean |
+mustRevalidate() |
+
boolean |
+noCache()
+In a response, this field's name "no-cache" is misleading.
+ |
+
boolean |
+noStore()
+If true, this response should not be cached.
+ |
+
boolean |
+noTransform() |
+
boolean |
+onlyIfCached()
+This field's name "only-if-cached" is misleading.
+ |
+
static CacheControl |
+parse(Headers headers)
+Returns the cache directives of
+headers. |
+
int |
+sMaxAgeSeconds()
+The "s-maxage" directive is the max age for shared caches.
+ |
+
String |
+toString() |
+
public static final CacheControl FORCE_NETWORK+
public static final CacheControl FORCE_CACHE+
504
+ Unsatisfiable Request.public boolean noCache()+
In a request, it means do not use a cache to satisfy the request.
public boolean noStore()+
public int maxAgeSeconds()+
public int sMaxAgeSeconds()+
public boolean isPrivate()+
public boolean isPublic()+
public boolean mustRevalidate()+
public int maxStaleSeconds()+
public int minFreshSeconds()+
public boolean onlyIfCached()+
public boolean noTransform()+
public static CacheControl parse(Headers headers)+
headers. This honors both
+ Cache-Control and Pragma headers if they are present.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Call.html b/2.x/okhttp/com/squareup/okhttp/Call.html new file mode 100644 index 000000000..a7a71381b --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Call.html @@ -0,0 +1,376 @@ + + + + + + + +public class Call +extends Object+
| Modifier | +Constructor and Description | +
|---|---|
protected |
+Call(OkHttpClient client,
+ Request originalRequest) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Cancels the request, if possible.
+ |
+
void |
+enqueue(Callback responseCallback)
+Schedules the request to be executed at some point in the future.
+ |
+
Response |
+execute()
+Invokes the request immediately, and blocks until the response can be
+ processed or is in error.
+ |
+
boolean |
+isCanceled() |
+
boolean |
+isExecuted()
+
+ |
+
protected Call(OkHttpClient client, + Request originalRequest)+
public Response execute() + throws IOException+
The caller may read the response body with the response's
+ Response.body method. To facilitate connection recycling, callers
+ should always close the response body.
+
+
Note that transport-layer success (receiving a HTTP response code,
+ headers and body) does not necessarily indicate application-layer success:
+ response may still indicate an unhappy HTTP response code like 404
+ or 500.
IOException - if the request could not be executed due to
+ cancellation, a connectivity problem or timeout. Because networks can
+ fail during an exchange, it is possible that the remote server
+ accepted the request before the failure.IllegalStateException - when the call has already been executed.public void enqueue(Callback responseCallback)+
The dispatcher defines when the
+ request will run: usually immediately unless there are several other
+ requests currently being executed.
+
+
This client will later call back responseCallback with either
+ an HTTP response or a failure exception. If you cancel() a request
+ before it completes the callback will not be invoked.
IllegalStateException - when the call has already been executed.public void cancel()+
public boolean isExecuted()+ +
public boolean isCanceled()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Callback.html b/2.x/okhttp/com/squareup/okhttp/Callback.html new file mode 100644 index 000000000..f2cd79995 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Callback.html @@ -0,0 +1,261 @@ + + + + + + + +public interface Callback
+| Modifier and Type | +Method and Description | +
|---|---|
void |
+onFailure(Request request,
+ IOException e)
+Called when the request could not be executed due to cancellation, a
+ connectivity problem or timeout.
+ |
+
void |
+onResponse(Response response)
+Called when the HTTP response was successfully returned by the remote
+ server.
+ |
+
void onFailure(Request request, + IOException e)+
void onResponse(Response response) + throws IOException+
Response.body. The response is still live until its response body is
+ closed with response.body().close(). The recipient of the callback
+ may even consume the response body on another thread.
+
+ Note that transport-layer success (receiving a HTTP response code,
+ headers and body) does not necessarily indicate application-layer
+ success: response may still indicate an unhappy HTTP response
+ code like 404 or 500.
IOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/CertificatePinner.Builder.html b/2.x/okhttp/com/squareup/okhttp/CertificatePinner.Builder.html new file mode 100644 index 000000000..c35497d69 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/CertificatePinner.Builder.html @@ -0,0 +1,302 @@ + + + + + + + +public static final class CertificatePinner.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner.Builder |
+add(String hostname,
+ String... pins)
+Pins certificates for
+hostname. |
+
CertificatePinner |
+build() |
+
public CertificatePinner.Builder add(String hostname, + String... pins)+
hostname.hostname - lower-case host name or wildcard pattern such as *.example.com.pins - SHA-1 hashes. Each pin is a SHA-1 hash of a
+ certificate's Subject Public Key Info, base64-encoded and prefixed with
+ sha1/.public CertificatePinner build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/CertificatePinner.html b/2.x/okhttp/com/squareup/okhttp/CertificatePinner.html new file mode 100644 index 000000000..429660597 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/CertificatePinner.html @@ -0,0 +1,453 @@ + + + + + + + +public final class CertificatePinner +extends Object+
This class currently pins a certificate's Subject Public Key Info as + described on Adam Langley's Weblog. Pins + are base-64 SHA-1 hashes, consistent with the format Chromium uses for static certificates. See Chromium's pinsets for hostnames that are pinned in that + browser. + +
For example, to pin https://publicobject.com, start with a broken
+ configuration:
+
+ String hostname = "publicobject.com";
+ CertificatePinner certificatePinner = new CertificatePinner.Builder()
+ .add(hostname, "sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=")
+ .build();
+ OkHttpClient client = new OkHttpClient();
+ client.setCertificatePinner(certificatePinner);
+
+ Request request = new Request.Builder()
+ .url("https://" + hostname)
+ .build();
+ client.newCall(request).execute();
+
+
+ As expected, this fails with a certificate pinning exception:
+
+ javax.net.ssl.SSLPeerUnverifiedException: Certificate pinning failure!
+ Peer certificate chain:
+ sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=: CN=publicobject.com, OU=PositiveSSL
+ sha1/SXxoaOSEzPC6BgGmxAt/EAcsajw=: CN=COMODO RSA Domain Validation Secure Server CA
+ sha1/blhOM3W9V/bVQhsWAcLYwPU6n24=: CN=COMODO RSA Certification Authority
+ sha1/T5x9IXmcrQ7YuQxXnxoCmeeQ84c=: CN=AddTrust External CA Root
+ Pinned certificates for publicobject.com:
+ sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=
+ at com.squareup.okhttp.CertificatePinner.check(CertificatePinner.java)
+ at com.squareup.okhttp.Connection.upgradeToTls(Connection.java)
+ at com.squareup.okhttp.Connection.connect(Connection.java)
+ at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java)
+
+
+ Follow up by pasting the public key hashes from the exception into the
+ certificate pinner's configuration:
+
+ CertificatePinner certificatePinner = new CertificatePinner.Builder()
+ .add("publicobject.com", "sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=")
+ .add("publicobject.com", "sha1/SXxoaOSEzPC6BgGmxAt/EAcsajw=")
+ .add("publicobject.com", "sha1/blhOM3W9V/bVQhsWAcLYwPU6n24=")
+ .add("publicobject.com", "sha1/T5x9IXmcrQ7YuQxXnxoCmeeQ84c=")
+ .build();
+
+
+ Pinning is per-hostname and/or per-wildcard pattern. To pin both
+ publicobject.com and www.publicobject.com, you must
+ configure both hostnames.
+
+ Wildcard pattern rules: +
* is only permitted in the left-most
+ domain name label and must be the only character in that label
+ (i.e., must match the whole left-most label). For example,
+ *.example.com is permitted, while *a.example.com,
+ a*.example.com, a*b.example.com, a.*.example.com
+ are not permitted.
+ * cannot match across domain name labels.
+ For example, *.example.com matches test.example.com
+ but does not match sub.test.example.com.
+ *.example.com pinned
+ with pin1 and a.example.com pinned with pin2,
+ to check a.example.com both pin1 and pin2 will be used.
+
+ CertificatePinner can not be used to pin self-signed certificate
+ if such certificate is not accepted by TrustManager.| Modifier and Type | +Class and Description | +
|---|---|
static class |
+CertificatePinner.Builder
+Builds a configured certificate pinner.
+ |
+
| Modifier and Type | +Field and Description | +
|---|---|
static CertificatePinner |
+DEFAULT |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+check(String hostname,
+ Certificate... peerCertificates)
+Deprecated.
+
+replaced with
+check(String, List). |
+
void |
+check(String hostname,
+ List<Certificate> peerCertificates)
+Confirms that at least one of the certificates pinned for
+hostname
+ is in peerCertificates. |
+
static String |
+pin(Certificate certificate)
+Returns the SHA-1 of
+certificate's public key. |
+
public static final CertificatePinner DEFAULT+
public void check(String hostname, + List<Certificate> peerCertificates) + throws SSLPeerUnverifiedException+
hostname
+ is in peerCertificates. Does nothing if there are no certificates
+ pinned for hostname. OkHttp calls this after a successful TLS
+ handshake, but before the connection is used.SSLPeerUnverifiedException - if peerCertificates don't match
+ the certificates pinned for hostname.public void check(String hostname, + Certificate... peerCertificates) + throws SSLPeerUnverifiedException+
check(String, List).SSLPeerUnverifiedExceptionpublic static String pin(Certificate certificate)+
certificate's public key. This uses the
+ mechanism Moxie Marlinspike describes in Android Pinning.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Challenge.html b/2.x/okhttp/com/squareup/okhttp/Challenge.html new file mode 100644 index 000000000..3b9b098ea --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Challenge.html @@ -0,0 +1,345 @@ + + + + + + + +public final class Challenge +extends Object+
| Constructor and Description | +
|---|
Challenge(String scheme,
+ String realm) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object o) |
+
String |
+getRealm()
+Returns the protection space.
+ |
+
String |
+getScheme()
+Returns the authentication scheme, like
+Basic. |
+
int |
+hashCode() |
+
String |
+toString() |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/CipherSuite.html b/2.x/okhttp/com/squareup/okhttp/CipherSuite.html new file mode 100644 index 000000000..31f916d2f --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/CipherSuite.html @@ -0,0 +1,1493 @@ + + + + + + + +public enum CipherSuite +extends Enum<CipherSuite>+
Not all cipher suites are supported on all platforms. As newer cipher suites + are created (for stronger privacy, better performance, etc.) they will be adopted by the platform + and then exposed here. Cipher suites that are not available on either Android (through API level + 20) or Java (through JDK 8) are omitted for brevity. + +
See also NativeCrypto.java + from conscrypt, which lists the cipher suites supported by Android.
| Modifier and Type | +Method and Description | +
|---|---|
static CipherSuite |
+forJavaName(String javaName) |
+
static CipherSuite |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CipherSuite[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final CipherSuite TLS_RSA_WITH_NULL_MD5+
public static final CipherSuite TLS_RSA_WITH_NULL_SHA+
public static final CipherSuite TLS_RSA_EXPORT_WITH_RC4_40_MD5+
public static final CipherSuite TLS_RSA_WITH_RC4_128_MD5+
public static final CipherSuite TLS_RSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_RSA_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_DH_anon_EXPORT_WITH_RC4_40_MD5+
public static final CipherSuite TLS_DH_anon_WITH_RC4_128_MD5+
public static final CipherSuite TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_KRB5_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_KRB5_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_KRB5_WITH_RC4_128_SHA+
public static final CipherSuite TLS_KRB5_WITH_DES_CBC_MD5+
public static final CipherSuite TLS_KRB5_WITH_3DES_EDE_CBC_MD5+
public static final CipherSuite TLS_KRB5_WITH_RC4_128_MD5+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_RC4_40_SHA+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_RC4_40_MD5+
public static final CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_NULL_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_DH_anon_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_DH_anon_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_DH_anon_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_DH_anon_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_EMPTY_RENEGOTIATION_INFO_SCSV+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384+
public static CipherSuite[] values()+
+for (CipherSuite c : CipherSuite.values()) + System.out.println(c); +
public static CipherSuite valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CipherSuite forJavaName(String javaName)+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Connection.html b/2.x/okhttp/com/squareup/okhttp/Connection.html new file mode 100644 index 000000000..83f98f47a --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Connection.html @@ -0,0 +1,318 @@ + + + + + + + +public interface Connection
+Typically instances of this class are created, connected and exercised automatically by the + HTTP client. Applications may use this class to monitor HTTP connections as members of a + connection pool. + +
Do not confuse this class with the misnamed HttpURLConnection, which isn't so much a
+ connection as a single request/response exchange.
+
+
Each connection can carry a varying number streams, depending on the underlying protocol being
+ used. HTTP/1.x connections can carry either zero or one streams. HTTP/2 connections can carry any
+ number of streams, dynamically configured with SETTINGS_MAX_CONCURRENT_STREAMS. A
+ connection currently carrying zero streams is an idle stream. We keep it alive because reusing an
+ existing connection is typically faster than establishing a new one.
+
+
When a single logical call requires multiple streams due to redirects or authorization + challenges, we prefer to use the same physical connection for all streams in the sequence. There + are potential performance and behavior consequences to this preference. To support this feature, + this class separates allocations from streams. An allocation is created by a call, + used for one or more streams, and then released. An allocated connection won't be stolen by + other calls while a redirect or authorization challenge is being handled. + +
When the maximum concurrent streams limit is reduced, some allocations will be rescinded. + Attempting to create new streams on these allocations will fail. + +
Note that an allocation may be released before its stream is completed. This is intended to + make bookkeeping easier for the caller: releasing the allocation as soon as the terminal stream + has been found. But only complete the stream once its data stream has been exhausted.
| Modifier and Type | +Method and Description | +
|---|---|
Handshake |
+getHandshake() |
+
Protocol |
+getProtocol()
+Returns the protocol negotiated by this connection, or
+Protocol.HTTP_1_1 if no protocol
+ has been negotiated. |
+
Route |
+getRoute()
+Returns the route used by this connection.
+ |
+
Socket |
+getSocket()
+Returns the socket that this connection uses, or null if the connection
+ is not currently connected.
+ |
+
Route getRoute()+
Socket getSocket()+
Handshake getHandshake()+
Protocol getProtocol()+
Protocol.HTTP_1_1 if no protocol
+ has been negotiated. This method returns Protocol.HTTP_1_1 even if the remote peer is
+ using Protocol.HTTP_1_0.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/ConnectionPool.html b/2.x/okhttp/com/squareup/okhttp/ConnectionPool.html new file mode 100644 index 000000000..be09a59cf --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/ConnectionPool.html @@ -0,0 +1,413 @@ + + + + + + + +public final class ConnectionPool +extends Object+
Address may share a
+ Connection. This class implements the policy of which connections to
+ keep open for future use.
+
+ The system-wide default uses system properties for
+ tuning parameters:
+
http.keepAlive true if HTTP and SPDY connections should be
+ pooled at all. Default is true.
+ http.maxConnections maximum number of idle connections to
+ each to keep in the pool. Default is 5.
+ http.keepAliveDuration Time in milliseconds to keep the
+ connection alive in the pool before closing it. Default is 5 minutes.
+ This property isn't used by HttpURLConnection.
+ The default instance doesn't adjust its configuration as system + properties are changed. This assumes that the applications that set these + parameters do so before making HTTP connections, and that this class is + initialized lazily.
| Constructor and Description | +
|---|
ConnectionPool(int maxIdleConnections,
+ long keepAliveDurationMs) |
+
ConnectionPool(int maxIdleConnections,
+ long keepAliveDuration,
+ TimeUnit timeUnit) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+evictAll()
+Close and remove all idle connections in the pool.
+ |
+
int |
+getConnectionCount()
+Returns total number of connections in the pool.
+ |
+
static ConnectionPool |
+getDefault() |
+
int |
+getHttpConnectionCount()
+Returns total number of http connections in the pool.
+ |
+
int |
+getIdleConnectionCount()
+Returns the number of idle connections in the pool.
+ |
+
int |
+getMultiplexedConnectionCount()
+Returns total number of multiplexed connections in the pool.
+ |
+
int |
+getSpdyConnectionCount()
+Deprecated.
+
+
+ |
+
public ConnectionPool(int maxIdleConnections, + long keepAliveDurationMs)+
public ConnectionPool(int maxIdleConnections, + long keepAliveDuration, + TimeUnit timeUnit)+
public static ConnectionPool getDefault()+
public int getIdleConnectionCount()+
public int getConnectionCount()+
getIdleConnectionCount() to count connections not currently
+ in use.@Deprecated +public int getSpdyConnectionCount()+
getMultiplexedConnectionCount().public int getMultiplexedConnectionCount()+
public int getHttpConnectionCount()+
public void evictAll()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/ConnectionSpec.Builder.html b/2.x/okhttp/com/squareup/okhttp/ConnectionSpec.Builder.html new file mode 100644 index 000000000..6fd2b3b3b --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/ConnectionSpec.Builder.html @@ -0,0 +1,367 @@ + + + + + + + +public static final class ConnectionSpec.Builder +extends Object+
| Constructor and Description | +
|---|
Builder(ConnectionSpec connectionSpec) |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+allEnabledCipherSuites() |
+
ConnectionSpec.Builder |
+allEnabledTlsVersions() |
+
ConnectionSpec |
+build() |
+
ConnectionSpec.Builder |
+cipherSuites(CipherSuite... cipherSuites) |
+
ConnectionSpec.Builder |
+cipherSuites(String... cipherSuites) |
+
ConnectionSpec.Builder |
+supportsTlsExtensions(boolean supportsTlsExtensions) |
+
ConnectionSpec.Builder |
+tlsVersions(String... tlsVersions) |
+
ConnectionSpec.Builder |
+tlsVersions(TlsVersion... tlsVersions) |
+
public Builder(ConnectionSpec connectionSpec)+
public ConnectionSpec.Builder allEnabledCipherSuites()+
public ConnectionSpec.Builder cipherSuites(CipherSuite... cipherSuites)+
public ConnectionSpec.Builder cipherSuites(String... cipherSuites)+
public ConnectionSpec.Builder allEnabledTlsVersions()+
public ConnectionSpec.Builder tlsVersions(TlsVersion... tlsVersions)+
public ConnectionSpec.Builder tlsVersions(String... tlsVersions)+
public ConnectionSpec.Builder supportsTlsExtensions(boolean supportsTlsExtensions)+
public ConnectionSpec build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/ConnectionSpec.html b/2.x/okhttp/com/squareup/okhttp/ConnectionSpec.html new file mode 100644 index 000000000..39d575af1 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/ConnectionSpec.html @@ -0,0 +1,459 @@ + + + + + + + +public final class ConnectionSpec +extends Object+
https: URLs, this includes the TLS version and cipher suites to use when negotiating a secure
+ connection.
+
+ The TLS versions configured in a connection spec are only be used if they are also enabled in + the SSL socket. For example, if an SSL socket does not have TLS 1.2 enabled, it will not be used + even if it is present on the connection spec. The same policy also applies to cipher suites. + +
Use ConnectionSpec.Builder.allEnabledTlsVersions() and ConnectionSpec.Builder.allEnabledCipherSuites() to
+ defer all feature selection to the underlying SSL socket.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+ConnectionSpec.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
static ConnectionSpec |
+CLEARTEXT
+Unencrypted, unauthenticated connections for
+http: URLs. |
+
static ConnectionSpec |
+COMPATIBLE_TLS
+A backwards-compatible fallback connection for interop with obsolete servers.
+ |
+
static ConnectionSpec |
+MODERN_TLS
+A modern TLS connection with extensions like SNI and ALPN available.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<CipherSuite> |
+cipherSuites()
+Returns the cipher suites to use for a connection.
+ |
+
boolean |
+equals(Object other) |
+
int |
+hashCode() |
+
boolean |
+isCompatible(SSLSocket socket)
+Returns
+true if the socket, as currently configured, supports this connection spec. |
+
boolean |
+isTls() |
+
boolean |
+supportsTlsExtensions() |
+
List<TlsVersion> |
+tlsVersions()
+Returns the TLS versions to use when negotiating a connection.
+ |
+
String |
+toString() |
+
public static final ConnectionSpec MODERN_TLS+
public static final ConnectionSpec COMPATIBLE_TLS+
public static final ConnectionSpec CLEARTEXT+
http: URLs.public boolean isTls()+
public List<CipherSuite> cipherSuites()+
null if all of the SSL
+ socket's enabled cipher suites should be used.public List<TlsVersion> tlsVersions()+
null if all of
+ the SSL socket's enabled TLS versions should be used.public boolean supportsTlsExtensions()+
public boolean isCompatible(SSLSocket socket)+
true if the socket, as currently configured, supports this connection spec.
+ In order for a socket to be compatible the enabled cipher suites and protocols must intersect.
+
+ For cipher suites, at least one of the required cipher suites must
+ match the socket's enabled cipher suites. If there are no required cipher suites the socket
+ must have at least one cipher suite enabled.
+
+
For protocols, at least one of the required protocols must match the
+ socket's enabled protocols.
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Credentials.html b/2.x/okhttp/com/squareup/okhttp/Credentials.html new file mode 100644 index 000000000..3ce178e8f --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Credentials.html @@ -0,0 +1,244 @@ + + + + + + + +public final class Credentials +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
static String |
+basic(String userName,
+ String password)
+Returns an auth credential for the Basic scheme.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Dispatcher.html b/2.x/okhttp/com/squareup/okhttp/Dispatcher.html new file mode 100644 index 000000000..70d09f056 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Dispatcher.html @@ -0,0 +1,399 @@ + + + + + + + +public final class Dispatcher +extends Object+
Each dispatcher uses an ExecutorService to run calls internally. If you
+ supply your own executor, it should be able to run the
+ configured maximum number of calls concurrently.
| Constructor and Description | +
|---|
Dispatcher() |
+
Dispatcher(ExecutorService executorService) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel(Object tag)
+Cancel all calls with the tag
+tag. |
+
ExecutorService |
+getExecutorService() |
+
int |
+getMaxRequests() |
+
int |
+getMaxRequestsPerHost() |
+
int |
+getQueuedCallCount() |
+
int |
+getRunningCallCount() |
+
void |
+setMaxRequests(int maxRequests)
+Set the maximum number of requests to execute concurrently.
+ |
+
void |
+setMaxRequestsPerHost(int maxRequestsPerHost)
+Set the maximum number of requests for each host to execute concurrently.
+ |
+
public Dispatcher(ExecutorService executorService)+
public Dispatcher()+
public ExecutorService getExecutorService()+
public void setMaxRequests(int maxRequests)+
If more than maxRequests requests are in flight when this is
+ invoked, those requests will remain in flight.
public int getMaxRequests()+
public void setMaxRequestsPerHost(int maxRequestsPerHost)+
If more than maxRequestsPerHost requests are in flight when this
+ is invoked, those requests will remain in flight.
public int getMaxRequestsPerHost()+
public void cancel(Object tag)+
tag.public int getRunningCallCount()+
public int getQueuedCallCount()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Dns.html b/2.x/okhttp/com/squareup/okhttp/Dns.html new file mode 100644 index 000000000..0ae837b91 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Dns.html @@ -0,0 +1,280 @@ + + + + + + + +public interface Dns
+Implementations of this interface must be safe for concurrent use.
| Modifier and Type | +Field and Description | +
|---|---|
static Dns |
+SYSTEM
+A DNS that uses
+InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses. |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<InetAddress> |
+lookup(String hostname)
+Returns the IP addresses of
+hostname, in the order they will be attempted by OkHttp. |
+
static final Dns SYSTEM+
InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses. Most custom Dns implementations should delegate to this instance.List<InetAddress> lookup(String hostname) + throws UnknownHostException+
hostname, in the order they will be attempted by OkHttp.
+ If a connection to an address fails, OkHttp will retry the connection with the next address
+ until either a connection is made, the set of IP addresses is exhausted, or a limit is
+ exceeded.UnknownHostExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/FormEncodingBuilder.html b/2.x/okhttp/com/squareup/okhttp/FormEncodingBuilder.html new file mode 100644 index 000000000..3801da682 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/FormEncodingBuilder.html @@ -0,0 +1,309 @@ + + + + + + +public final class FormEncodingBuilder +extends Object+
| Constructor and Description | +
|---|
FormEncodingBuilder() |
+
| Modifier and Type | +Method and Description | +
|---|---|
FormEncodingBuilder |
+add(String name,
+ String value)
+Add new key-value pair.
+ |
+
FormEncodingBuilder |
+addEncoded(String name,
+ String value)
+Add new key-value pair.
+ |
+
RequestBody |
+build() |
+
public FormEncodingBuilder add(String name, + String value)+
public FormEncodingBuilder addEncoded(String name, + String value)+
public RequestBody build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Handshake.html b/2.x/okhttp/com/squareup/okhttp/Handshake.html new file mode 100644 index 000000000..6c5ca54ac --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Handshake.html @@ -0,0 +1,373 @@ + + + + + + + +public final class Handshake +extends Object+
This value object describes a completed handshake. Use SSLSocketFactory to set policy for new handshakes.
| Modifier and Type | +Method and Description | +
|---|---|
String |
+cipherSuite()
+Returns a cipher suite name like "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA".
+ |
+
boolean |
+equals(Object other) |
+
static Handshake |
+get(SSLSession session) |
+
static Handshake |
+get(String cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
int |
+hashCode() |
+
List<Certificate> |
+localCertificates()
+Returns a possibly-empty list of certificates that identify this peer.
+ |
+
Principal |
+localPrincipal()
+Returns the local principle, or null if this peer is anonymous.
+ |
+
List<Certificate> |
+peerCertificates()
+Returns a possibly-empty list of certificates that identify the remote peer.
+ |
+
Principal |
+peerPrincipal()
+Returns the remote peer's principle, or null if that peer is anonymous.
+ |
+
public static Handshake get(SSLSession session)+
public static Handshake get(String cipherSuite, + List<Certificate> peerCertificates, + List<Certificate> localCertificates)+
public String cipherSuite()+
public List<Certificate> peerCertificates()+
public Principal peerPrincipal()+
public List<Certificate> localCertificates()+
public Principal localPrincipal()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Headers.Builder.html b/2.x/okhttp/com/squareup/okhttp/Headers.Builder.html new file mode 100644 index 000000000..61358a335 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Headers.Builder.html @@ -0,0 +1,358 @@ + + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Headers.Builder |
+add(String line)
+Add an header line containing a field name, a literal colon, and a value.
+ |
+
Headers.Builder |
+add(String name,
+ String value)
+Add a field with the specified value.
+ |
+
Headers |
+build() |
+
String |
+get(String name)
+Equivalent to
+build().get(name), but potentially faster. |
+
Headers.Builder |
+removeAll(String name) |
+
Headers.Builder |
+set(String name,
+ String value)
+Set a field with the specified value.
+ |
+
public Headers.Builder add(String line)+
public Headers.Builder add(String name, + String value)+
public Headers.Builder removeAll(String name)+
public Headers.Builder set(String name, + String value)+
public String get(String name)+
build().get(name), but potentially faster.public Headers build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Headers.html b/2.x/okhttp/com/squareup/okhttp/Headers.html new file mode 100644 index 000000000..2a2f6086c --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Headers.html @@ -0,0 +1,453 @@ + + + + + + + +public final class Headers +extends Object+
Request and Response for interpreted headers. This class
+ maintains the order of the header fields within the HTTP message.
+
+ This class tracks header values line-by-line. A field with multiple comma- + separated values on the same line will be treated as a field with a single + value by this class. It is the caller's responsibility to detect and split + on commas if their field permits multiple values. This simplifies use of + single-valued fields whose values routinely contain commas, such as cookies + or dates. + +
This class trims whitespace from values. It never returns values with + leading or trailing whitespace. + +
Instances of this class are immutable. Use Headers.Builder to create
+ instances.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Headers.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
String |
+get(String name)
+Returns the last value corresponding to the specified field, or null.
+ |
+
Date |
+getDate(String name)
+Returns the last value corresponding to the specified field parsed as an
+ HTTP date, or null if either the field is absent or cannot be parsed as a
+ date.
+ |
+
String |
+name(int index)
+Returns the field at
+position or null if that is out of range. |
+
Set<String> |
+names()
+Returns an immutable case-insensitive set of header names.
+ |
+
Headers.Builder |
+newBuilder() |
+
static Headers |
+of(Map<String,String> headers)
+Returns headers for the header names and values in the
+Map. |
+
static Headers |
+of(String... namesAndValues)
+Returns headers for the alternating header names and values.
+ |
+
int |
+size()
+Returns the number of field values.
+ |
+
Map<String,List<String>> |
+toMultimap() |
+
String |
+toString() |
+
String |
+value(int index)
+Returns the value at
+index or null if that is out of range. |
+
List<String> |
+values(String name)
+Returns an immutable list of the header values for
+name. |
+
public String get(String name)+
public Date getDate(String name)+
public int size()+
public String name(int index)+
position or null if that is out of range.public String value(int index)+
index or null if that is out of range.public Set<String> names()+
public List<String> values(String name)+
name.public Headers.Builder newBuilder()+
public static Headers of(String... namesAndValues)+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/HttpUrl.Builder.html b/2.x/okhttp/com/squareup/okhttp/HttpUrl.Builder.html new file mode 100644 index 000000000..9ea083fb3 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/HttpUrl.Builder.html @@ -0,0 +1,615 @@ + + + + + + + +public HttpUrl.Builder scheme(String scheme)+
public HttpUrl.Builder username(String username)+
public HttpUrl.Builder encodedUsername(String encodedUsername)+
public HttpUrl.Builder password(String password)+
public HttpUrl.Builder encodedPassword(String encodedPassword)+
public HttpUrl.Builder host(String host)+
host - either a regular hostname, International Domain Name, IPv4 address, or IPv6
+ address.public HttpUrl.Builder port(int port)+
public HttpUrl.Builder addPathSegment(String pathSegment)+
public HttpUrl.Builder addEncodedPathSegment(String encodedPathSegment)+
public HttpUrl.Builder setPathSegment(int index, + String pathSegment)+
public HttpUrl.Builder setEncodedPathSegment(int index, + String encodedPathSegment)+
public HttpUrl.Builder removePathSegment(int index)+
public HttpUrl.Builder encodedPath(String encodedPath)+
public HttpUrl.Builder query(String query)+
public HttpUrl.Builder encodedQuery(String encodedQuery)+
public HttpUrl.Builder addQueryParameter(String name, + String value)+
public HttpUrl.Builder addEncodedQueryParameter(String encodedName, + String encodedValue)+
public HttpUrl.Builder setQueryParameter(String name, + String value)+
public HttpUrl.Builder setEncodedQueryParameter(String encodedName, + String encodedValue)+
public HttpUrl.Builder removeAllQueryParameters(String name)+
public HttpUrl.Builder removeAllEncodedQueryParameters(String encodedName)+
public HttpUrl.Builder fragment(String fragment)+
public HttpUrl.Builder encodedFragment(String encodedFragment)+
public HttpUrl build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/HttpUrl.html b/2.x/okhttp/com/squareup/okhttp/HttpUrl.html new file mode 100644 index 000000000..b5180bf4d --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/HttpUrl.html @@ -0,0 +1,971 @@ + + + + + + + +public final class HttpUrl +extends Object+
http or https. Use this
+ class to compose and decompose Internet addresses. For example, this code will compose and print
+ a URL for Google search:
+
+ HttpUrl url = new HttpUrl.Builder()
+ .scheme("https")
+ .host("www.google.com")
+ .addPathSegment("search")
+ .addQueryParameter("q", "polar bears")
+ .build();
+ System.out.println(url);
+
+
+ which prints:
+
+ https://www.google.com/search?q=polar%20bears
+
+
+ As another example, this code prints the human-readable query parameters of a Twitter search:
+
+
+ HttpUrl url = HttpUrl.parse("https://twitter.com/search?q=cute%20%23puppies&f=images");
+ for (int i = 0, size = url.querySize(); i < size; i++) {
+ System.out.println(url.queryParameterName(i) + ": " + url.queryParameterValue(i));
+ }
+
+
+ which prints:
+
+ q: cute #puppies
+ f: images
+
+
+ In addition to composing URLs from their component parts and decomposing URLs into their
+ component parts, this class implements relative URL resolution: what address you'd reach by
+ clicking a relative link on a specified page. For example:
+
+ HttpUrl base = HttpUrl.parse("https://www.youtube.com/user/WatchTheDaily/videos");
+ HttpUrl link = base.resolve("../../watch?v=cbP2N1BQdYc");
+ System.out.println(link);
+
+
+ which prints:
+
+ https://www.youtube.com/watch?v=cbP2N1BQdYc
+
+
+ mailto, file, ftp), this class only supports http and https. Use java.net.URI for
+ URLs with arbitrary schemes.
+
+ "" if absent. This class
+ offers no mechanism to differentiate empty from absent. Neither of these components are popular
+ in practice. Typically HTTP applications use other mechanisms for user identification and
+ authentication.
+
+ square.com or localhost, an IPv4 address like 192.168.0.1, or an IPv6
+ address like ::1.
+
+ Usually a webserver is reachable with multiple identifiers: its IP addresses, registered
+ domain names, and even localhost when connecting from the server itself. Each of a
+ webserver's names is a distinct URL and they are not interchangeable. For example, even if
+ http://square.github.io/dagger and http://google.github.io/dagger are served by
+ the same IP address, the two URLs identify different resources.
+
+
cute #puppies is encoded as cute%20%23puppies when used as a query
+ parameter value.
+
+ 🍩) with its UTF-8 hex bytes (like
+ %F0%9F%8D%A9). This approach works for whitespace characters, control characters,
+ non-ASCII characters, and characters that already have another meaning in a particular context.
+
+ Percent encoding is used in every URL component except for the hostname. But the set of
+ characters that need to be encoded is different for each component. For example, the path
+ component must escape all of its ? characters, otherwise it could be interpreted as the
+ start of the URL's query. But within the query and fragment components, the ? character
+ doesn't delimit anything and doesn't need to be escaped.
+
+ HttpUrl url = HttpUrl.parse("http://who-let-the-dogs.out").newBuilder()
+ .addPathSegment("_Who?_")
+ .query("_Who?_")
+ .fragment("_Who?_")
+ .build();
+ System.out.println(url);
+
+
+ This prints:
+
+ http://who-let-the-dogs.out/_Who%3F_?_Who?_#_Who?_
+
+
+ When parsing URLs that lack percent encoding where it is required, this class will percent encode
+ the offending characters.
+
+ In order to avoid confusion and discourage phishing attacks,
+ IDNA Mapping transforms names to avoid
+ confusing characters. This includes basic case folding: transforming shouting SQUARE.COM
+ into cool and casual square.com. It also handles more exotic characters. For example, the
+ Unicode trademark sign (™) could be confused for the letters "TM" in http://ho™mail.com.
+ To mitigate this, the single character (™) maps to the string (tm). There is similar policy for
+ all of the 1.1 million Unicode code points. Note that some code points such as "🍩" are
+ not mapped and cannot be used in a hostname.
+
+
Punycode converts a Unicode string to an ASCII
+ string to make international domain names work everywhere. For example, "σ" encodes as
+ "xn--4xa". The encoded string is not human readable, but can be used with classes like InetAddress to establish connections.
+
+
java.net.URL and java.net.URI. We offer a new URL
+ model to address problems that the others don't.
+
+ java.net.URL considers the following two URLs
+ equal, and the equals() method between them returns true:
+ java.net.URL unusable for many things. It shouldn't be used as a Map key or in a Set. Doing so is both inefficient because equality may
+ require a DNS lookup, and incorrect because unequal URLs may be equal because of how they are
+ hosted.
+
+ java.net.URI disagrees:
+ :80) and the absent trailing slash (/)
+ cause URI to bucket the two URLs separately. This harms URI's usefulness in collections. Any
+ application that stores information-per-URL will need to either canonicalize manually, or suffer
+ unnecessary redundancy for such URLs.
+
+ Because they don't attempt canonical form, these classes are surprisingly difficult to use + securely. Suppose you're building a webservice that checks that incoming paths are prefixed + "/static/images/" before serving the corresponding assets from the filesystem.
+
+ String attack = "http://example.com/static/images/../../../../../etc/passwd";
+ System.out.println(new URL(attack).getPath());
+ System.out.println(new URI(attack).getPath());
+ System.out.println(HttpUrl.parse(attack).path());
+
+
+ By canonicalizing the input paths, they are complicit in directory traversal attacks. Code that
+ checks only the path prefix may suffer!
+
+
+ /static/images/../../../../../etc/passwd
+ /static/images/../../../../../etc/passwd
+ /etc/passwd
+
+
+ java.net.URI class is strict around what URLs it accepts. It rejects URLs like
+ "http://example.com/abc|def" because the '|' character is unsupported. This class is more
+ forgiving: it will automatically percent-encode the '|', yielding "http://example.com/abc%7Cdef".
+ This kind behavior is consistent with web browsers. HttpUrl prefers consistency with
+ major web browsers over consistency with obsolete specifications.
+
+ StringBuilder to assemble these components is cumbersome: do '+'
+ characters get silently replaced with spaces? If a query parameter contains a '&', does that
+ get escaped? By offering methods to read and write individual query parameters directly,
+ application developers are saved from the hassles of encoding and decoding.
+
+ Instances of HttpUrl are well-formed and always have a scheme, host, and path. With
+ java.net.URL it's possible to create an awkward URL like http:/ with scheme and
+ path but no hostname. Building APIs that consume such malformed values is difficult!
+
+
This class has a modern API. It avoids punitive checked exceptions: parse()
+ returns null if the input is an invalid URL. You can even be explicit about whether each
+ component has been encoded already.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HttpUrl.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
static int |
+defaultPort(String scheme)
+Returns 80 if
+scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise. |
+
String |
+encodedFragment() |
+
String |
+encodedPassword()
+Returns the password, or an empty string if none is set.
+ |
+
String |
+encodedPath()
+Returns the entire path of this URL, encoded for use in HTTP resource resolution.
+ |
+
List<String> |
+encodedPathSegments() |
+
String |
+encodedQuery()
+Returns the query of this URL, encoded for use in HTTP resource resolution.
+ |
+
String |
+encodedUsername()
+Returns the username, or an empty string if none is set.
+ |
+
boolean |
+equals(Object o) |
+
String |
+fragment() |
+
static HttpUrl |
+get(URI uri) |
+
static HttpUrl |
+get(URL url)
+Returns an
+HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol. |
+
int |
+hashCode() |
+
String |
+host()
+Returns the host address suitable for use with
+InetAddress.getAllByName(String). |
+
boolean |
+isHttps() |
+
HttpUrl.Builder |
+newBuilder() |
+
static HttpUrl |
+parse(String url)
+Returns a new
+HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't. |
+
String |
+password()
+Returns the decoded password, or an empty string if none is present.
+ |
+
List<String> |
+pathSegments() |
+
int |
+pathSize() |
+
int |
+port()
+Returns the explicitly-specified port if one was provided, or the default port for this URL's
+ scheme.
+ |
+
String |
+query() |
+
String |
+queryParameter(String name)
+Returns the first query parameter named
+name decoded using UTF-8, or null if there is
+ no such query parameter. |
+
String |
+queryParameterName(int index) |
+
Set<String> |
+queryParameterNames() |
+
String |
+queryParameterValue(int index) |
+
List<String> |
+queryParameterValues(String name) |
+
int |
+querySize() |
+
HttpUrl |
+resolve(String link)
+Returns the URL that would be retrieved by following
+link from this URL. |
+
String |
+scheme()
+Returns either "http" or "https".
+ |
+
String |
+toString() |
+
URI |
+uri()
+Returns this URL as a
+java.net.URI. |
+
URL |
+url()
+Returns this URL as a
+java.net.URL. |
+
String |
+username() |
+
public URL url()+
java.net.URL.public URI uri()+
java.net.URI. Because URI forbids certain characters
+ like [ and |, the returned URI may escape more characters than this URL.
+
+ This method throws an unchecked IllegalStateException if it cannot be converted to a
+ URI even after escaping forbidden characters. In particular, URLs that contain malformed
+ percent escapes like http://host/%xx will trigger this exception.
public String scheme()+
public boolean isHttps()+
public String encodedUsername()+
public String username()+
public String encodedPassword()+
public String password()+
public String host()+
InetAddress.getAllByName(String). May
+ be:
+ android.com.
+ 127.0.0.1.
+ ::1. Note that there are no square braces.
+ xn--n3h.net.
+ public int port()+
https://square.com:8443/ and 443 for https://square.com/. The result is in [1..65535].public static int defaultPort(String scheme)+
scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise.public int pathSize()+
public String encodedPath()+
/.public String encodedQuery()+
public String query()+
public int querySize()+
public String queryParameter(String name)+
name decoded using UTF-8, or null if there is
+ no such query parameter.public String queryParameterName(int index)+
public String queryParameterValue(int index)+
public String encodedFragment()+
public String fragment()+
public HttpUrl resolve(String link)+
link from this URL.public HttpUrl.Builder newBuilder()+
public static HttpUrl parse(String url)+
HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't.public static HttpUrl get(URL url)+
HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Interceptor.Chain.html b/2.x/okhttp/com/squareup/okhttp/Interceptor.Chain.html new file mode 100644 index 000000000..d970136cb --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Interceptor.Chain.html @@ -0,0 +1,257 @@ + + + + + + + +public static interface Interceptor.Chain
+| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+connection() |
+
Response |
+proceed(Request request) |
+
Request |
+request() |
+
Request request()+
Response proceed(Request request) + throws IOException+
IOExceptionConnection connection()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Interceptor.html b/2.x/okhttp/com/squareup/okhttp/Interceptor.html new file mode 100644 index 000000000..dfbfb7a4f --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Interceptor.html @@ -0,0 +1,249 @@ + + + + + + + +public interface Interceptor
+| Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+Interceptor.Chain |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response |
+intercept(Interceptor.Chain chain) |
+
Response intercept(Interceptor.Chain chain) + throws IOException+
IOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/MediaType.html b/2.x/okhttp/com/squareup/okhttp/MediaType.html new file mode 100644 index 000000000..3a1bb9f5b --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/MediaType.html @@ -0,0 +1,373 @@ + + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Charset |
+charset()
+Returns the charset of this media type, or null if this media type doesn't
+ specify a charset.
+ |
+
Charset |
+charset(Charset defaultValue)
+Returns the charset of this media type, or
+defaultValue if this
+ media type doesn't specify a charset. |
+
boolean |
+equals(Object o) |
+
int |
+hashCode() |
+
static MediaType |
+parse(String string)
+Returns a media type for
+string, or null if string is not a
+ well-formed media type. |
+
String |
+subtype()
+Returns a specific media subtype, such as "plain" or "png", "mpeg",
+ "mp4" or "xml".
+ |
+
String |
+toString()
+Returns the encoded media type, like "text/plain; charset=utf-8",
+ appropriate for use in a Content-Type header.
+ |
+
String |
+type()
+Returns the high-level media type, such as "text", "image", "audio",
+ "video", or "application".
+ |
+
public static MediaType parse(String string)+
string, or null if string is not a
+ well-formed media type.public String type()+
public String subtype()+
public Charset charset()+
public Charset charset(Charset defaultValue)+
defaultValue if this
+ media type doesn't specify a charset.public String toString()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/MultipartBuilder.html b/2.x/okhttp/com/squareup/okhttp/MultipartBuilder.html new file mode 100644 index 000000000..5335bd39a --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/MultipartBuilder.html @@ -0,0 +1,507 @@ + + + + + + +public final class MultipartBuilder +extends Object+
| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+ALTERNATIVE
+The "multipart/alternative" type is syntactically identical to
+ "multipart/mixed", but the semantics are different.
+ |
+
static MediaType |
+DIGEST
+This type is syntactically identical to "multipart/mixed", but the
+ semantics are different.
+ |
+
static MediaType |
+FORM
+The media-type multipart/form-data follows the rules of all multipart
+ MIME data streams as outlined in RFC 2046.
+ |
+
static MediaType |
+MIXED
+The "mixed" subtype of "multipart" is intended for use when the body
+ parts are independent and need to be bundled in a particular order.
+ |
+
static MediaType |
+PARALLEL
+This type is syntactically identical to "multipart/mixed", but the
+ semantics are different.
+ |
+
| Constructor and Description | +
|---|
MultipartBuilder()
+Creates a new multipart builder that uses a random boundary token.
+ |
+
MultipartBuilder(String boundary)
+Creates a new multipart builder that uses
+boundary to separate
+ parts. |
+
| Modifier and Type | +Method and Description | +
|---|---|
MultipartBuilder |
+addFormDataPart(String name,
+ String value)
+Add a form data part to the body.
+ |
+
MultipartBuilder |
+addFormDataPart(String name,
+ String filename,
+ RequestBody value)
+Add a form data part to the body.
+ |
+
MultipartBuilder |
+addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
MultipartBuilder |
+addPart(RequestBody body)
+Add a part to the body.
+ |
+
RequestBody |
+build()
+Assemble the specified parts into a request body.
+ |
+
MultipartBuilder |
+type(MediaType type)
+Set the MIME type.
+ |
+
public static final MediaType MIXED+
public static final MediaType ALTERNATIVE+
public static final MediaType DIGEST+
Content-Type value for a body part is changed from "text/plain" to
+ "message/rfc822".public static final MediaType PARALLEL+
public static final MediaType FORM+
public MultipartBuilder()+
public MultipartBuilder(String boundary)+
boundary to separate
+ parts. Prefer the no-argument constructor to defend against injection
+ attacks.public MultipartBuilder type(MediaType type)+
type are MIXED (the
+ default), ALTERNATIVE, DIGEST, PARALLEL and
+ FORM.public MultipartBuilder addPart(RequestBody body)+
public MultipartBuilder addPart(Headers headers, + RequestBody body)+
public MultipartBuilder addFormDataPart(String name, + String value)+
public MultipartBuilder addFormDataPart(String name, + String filename, + RequestBody value)+
public RequestBody build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/OkHttpClient.html b/2.x/okhttp/com/squareup/okhttp/OkHttpClient.html new file mode 100644 index 000000000..a7ded98bc --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/OkHttpClient.html @@ -0,0 +1,1054 @@ + + + + + + + +public class OkHttpClient +extends Object +implements Cloneable+
Instances of OkHttpClient are intended to be fully configured before they're
+ shared - once shared they should be treated as immutable and can safely be used
+ to concurrently open new connections. If required, threads can call
+ clone() to make a shallow copy of the OkHttpClient that can be
+ safely modified with further configuration changes.
| Constructor and Description | +
|---|
OkHttpClient() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+cancel(Object tag)
+Cancels all scheduled or in-flight calls tagged with
+tag. |
+
OkHttpClient |
+clone()
+Returns a shallow copy of this OkHttpClient.
+ |
+
Authenticator |
+getAuthenticator() |
+
Cache |
+getCache() |
+
CertificatePinner |
+getCertificatePinner() |
+
ConnectionPool |
+getConnectionPool() |
+
List<ConnectionSpec> |
+getConnectionSpecs() |
+
int |
+getConnectTimeout()
+Default connect timeout (in milliseconds).
+ |
+
CookieHandler |
+getCookieHandler() |
+
Dispatcher |
+getDispatcher() |
+
Dns |
+getDns() |
+
boolean |
+getFollowRedirects() |
+
boolean |
+getFollowSslRedirects() |
+
HostnameVerifier |
+getHostnameVerifier() |
+
List<Protocol> |
+getProtocols() |
+
Proxy |
+getProxy() |
+
ProxySelector |
+getProxySelector() |
+
int |
+getReadTimeout()
+Default read timeout (in milliseconds).
+ |
+
boolean |
+getRetryOnConnectionFailure() |
+
SocketFactory |
+getSocketFactory() |
+
SSLSocketFactory |
+getSslSocketFactory() |
+
int |
+getWriteTimeout()
+Default write timeout (in milliseconds).
+ |
+
List<Interceptor> |
+interceptors()
+Returns a modifiable list of interceptors that observe the full span of each call: from before
+ the connection is established (if any) until after the response source is selected (either the
+ origin server, cache, or both).
+ |
+
List<Interceptor> |
+networkInterceptors()
+Returns a modifiable list of interceptors that observe a single network request and response.
+ |
+
Call |
+newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
OkHttpClient |
+setAuthenticator(Authenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
OkHttpClient |
+setCache(Cache cache) |
+
OkHttpClient |
+setCertificatePinner(CertificatePinner certificatePinner)
+Sets the certificate pinner that constrains which certificates are trusted.
+ |
+
OkHttpClient |
+setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
OkHttpClient |
+setConnectionSpecs(List<ConnectionSpec> connectionSpecs) |
+
void |
+setConnectTimeout(long timeout,
+ TimeUnit unit)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient |
+setCookieHandler(CookieHandler cookieHandler)
+Sets the cookie handler to be used to read outgoing cookies and write
+ incoming cookies.
+ |
+
OkHttpClient |
+setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to set policy and execute asynchronous requests.
+ |
+
OkHttpClient |
+setDns(Dns dns)
+Sets the DNS service used to lookup IP addresses for hostnames.
+ |
+
void |
+setFollowRedirects(boolean followRedirects)
+Configure this client to follow redirects.
+ |
+
OkHttpClient |
+setFollowSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP
+ to HTTPS.
+ |
+
OkHttpClient |
+setHostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to
+ requested hostnames for HTTPS connections.
+ |
+
OkHttpClient |
+setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
OkHttpClient |
+setProxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this
+ client.
+ |
+
OkHttpClient |
+setProxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy
+ is specified explicitly. |
+
void |
+setReadTimeout(long timeout,
+ TimeUnit unit)
+Sets the default read timeout for new connections.
+ |
+
void |
+setRetryOnConnectionFailure(boolean retryOnConnectionFailure)
+Configure this client to retry or not when a connectivity problem is encountered.
+ |
+
OkHttpClient |
+setSocketFactory(SocketFactory socketFactory)
+Sets the socket factory used to create connections.
+ |
+
OkHttpClient |
+setSslSocketFactory(SSLSocketFactory sslSocketFactory)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
void |
+setWriteTimeout(long timeout,
+ TimeUnit unit)
+Sets the default write timeout for new connections.
+ |
+
public void setConnectTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.URLConnection.setConnectTimeout(int)public int getConnectTimeout()+
public void setReadTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.URLConnection.setReadTimeout(int)public int getReadTimeout()+
public void setWriteTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.public int getWriteTimeout()+
public OkHttpClient setProxy(Proxy proxy)+
setProxySelector(java.net.ProxySelector), which is
+ only honored when this proxy is null (which it is by default). To disable
+ proxy use completely, call setProxy(Proxy.NO_PROXY).public Proxy getProxy()+
public OkHttpClient setProxySelector(ProxySelector proxySelector)+
proxy
+ is specified explicitly. The proxy selector may return multiple proxies;
+ in that case they will be tried in sequence until a successful connection
+ is established.
+
+ If unset, the system-wide default
+ proxy selector will be used.
public ProxySelector getProxySelector()+
public OkHttpClient setCookieHandler(CookieHandler cookieHandler)+
If unset, the system-wide default
+ cookie handler will be used.
public CookieHandler getCookieHandler()+
public OkHttpClient setCache(Cache cache)+
public Cache getCache()+
public OkHttpClient setDns(Dns dns)+
If unset, the system-wide default DNS will be used.
public Dns getDns()+
public OkHttpClient setSocketFactory(SocketFactory socketFactory)+
createSocket()
+ method to create unconnected sockets. Overriding this method,
+ e. g., allows the socket to be bound to a specific local address.
+
+ If unset, the system-wide default
+ socket factory will be used.
public SocketFactory getSocketFactory()+
public OkHttpClient setSslSocketFactory(SSLSocketFactory sslSocketFactory)+
If unset, a lazily created SSL socket factory will be used.
public SSLSocketFactory getSslSocketFactory()+
public OkHttpClient setHostnameVerifier(HostnameVerifier hostnameVerifier)+
If unset, a default hostname verifier will be used.
public HostnameVerifier getHostnameVerifier()+
public OkHttpClient setCertificatePinner(CertificatePinner certificatePinner)+
SSL socket factory to establish trust. Pinning certificates avoids the
+ need to trust certificate authorities.public CertificatePinner getCertificatePinner()+
public OkHttpClient setAuthenticator(Authenticator authenticator)+
If unset, the system-wide default
+ authenticator will be used.
public Authenticator getAuthenticator()+
public OkHttpClient setConnectionPool(ConnectionPool connectionPool)+
If unset, the system-wide
+ default connection pool will be used.
public ConnectionPool getConnectionPool()+
public OkHttpClient setFollowSslRedirects(boolean followProtocolRedirects)+
If unset, protocol redirects will be followed. This is different than
+ the built-in HttpURLConnection's default.
public boolean getFollowSslRedirects()+
public void setFollowRedirects(boolean followRedirects)+
public boolean getFollowRedirects()+
public void setRetryOnConnectionFailure(boolean retryOnConnectionFailure)+
ConnectionPool reuses sockets
+ to decrease request latency, but these connections will occasionally time out.
+ ProxySelector can be used to
+ attempt multiple proxy servers in sequence, eventually falling back to a direct
+ connection.
+ public boolean getRetryOnConnectionFailure()+
public OkHttpClient setDispatcher(Dispatcher dispatcher)+
public Dispatcher getDispatcher()+
public OkHttpClient setProtocols(List<Protocol> protocols)+
The following protocols are currently supported: +
+ +This is an evolving set. Future releases include + support for transitional protocols. The http/1.1 transport will never be + dropped. + +
If multiple protocols are specified, ALPN + will be used to negotiate a transport. + +
Protocol.HTTP_1_0 is not supported in this set. Requests are
+ initiated with HTTP/1.1 only. If the server responds with HTTP/1.0, that will be exposed by Response.protocol().
protocols - the protocols to use, in order of preference. The list
+ must contain Protocol.HTTP_1_1. It must not contain null or
+ Protocol.HTTP_1_0.public OkHttpClient setConnectionSpecs(List<ConnectionSpec> connectionSpecs)+
public List<ConnectionSpec> getConnectionSpecs()+
public List<Interceptor> interceptors()+
public List<Interceptor> networkInterceptors()+
Interceptor.Chain.proceed(com.squareup.okhttp.Request) exactly once: it is an error for
+ a network interceptor to short-circuit or repeat a network request.public Call newCall(Request request)+
request to be executed at some point in the future.public OkHttpClient cancel(Object tag)+
tag. Requests
+ that are already complete cannot be canceled.public OkHttpClient clone()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Protocol.html b/2.x/okhttp/com/squareup/okhttp/Protocol.html new file mode 100644 index 000000000..35004f0dc --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Protocol.html @@ -0,0 +1,452 @@ + + + + + + + +public enum Protocol +extends Enum<Protocol>+
URL.getProtocol() returns the
+ scheme (http, https, etc.) of the URL, not
+ the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol
+ to identify how HTTP messages are framed.| Enum Constant and Description | +
|---|
HTTP_1_0
+An obsolete plaintext framing that does not use persistent sockets by
+ default.
+ |
+
HTTP_1_1
+A plaintext framing that includes persistent connections.
+ |
+
HTTP_2
+The IETF's binary-framed protocol that includes header compression,
+ multiplexing multiple requests on the same socket, and server-push.
+ |
+
SPDY_3
+Chromium's binary-framed protocol that includes header compression,
+ multiplexing multiple requests on the same socket, and server-push.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+get(String protocol)
+Returns the protocol identified by
+protocol. |
+
String |
+toString()
+Returns the string used to identify this protocol for ALPN, like
+ "http/1.1", "spdy/3.1" or "h2".
+ |
+
static Protocol |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final Protocol HTTP_1_0+
public static final Protocol HTTP_1_1+
This version of OkHttp implements RFC 2616, and tracks + revisions to that spec.
public static final Protocol SPDY_3+
This version of OkHttp implements SPDY 3 draft + 3.1. Future releases of OkHttp may use this identifier for a newer draft + of the SPDY spec.
public static final Protocol HTTP_2+
HTTP/2 requires deployments of HTTP/2 that use TLS 1.2 support
+ CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
+ , present in Java 8+ and Android 5+. Servers that enforce this may send an
+ exception message including the string INADEQUATE_SECURITY.
public static Protocol[] values()+
+for (Protocol c : Protocol.values()) + System.out.println(c); +
public static Protocol valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Protocol get(String protocol) + throws IOException+
protocol.IOException - if protocol is unknown.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Request.Builder.html b/2.x/okhttp/com/squareup/okhttp/Request.Builder.html new file mode 100644 index 000000000..f6900a5bf --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Request.Builder.html @@ -0,0 +1,543 @@ + + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Request |
+build() |
+
Request.Builder |
+cacheControl(CacheControl cacheControl)
+Sets this request's
+Cache-Control header, replacing any cache
+ control headers already present. |
+
Request.Builder |
+delete() |
+
Request.Builder |
+delete(RequestBody body) |
+
Request.Builder |
+get() |
+
Request.Builder |
+head() |
+
Request.Builder |
+header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Request.Builder |
+headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Request.Builder |
+method(String method,
+ RequestBody body) |
+
Request.Builder |
+patch(RequestBody body) |
+
Request.Builder |
+post(RequestBody body) |
+
Request.Builder |
+put(RequestBody body) |
+
Request.Builder |
+removeHeader(String name) |
+
Request.Builder |
+tag(Object tag)
+Attaches
+tag to the request. |
+
Request.Builder |
+url(HttpUrl url) |
+
Request.Builder |
+url(String url)
+Sets the URL target of this request.
+ |
+
Request.Builder |
+url(URL url)
+Sets the URL target of this request.
+ |
+
public Request.Builder url(HttpUrl url)+
public Request.Builder url(String url)+
IllegalArgumentException - if url is not a valid HTTP or HTTPS URL. Avoid this
+ exception by calling HttpUrl.parse(java.lang.String); it returns null for invalid URLs.public Request.Builder url(URL url)+
IllegalArgumentException - if the scheme of url is not http or https.public Request.Builder header(String name, + String value)+
name to value. If this request
+ already has any headers with that name, they are all replaced.public Request.Builder addHeader(String name, + String value)+
name and value. Prefer this method for
+ multiply-valued headers like "Cookie".
+
+ Note that for some headers including Content-Length and Content-Encoding,
+ OkHttp may replace value with a header derived from the request body.
public Request.Builder removeHeader(String name)+
public Request.Builder headers(Headers headers)+
headers.public Request.Builder cacheControl(CacheControl cacheControl)+
Cache-Control header, replacing any cache
+ control headers already present. If cacheControl doesn't define
+ any directives, this clears this request's cache-control headers.public Request.Builder get()+
public Request.Builder head()+
public Request.Builder post(RequestBody body)+
public Request.Builder delete(RequestBody body)+
public Request.Builder delete()+
public Request.Builder put(RequestBody body)+
public Request.Builder patch(RequestBody body)+
public Request.Builder method(String method, + RequestBody body)+
public Request.Builder tag(Object tag)+
tag to the request. It can be used later to cancel the
+ request. If the tag is unspecified or null, the request is canceled by
+ using the request itself as the tag.public Request build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Request.html b/2.x/okhttp/com/squareup/okhttp/Request.html new file mode 100644 index 000000000..da885d66c --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Request.html @@ -0,0 +1,441 @@ + + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Request.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
RequestBody |
+body() |
+
CacheControl |
+cacheControl()
+Returns the cache control directives for this response.
+ |
+
String |
+header(String name) |
+
Headers |
+headers() |
+
List<String> |
+headers(String name) |
+
HttpUrl |
+httpUrl() |
+
boolean |
+isHttps() |
+
String |
+method() |
+
Request.Builder |
+newBuilder() |
+
Object |
+tag() |
+
String |
+toString() |
+
URI |
+uri() |
+
URL |
+url() |
+
String |
+urlString() |
+
public HttpUrl httpUrl()+
public URL url()+
public URI uri() + throws IOException+
IOExceptionpublic String urlString()+
public String method()+
public Headers headers()+
public RequestBody body()+
public Object tag()+
public Request.Builder newBuilder()+
public CacheControl cacheControl()+
Cache-Control header.public boolean isHttps()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/RequestBody.html b/2.x/okhttp/com/squareup/okhttp/RequestBody.html new file mode 100644 index 000000000..7427dee7e --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/RequestBody.html @@ -0,0 +1,413 @@ + + + + + + + +public abstract class RequestBody +extends Object+
| Constructor and Description | +
|---|
RequestBody() |
+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+contentLength()
+Returns the number of bytes that will be written to
+out in a call
+ to writeTo(okio.BufferedSink), or -1 if that count is unknown. |
+
abstract MediaType |
+contentType()
+Returns the Content-Type header for this body.
+ |
+
static RequestBody |
+create(MediaType contentType,
+ byte[] content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+create(MediaType contentType,
+ byte[] content,
+ int offset,
+ int byteCount)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+create(MediaType contentType,
+ okio.ByteString content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+create(MediaType contentType,
+ File file)
+Returns a new request body that transmits the content of
+file. |
+
static RequestBody |
+create(MediaType contentType,
+ String content)
+Returns a new request body that transmits
+content. |
+
abstract void |
+writeTo(okio.BufferedSink sink)
+Writes the content of this request to
+out. |
+
public abstract MediaType contentType()+
public long contentLength() + throws IOException+
out in a call
+ to writeTo(okio.BufferedSink), or -1 if that count is unknown.IOExceptionpublic abstract void writeTo(okio.BufferedSink sink) + throws IOException+
out.IOExceptionpublic static RequestBody create(MediaType contentType, + String content)+
content. If contentType is non-null and lacks a charset, this will use UTF-8.public static RequestBody create(MediaType contentType, + okio.ByteString content)+
content.public static RequestBody create(MediaType contentType, + byte[] content)+
content.public static RequestBody create(MediaType contentType, + byte[] content, + int offset, + int byteCount)+
content.public static RequestBody create(MediaType contentType, + File file)+
file.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Response.Builder.html b/2.x/okhttp/com/squareup/okhttp/Response.Builder.html new file mode 100644 index 000000000..006f2a5e6 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Response.Builder.html @@ -0,0 +1,460 @@ + + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Response.Builder |
+body(ResponseBody body) |
+
Response |
+build() |
+
Response.Builder |
+cacheResponse(Response cacheResponse) |
+
Response.Builder |
+code(int code) |
+
Response.Builder |
+handshake(Handshake handshake) |
+
Response.Builder |
+header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Response.Builder |
+headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Response.Builder |
+message(String message) |
+
Response.Builder |
+networkResponse(Response networkResponse) |
+
Response.Builder |
+priorResponse(Response priorResponse) |
+
Response.Builder |
+protocol(Protocol protocol) |
+
Response.Builder |
+removeHeader(String name) |
+
Response.Builder |
+request(Request request) |
+
public Response.Builder request(Request request)+
public Response.Builder protocol(Protocol protocol)+
public Response.Builder code(int code)+
public Response.Builder message(String message)+
public Response.Builder handshake(Handshake handshake)+
public Response.Builder header(String name, + String value)+
name to value. If this request
+ already has any headers with that name, they are all replaced.public Response.Builder addHeader(String name, + String value)+
name and value. Prefer this method for
+ multiply-valued headers like "Set-Cookie".public Response.Builder removeHeader(String name)+
public Response.Builder headers(Headers headers)+
headers.public Response.Builder body(ResponseBody body)+
public Response.Builder networkResponse(Response networkResponse)+
public Response.Builder cacheResponse(Response cacheResponse)+
public Response.Builder priorResponse(Response priorResponse)+
public Response build()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Response.html b/2.x/okhttp/com/squareup/okhttp/Response.html new file mode 100644 index 000000000..ce20c3d49 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Response.html @@ -0,0 +1,563 @@ + + + + + + + +public final class Response +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Response.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
ResponseBody |
+body() |
+
CacheControl |
+cacheControl()
+Returns the cache control directives for this response.
+ |
+
Response |
+cacheResponse()
+Returns the raw response received from the cache.
+ |
+
List<Challenge> |
+challenges()
+Returns the authorization challenges appropriate for this response's code.
+ |
+
int |
+code()
+Returns the HTTP status code.
+ |
+
Handshake |
+handshake()
+Returns the TLS handshake of the connection that carried this response, or
+ null if the response was received without TLS.
+ |
+
String |
+header(String name) |
+
String |
+header(String name,
+ String defaultValue) |
+
Headers |
+headers() |
+
List<String> |
+headers(String name) |
+
boolean |
+isRedirect()
+Returns true if this response redirects to another resource.
+ |
+
boolean |
+isSuccessful()
+Returns true if the code is in [200..300), which means the request was
+ successfully received, understood, and accepted.
+ |
+
String |
+message()
+Returns the HTTP status message or null if it is unknown.
+ |
+
Response |
+networkResponse()
+Returns the raw response received from the network.
+ |
+
Response.Builder |
+newBuilder() |
+
Response |
+priorResponse()
+Returns the response for the HTTP redirect or authorization challenge that
+ triggered this response, or null if this response wasn't triggered by an
+ automatic retry.
+ |
+
Protocol |
+protocol()
+Returns the HTTP protocol, such as
+Protocol.HTTP_1_1 or Protocol.HTTP_1_0. |
+
Request |
+request()
+The wire-level request that initiated this HTTP response.
+ |
+
String |
+toString() |
+
public Request request()+
Content-Length from the request body.
+ public Protocol protocol()+
Protocol.HTTP_1_1 or Protocol.HTTP_1_0.public int code()+
public boolean isSuccessful()+
public String message()+
public Handshake handshake()+
public Headers headers()+
public ResponseBody body()+
public Response.Builder newBuilder()+
public boolean isRedirect()+
public Response networkResponse()+
public Response cacheResponse()+
public Response priorResponse()+
public List<Challenge> challenges()+
public CacheControl cacheControl()+
Cache-Control header.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/ResponseBody.html b/2.x/okhttp/com/squareup/okhttp/ResponseBody.html new file mode 100644 index 000000000..3eee3eb8e --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/ResponseBody.html @@ -0,0 +1,480 @@ + + + + + + + +public abstract class ResponseBody +extends Object +implements Closeable+
| Constructor and Description | +
|---|
ResponseBody() |
+
| Modifier and Type | +Method and Description | +
|---|---|
byte[] |
+bytes() |
+
InputStream |
+byteStream() |
+
Reader |
+charStream()
+Returns the response as a character stream decoded with the charset
+ of the Content-Type header.
+ |
+
void |
+close() |
+
abstract long |
+contentLength()
+Returns the number of bytes in that will returned by
+bytes(), or
+ byteStream(), or -1 if unknown. |
+
abstract MediaType |
+contentType() |
+
static ResponseBody |
+create(MediaType contentType,
+ byte[] content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+create(MediaType contentType,
+ long contentLength,
+ okio.BufferedSource content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+create(MediaType contentType,
+ String content)
+Returns a new response body that transmits
+content. |
+
abstract okio.BufferedSource |
+source() |
+
String |
+string()
+Returns the response as a string decoded with the charset of the
+ Content-Type header.
+ |
+
public abstract MediaType contentType()+
public abstract long contentLength() + throws IOException+
bytes(), or
+ byteStream(), or -1 if unknown.IOExceptionpublic final InputStream byteStream() + throws IOException+
IOExceptionpublic abstract okio.BufferedSource source() + throws IOException+
IOExceptionpublic final byte[] bytes() + throws IOException+
IOExceptionpublic final Reader charStream() + throws IOException+
IOExceptionpublic final String string() + throws IOException+
IOExceptionpublic void close() + throws IOException+
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static ResponseBody create(MediaType contentType, + String content)+
content. If contentType is non-null and lacks a charset, this will use UTF-8.public static ResponseBody create(MediaType contentType, + byte[] content)+
content.public static ResponseBody create(MediaType contentType, + long contentLength, + okio.BufferedSource content)+
content.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/Route.html b/2.x/okhttp/com/squareup/okhttp/Route.html new file mode 100644 index 000000000..a02d4bb87 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/Route.html @@ -0,0 +1,370 @@ + + + + + + + +public final class Route +extends Object+
| Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object obj) |
+
Address |
+getAddress() |
+
Proxy |
+getProxy()
+Returns the
+Proxy of this route. |
+
InetSocketAddress |
+getSocketAddress() |
+
int |
+hashCode() |
+
boolean |
+requiresTunnel()
+Returns true if this route tunnels HTTPS through an HTTP proxy.
+ |
+
public Route(Address address, + Proxy proxy, + InetSocketAddress inetSocketAddress)+
public Address getAddress()+
public Proxy getProxy()+
Proxy of this route.
+
+ Warning: This may disagree with Address.getProxy()
+ when it is null. When the address's proxy is null, the proxy selector is
+ used.public InetSocketAddress getSocketAddress()+
public boolean requiresTunnel()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/TlsVersion.html b/2.x/okhttp/com/squareup/okhttp/TlsVersion.html new file mode 100644 index 000000000..e09129754 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/TlsVersion.html @@ -0,0 +1,394 @@ + + + + + + + +public enum TlsVersion +extends Enum<TlsVersion>+
SSLSocket.setEnabledProtocols(java.lang.String[]).| Enum Constant and Description | +
|---|
SSL_3_0 |
+
TLS_1_0 |
+
TLS_1_1 |
+
TLS_1_2 |
+
| Modifier and Type | +Method and Description | +
|---|---|
static TlsVersion |
+forJavaName(String javaName) |
+
String |
+javaName() |
+
static TlsVersion |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static TlsVersion[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final TlsVersion TLS_1_2+
public static final TlsVersion TLS_1_1+
public static final TlsVersion TLS_1_0+
public static final TlsVersion SSL_3_0+
public static TlsVersion[] values()+
+for (TlsVersion c : TlsVersion.values()) + System.out.println(c); +
public static TlsVersion valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TlsVersion forJavaName(String javaName)+
public String javaName()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Address.html b/2.x/okhttp/com/squareup/okhttp/class-use/Address.html new file mode 100644 index 000000000..873bc78eb --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Address.html @@ -0,0 +1,162 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Address |
+Route.getAddress() |
+
| Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Authenticator.html b/2.x/okhttp/com/squareup/okhttp/class-use/Authenticator.html new file mode 100644 index 000000000..119690785 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Authenticator.html @@ -0,0 +1,193 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Authenticator |
+OkHttpClient.getAuthenticator() |
+
Authenticator |
+Address.getAuthenticator()
+Returns the client's authenticator.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setAuthenticator(Authenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Cache.html b/2.x/okhttp/com/squareup/okhttp/class-use/Cache.html new file mode 100644 index 000000000..1a59886c9 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Cache.html @@ -0,0 +1,162 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+OkHttpClient.getCache() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setCache(Cache cache) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/CacheControl.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/CacheControl.Builder.html new file mode 100644 index 000000000..7d27b816a --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/CacheControl.Builder.html @@ -0,0 +1,192 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
CacheControl.Builder |
+CacheControl.Builder.maxAge(int maxAge,
+ TimeUnit timeUnit)
+Sets the maximum age of a cached response.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.maxStale(int maxStale,
+ TimeUnit timeUnit)
+Accept cached responses that have exceeded their freshness lifetime by
+ up to
+maxStale. |
+
CacheControl.Builder |
+CacheControl.Builder.minFresh(int minFresh,
+ TimeUnit timeUnit)
+Sets the minimum number of seconds that a response will continue to be
+ fresh for.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.noCache()
+Don't accept an unvalidated cached response.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.noStore()
+Don't store the server's response in any cache.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.noTransform()
+Don't accept a transformed response.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.onlyIfCached()
+Only accept the response if it is in the cache.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html b/2.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html new file mode 100644 index 000000000..fdb0dea7a --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html @@ -0,0 +1,206 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static CacheControl |
+CacheControl.FORCE_CACHE
+Cache control request directives that uses the cache only, even if the
+ cached response is stale.
+ |
+
static CacheControl |
+CacheControl.FORCE_NETWORK
+Cache control request directives that require network validation of
+ responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
CacheControl |
+CacheControl.Builder.build() |
+
CacheControl |
+Response.cacheControl()
+Returns the cache control directives for this response.
+ |
+
CacheControl |
+Request.cacheControl()
+Returns the cache control directives for this response.
+ |
+
static CacheControl |
+CacheControl.parse(Headers headers)
+Returns the cache directives of
+headers. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+Request.Builder.cacheControl(CacheControl cacheControl)
+Sets this request's
+Cache-Control header, replacing any cache
+ control headers already present. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Call.html b/2.x/okhttp/com/squareup/okhttp/class-use/Call.html new file mode 100644 index 000000000..d2f1966b5 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Call.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Call |
+OkHttpClient.newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Callback.html b/2.x/okhttp/com/squareup/okhttp/class-use/Callback.html new file mode 100644 index 000000000..da9ccc26d --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Callback.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+Call.enqueue(Callback responseCallback)
+Schedules the request to be executed at some point in the future.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/CertificatePinner.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/CertificatePinner.Builder.html new file mode 100644 index 000000000..6846ad681 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/CertificatePinner.Builder.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner.Builder |
+CertificatePinner.Builder.add(String hostname,
+ String... pins)
+Pins certificates for
+hostname. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/CertificatePinner.html b/2.x/okhttp/com/squareup/okhttp/class-use/CertificatePinner.html new file mode 100644 index 000000000..9e0d3ac94 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/CertificatePinner.html @@ -0,0 +1,209 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static CertificatePinner |
+CertificatePinner.DEFAULT |
+
| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner |
+CertificatePinner.Builder.build() |
+
CertificatePinner |
+OkHttpClient.getCertificatePinner() |
+
CertificatePinner |
+Address.getCertificatePinner()
+Returns this address's certificate pinner, or null if this is not an HTTPS address.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setCertificatePinner(CertificatePinner certificatePinner)
+Sets the certificate pinner that constrains which certificates are trusted.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Challenge.html b/2.x/okhttp/com/squareup/okhttp/class-use/Challenge.html new file mode 100644 index 000000000..79af61850 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Challenge.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
List<Challenge> |
+Response.challenges()
+Returns the authorization challenges appropriate for this response's code.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/CipherSuite.html b/2.x/okhttp/com/squareup/okhttp/class-use/CipherSuite.html new file mode 100644 index 000000000..fb13bdfe8 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/CipherSuite.html @@ -0,0 +1,190 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static CipherSuite |
+CipherSuite.forJavaName(String javaName) |
+
static CipherSuite |
+CipherSuite.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CipherSuite[] |
+CipherSuite.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<CipherSuite> |
+ConnectionSpec.cipherSuites()
+Returns the cipher suites to use for a connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+ConnectionSpec.Builder.cipherSuites(CipherSuite... cipherSuites) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Connection.html b/2.x/okhttp/com/squareup/okhttp/class-use/Connection.html new file mode 100644 index 000000000..1ba756415 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Connection.html @@ -0,0 +1,149 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+Interceptor.Chain.connection() |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html b/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html new file mode 100644 index 000000000..4446e83c4 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html @@ -0,0 +1,168 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ConnectionPool |
+OkHttpClient.getConnectionPool() |
+
static ConnectionPool |
+ConnectionPool.getDefault() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionSpec.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionSpec.Builder.html new file mode 100644 index 000000000..f40244661 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionSpec.Builder.html @@ -0,0 +1,173 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+ConnectionSpec.Builder.allEnabledCipherSuites() |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.allEnabledTlsVersions() |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.cipherSuites(CipherSuite... cipherSuites) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.cipherSuites(String... cipherSuites) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.supportsTlsExtensions(boolean supportsTlsExtensions) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.tlsVersions(String... tlsVersions) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.tlsVersions(TlsVersion... tlsVersions) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionSpec.html b/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionSpec.html new file mode 100644 index 000000000..866b87f1c --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/ConnectionSpec.html @@ -0,0 +1,239 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static ConnectionSpec |
+ConnectionSpec.CLEARTEXT
+Unencrypted, unauthenticated connections for
+http: URLs. |
+
static ConnectionSpec |
+ConnectionSpec.COMPATIBLE_TLS
+A backwards-compatible fallback connection for interop with obsolete servers.
+ |
+
static ConnectionSpec |
+ConnectionSpec.MODERN_TLS
+A modern TLS connection with extensions like SNI and ALPN available.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec |
+ConnectionSpec.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<ConnectionSpec> |
+OkHttpClient.getConnectionSpecs() |
+
List<ConnectionSpec> |
+Address.getConnectionSpecs() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setConnectionSpecs(List<ConnectionSpec> connectionSpecs) |
+
| Constructor and Description | +
|---|
Builder(ConnectionSpec connectionSpec) |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Credentials.html b/2.x/okhttp/com/squareup/okhttp/class-use/Credentials.html new file mode 100644 index 000000000..dceb34265 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Credentials.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Dispatcher.html b/2.x/okhttp/com/squareup/okhttp/class-use/Dispatcher.html new file mode 100644 index 000000000..a161afbe3 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Dispatcher.html @@ -0,0 +1,164 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Dispatcher |
+OkHttpClient.getDispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to set policy and execute asynchronous requests.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Dns.html b/2.x/okhttp/com/squareup/okhttp/class-use/Dns.html new file mode 100644 index 000000000..b0d56b6b4 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Dns.html @@ -0,0 +1,208 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static Dns |
+Dns.SYSTEM
+A DNS that uses
+InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Dns |
+OkHttpClient.getDns() |
+
Dns |
+Address.getDns()
+Returns the service that will be used to resolve IP addresses for hostnames.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setDns(Dns dns)
+Sets the DNS service used to lookup IP addresses for hostnames.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/FormEncodingBuilder.html b/2.x/okhttp/com/squareup/okhttp/class-use/FormEncodingBuilder.html new file mode 100644 index 000000000..612c85485 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/FormEncodingBuilder.html @@ -0,0 +1,159 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
FormEncodingBuilder |
+FormEncodingBuilder.add(String name,
+ String value)
+Add new key-value pair.
+ |
+
FormEncodingBuilder |
+FormEncodingBuilder.addEncoded(String name,
+ String value)
+Add new key-value pair.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Handshake.html b/2.x/okhttp/com/squareup/okhttp/class-use/Handshake.html new file mode 100644 index 000000000..5a02a51ad --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Handshake.html @@ -0,0 +1,179 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Handshake |
+Handshake.get(SSLSession session) |
+
static Handshake |
+Handshake.get(String cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
Handshake |
+Connection.getHandshake() |
+
Handshake |
+Response.handshake()
+Returns the TLS handshake of the connection that carried this response, or
+ null if the response was received without TLS.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.handshake(Handshake handshake) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Headers.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/Headers.Builder.html new file mode 100644 index 000000000..fd95a0d1b --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Headers.Builder.html @@ -0,0 +1,173 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Headers.Builder |
+Headers.Builder.add(String line)
+Add an header line containing a field name, a literal colon, and a value.
+ |
+
Headers.Builder |
+Headers.Builder.add(String name,
+ String value)
+Add a field with the specified value.
+ |
+
Headers.Builder |
+Headers.newBuilder() |
+
Headers.Builder |
+Headers.Builder.removeAll(String name) |
+
Headers.Builder |
+Headers.Builder.set(String name,
+ String value)
+Set a field with the specified value.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Headers.html b/2.x/okhttp/com/squareup/okhttp/class-use/Headers.html new file mode 100644 index 000000000..ae233dd86 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Headers.html @@ -0,0 +1,203 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Headers |
+Headers.Builder.build() |
+
Headers |
+Response.headers() |
+
Headers |
+Request.headers() |
+
static Headers |
+Headers.of(Map<String,String> headers)
+Returns headers for the header names and values in the
+Map. |
+
static Headers |
+Headers.of(String... namesAndValues)
+Returns headers for the alternating header names and values.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MultipartBuilder |
+MultipartBuilder.addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
Response.Builder |
+Response.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Request.Builder |
+Request.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
static CacheControl |
+CacheControl.parse(Headers headers)
+Returns the cache directives of
+headers. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/HttpUrl.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/HttpUrl.Builder.html new file mode 100644 index 000000000..36104b8a0 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/HttpUrl.Builder.html @@ -0,0 +1,251 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpUrl.Builder |
+HttpUrl.Builder.addEncodedPathSegment(String encodedPathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.addEncodedQueryParameter(String encodedName,
+ String encodedValue)
+Adds the pre-encoded query parameter to this URL's query string.
+ |
+
HttpUrl.Builder |
+HttpUrl.Builder.addPathSegment(String pathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.addQueryParameter(String name,
+ String value)
+Encodes the query parameter using UTF-8 and adds it to this URL's query string.
+ |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedFragment(String encodedFragment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedPassword(String encodedPassword) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedPath(String encodedPath) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedQuery(String encodedQuery) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedUsername(String encodedUsername) |
+
HttpUrl.Builder |
+HttpUrl.Builder.fragment(String fragment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.host(String host) |
+
HttpUrl.Builder |
+HttpUrl.newBuilder() |
+
HttpUrl.Builder |
+HttpUrl.Builder.password(String password) |
+
HttpUrl.Builder |
+HttpUrl.Builder.port(int port) |
+
HttpUrl.Builder |
+HttpUrl.Builder.query(String query) |
+
HttpUrl.Builder |
+HttpUrl.Builder.removeAllEncodedQueryParameters(String encodedName) |
+
HttpUrl.Builder |
+HttpUrl.Builder.removeAllQueryParameters(String name) |
+
HttpUrl.Builder |
+HttpUrl.Builder.removePathSegment(int index) |
+
HttpUrl.Builder |
+HttpUrl.Builder.scheme(String scheme) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setEncodedPathSegment(int index,
+ String encodedPathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setEncodedQueryParameter(String encodedName,
+ String encodedValue) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setPathSegment(int index,
+ String pathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setQueryParameter(String name,
+ String value) |
+
HttpUrl.Builder |
+HttpUrl.Builder.username(String username) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/HttpUrl.html b/2.x/okhttp/com/squareup/okhttp/class-use/HttpUrl.html new file mode 100644 index 000000000..7066c20cc --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/HttpUrl.html @@ -0,0 +1,196 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpUrl |
+HttpUrl.Builder.build() |
+
static HttpUrl |
+HttpUrl.get(URI uri) |
+
static HttpUrl |
+HttpUrl.get(URL url)
+Returns an
+HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol. |
+
HttpUrl |
+Request.httpUrl() |
+
static HttpUrl |
+HttpUrl.parse(String url)
+Returns a new
+HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't. |
+
HttpUrl |
+HttpUrl.resolve(String link)
+Returns the URL that would be retrieved by following
+link from this URL. |
+
HttpUrl |
+Address.url()
+Returns a URL with the hostname and port of the origin server.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+Request.Builder.url(HttpUrl url) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Interceptor.Chain.html b/2.x/okhttp/com/squareup/okhttp/class-use/Interceptor.Chain.html new file mode 100644 index 000000000..ea1c8d928 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Interceptor.Chain.html @@ -0,0 +1,149 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response |
+Interceptor.intercept(Interceptor.Chain chain) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Interceptor.html b/2.x/okhttp/com/squareup/okhttp/class-use/Interceptor.html new file mode 100644 index 000000000..c198b9158 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Interceptor.html @@ -0,0 +1,159 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
List<Interceptor> |
+OkHttpClient.interceptors()
+Returns a modifiable list of interceptors that observe the full span of each call: from before
+ the connection is established (if any) until after the response source is selected (either the
+ origin server, cache, or both).
+ |
+
List<Interceptor> |
+OkHttpClient.networkInterceptors()
+Returns a modifiable list of interceptors that observe a single network request and response.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/MediaType.html b/2.x/okhttp/com/squareup/okhttp/class-use/MediaType.html new file mode 100644 index 000000000..1a0acd572 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/MediaType.html @@ -0,0 +1,280 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+MultipartBuilder.ALTERNATIVE
+The "multipart/alternative" type is syntactically identical to
+ "multipart/mixed", but the semantics are different.
+ |
+
static MediaType |
+MultipartBuilder.DIGEST
+This type is syntactically identical to "multipart/mixed", but the
+ semantics are different.
+ |
+
static MediaType |
+MultipartBuilder.FORM
+The media-type multipart/form-data follows the rules of all multipart
+ MIME data streams as outlined in RFC 2046.
+ |
+
static MediaType |
+MultipartBuilder.MIXED
+The "mixed" subtype of "multipart" is intended for use when the body
+ parts are independent and need to be bundled in a particular order.
+ |
+
static MediaType |
+MultipartBuilder.PARALLEL
+This type is syntactically identical to "multipart/mixed", but the
+ semantics are different.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract MediaType |
+ResponseBody.contentType() |
+
abstract MediaType |
+RequestBody.contentType()
+Returns the Content-Type header for this body.
+ |
+
static MediaType |
+MediaType.parse(String string)
+Returns a media type for
+string, or null if string is not a
+ well-formed media type. |
+
| Modifier and Type | +Method and Description | +
|---|---|
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ byte[] content)
+Returns a new response body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content,
+ int offset,
+ int byteCount)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ okio.ByteString content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ File file)
+Returns a new request body that transmits the content of
+file. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ long contentLength,
+ okio.BufferedSource content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ String content)
+Returns a new response body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ String content)
+Returns a new request body that transmits
+content. |
+
MultipartBuilder |
+MultipartBuilder.type(MediaType type)
+Set the MIME type.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/MultipartBuilder.html b/2.x/okhttp/com/squareup/okhttp/class-use/MultipartBuilder.html new file mode 100644 index 000000000..dd92b598e --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/MultipartBuilder.html @@ -0,0 +1,179 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
MultipartBuilder |
+MultipartBuilder.addFormDataPart(String name,
+ String value)
+Add a form data part to the body.
+ |
+
MultipartBuilder |
+MultipartBuilder.addFormDataPart(String name,
+ String filename,
+ RequestBody value)
+Add a form data part to the body.
+ |
+
MultipartBuilder |
+MultipartBuilder.addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
MultipartBuilder |
+MultipartBuilder.addPart(RequestBody body)
+Add a part to the body.
+ |
+
MultipartBuilder |
+MultipartBuilder.type(MediaType type)
+Set the MIME type.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html b/2.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html new file mode 100644 index 000000000..254dc8ac8 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html @@ -0,0 +1,262 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.cancel(Object tag)
+Cancels all scheduled or in-flight calls tagged with
+tag. |
+
OkHttpClient |
+OkHttpClient.clone()
+Returns a shallow copy of this OkHttpClient.
+ |
+
OkHttpClient |
+OkHttpClient.setAuthenticator(Authenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
OkHttpClient |
+OkHttpClient.setCache(Cache cache) |
+
OkHttpClient |
+OkHttpClient.setCertificatePinner(CertificatePinner certificatePinner)
+Sets the certificate pinner that constrains which certificates are trusted.
+ |
+
OkHttpClient |
+OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setConnectionSpecs(List<ConnectionSpec> connectionSpecs) |
+
OkHttpClient |
+OkHttpClient.setCookieHandler(CookieHandler cookieHandler)
+Sets the cookie handler to be used to read outgoing cookies and write
+ incoming cookies.
+ |
+
OkHttpClient |
+OkHttpClient.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to set policy and execute asynchronous requests.
+ |
+
OkHttpClient |
+OkHttpClient.setDns(Dns dns)
+Sets the DNS service used to lookup IP addresses for hostnames.
+ |
+
OkHttpClient |
+OkHttpClient.setFollowSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP
+ to HTTPS.
+ |
+
OkHttpClient |
+OkHttpClient.setHostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to
+ requested hostnames for HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
OkHttpClient |
+OkHttpClient.setProxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this
+ client.
+ |
+
OkHttpClient |
+OkHttpClient.setProxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy
+ is specified explicitly. |
+
OkHttpClient |
+OkHttpClient.setSocketFactory(SocketFactory socketFactory)
+Sets the socket factory used to create connections.
+ |
+
OkHttpClient |
+OkHttpClient.setSslSocketFactory(SSLSocketFactory sslSocketFactory)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
| Constructor and Description | +
|---|
Call(OkHttpClient client,
+ Request originalRequest) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Protocol.html b/2.x/okhttp/com/squareup/okhttp/class-use/Protocol.html new file mode 100644 index 000000000..1f4aca0b3 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Protocol.html @@ -0,0 +1,247 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+Protocol.get(String protocol)
+Returns the protocol identified by
+protocol. |
+
Protocol |
+Connection.getProtocol()
+Returns the protocol negotiated by this connection, or
+HTTP_1_1 if no protocol
+ has been negotiated. |
+
Protocol |
+Response.protocol()
+
+ |
+
static Protocol |
+Protocol.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+Protocol.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Protocol> |
+OkHttpClient.getProtocols() |
+
List<Protocol> |
+Address.getProtocols()
+Returns the protocols the client supports.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.protocol(Protocol protocol) |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Request.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/Request.Builder.html new file mode 100644 index 000000000..a9497454b --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Request.Builder.html @@ -0,0 +1,235 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+Request.Builder.addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Request.Builder |
+Request.Builder.cacheControl(CacheControl cacheControl)
+Sets this request's
+Cache-Control header, replacing any cache
+ control headers already present. |
+
Request.Builder |
+Request.Builder.delete() |
+
Request.Builder |
+Request.Builder.delete(RequestBody body) |
+
Request.Builder |
+Request.Builder.get() |
+
Request.Builder |
+Request.Builder.head() |
+
Request.Builder |
+Request.Builder.header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Request.Builder |
+Request.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Request.Builder |
+Request.Builder.method(String method,
+ RequestBody body) |
+
Request.Builder |
+Request.newBuilder() |
+
Request.Builder |
+Request.Builder.patch(RequestBody body) |
+
Request.Builder |
+Request.Builder.post(RequestBody body) |
+
Request.Builder |
+Request.Builder.put(RequestBody body) |
+
Request.Builder |
+Request.Builder.removeHeader(String name) |
+
Request.Builder |
+Request.Builder.tag(Object tag)
+Attaches
+tag to the request. |
+
Request.Builder |
+Request.Builder.url(HttpUrl url) |
+
Request.Builder |
+Request.Builder.url(String url)
+Sets the URL target of this request.
+ |
+
Request.Builder |
+Request.Builder.url(URL url)
+Sets the URL target of this request.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Request.html b/2.x/okhttp/com/squareup/okhttp/class-use/Request.html new file mode 100644 index 000000000..904de3d6e --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Request.html @@ -0,0 +1,218 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Request |
+Authenticator.authenticate(Proxy proxy,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication
+ challenge in
+response. |
+
Request |
+Authenticator.authenticateProxy(Proxy proxy,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication
+ challenge made by
+response. |
+
Request |
+Request.Builder.build() |
+
Request |
+Response.request()
+The wire-level request that initiated this HTTP response.
+ |
+
Request |
+Interceptor.Chain.request() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Call |
+OkHttpClient.newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
void |
+Callback.onFailure(Request request,
+ IOException e)
+Called when the request could not be executed due to cancellation, a
+ connectivity problem or timeout.
+ |
+
Response |
+Interceptor.Chain.proceed(Request request) |
+
Response.Builder |
+Response.Builder.request(Request request) |
+
| Constructor and Description | +
|---|
Call(OkHttpClient client,
+ Request originalRequest) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/RequestBody.html b/2.x/okhttp/com/squareup/okhttp/class-use/RequestBody.html new file mode 100644 index 000000000..21f37bb80 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/RequestBody.html @@ -0,0 +1,247 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
RequestBody |
+Request.body() |
+
RequestBody |
+MultipartBuilder.build()
+Assemble the specified parts into a request body.
+ |
+
RequestBody |
+FormEncodingBuilder.build() |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content,
+ int offset,
+ int byteCount)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ okio.ByteString content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ File file)
+Returns a new request body that transmits the content of
+file. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ String content)
+Returns a new request body that transmits
+content. |
+
| Modifier and Type | +Method and Description | +
|---|---|
MultipartBuilder |
+MultipartBuilder.addFormDataPart(String name,
+ String filename,
+ RequestBody value)
+Add a form data part to the body.
+ |
+
MultipartBuilder |
+MultipartBuilder.addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
MultipartBuilder |
+MultipartBuilder.addPart(RequestBody body)
+Add a part to the body.
+ |
+
Request.Builder |
+Request.Builder.delete(RequestBody body) |
+
Request.Builder |
+Request.Builder.method(String method,
+ RequestBody body) |
+
Request.Builder |
+Request.Builder.patch(RequestBody body) |
+
Request.Builder |
+Request.Builder.post(RequestBody body) |
+
Request.Builder |
+Request.Builder.put(RequestBody body) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Response.Builder.html b/2.x/okhttp/com/squareup/okhttp/class-use/Response.Builder.html new file mode 100644 index 000000000..fede2c677 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Response.Builder.html @@ -0,0 +1,209 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Response.Builder |
+Response.Builder.body(ResponseBody body) |
+
Response.Builder |
+Response.Builder.cacheResponse(Response cacheResponse) |
+
Response.Builder |
+Response.Builder.code(int code) |
+
Response.Builder |
+Response.Builder.handshake(Handshake handshake) |
+
Response.Builder |
+Response.Builder.header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Response.Builder |
+Response.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Response.Builder |
+Response.Builder.message(String message) |
+
Response.Builder |
+Response.Builder.networkResponse(Response networkResponse) |
+
Response.Builder |
+Response.newBuilder() |
+
Response.Builder |
+Response.Builder.priorResponse(Response priorResponse) |
+
Response.Builder |
+Response.Builder.protocol(Protocol protocol) |
+
Response.Builder |
+Response.Builder.removeHeader(String name) |
+
Response.Builder |
+Response.Builder.request(Request request) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Response.html b/2.x/okhttp/com/squareup/okhttp/class-use/Response.html new file mode 100644 index 000000000..f825296cb --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Response.html @@ -0,0 +1,228 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response |
+Response.Builder.build() |
+
Response |
+Response.cacheResponse()
+Returns the raw response received from the cache.
+ |
+
Response |
+Call.execute()
+Invokes the request immediately, and blocks until the response can be
+ processed or is in error.
+ |
+
Response |
+Interceptor.intercept(Interceptor.Chain chain) |
+
Response |
+Response.networkResponse()
+Returns the raw response received from the network.
+ |
+
Response |
+Response.priorResponse()
+Returns the response for the HTTP redirect or authorization challenge that
+ triggered this response, or null if this response wasn't triggered by an
+ automatic retry.
+ |
+
Response |
+Interceptor.Chain.proceed(Request request) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request |
+Authenticator.authenticate(Proxy proxy,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication
+ challenge in
+response. |
+
Request |
+Authenticator.authenticateProxy(Proxy proxy,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication
+ challenge made by
+response. |
+
Response.Builder |
+Response.Builder.cacheResponse(Response cacheResponse) |
+
Response.Builder |
+Response.Builder.networkResponse(Response networkResponse) |
+
void |
+Callback.onResponse(Response response)
+Called when the HTTP response was successfully returned by the remote
+ server.
+ |
+
Response.Builder |
+Response.Builder.priorResponse(Response priorResponse) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/ResponseBody.html b/2.x/okhttp/com/squareup/okhttp/class-use/ResponseBody.html new file mode 100644 index 000000000..3723b6b06 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/ResponseBody.html @@ -0,0 +1,184 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ResponseBody |
+Response.body() |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ byte[] content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ long contentLength,
+ okio.BufferedSource content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ String content)
+Returns a new response body that transmits
+content. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.body(ResponseBody body) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/Route.html b/2.x/okhttp/com/squareup/okhttp/class-use/Route.html new file mode 100644 index 000000000..226f6b878 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/Route.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Route |
+Connection.getRoute()
+Returns the route used by this connection.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/class-use/TlsVersion.html b/2.x/okhttp/com/squareup/okhttp/class-use/TlsVersion.html new file mode 100644 index 000000000..d8e976a25 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/class-use/TlsVersion.html @@ -0,0 +1,190 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static TlsVersion |
+TlsVersion.forJavaName(String javaName) |
+
static TlsVersion |
+TlsVersion.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static TlsVersion[] |
+TlsVersion.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<TlsVersion> |
+ConnectionSpec.tlsVersions()
+Returns the TLS versions to use when negotiating a connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+ConnectionSpec.Builder.tlsVersions(TlsVersion... tlsVersions) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/package-frame.html b/2.x/okhttp/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..48723b5b7 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/package-frame.html @@ -0,0 +1,64 @@ + + + + + + +| Interface | +Description | +
|---|---|
| Authenticator | +
+ Responds to authentication challenges from the remote web or proxy server.
+ |
+
| Callback | ++ |
| Connection | +
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
+ |
+
| Dns | +
+ A domain name service that resolves IP addresses for host names.
+ |
+
| Interceptor | +
+ Observes, modifies, and potentially short-circuits requests going out and the corresponding
+ requests coming back in.
+ |
+
| Interceptor.Chain | ++ |
| Class | +Description | +
|---|---|
| Address | +
+ A specification for a connection to an origin server.
+ |
+
| Cache | +
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
+ bandwidth.
+ |
+
| CacheControl | +
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| CacheControl.Builder | +
+ Builds a
+Cache-Control request header. |
+
| Call | +
+ A call is a request that has been prepared for execution.
+ |
+
| CertificatePinner | +
+ Constrains which certificates are trusted.
+ |
+
| CertificatePinner.Builder | +
+ Builds a configured certificate pinner.
+ |
+
| Challenge | +
+ An RFC 2617 challenge.
+ |
+
| ConnectionPool | +
+ Manages reuse of HTTP and SPDY connections for reduced network latency.
+ |
+
| ConnectionSpec | +
+ Specifies configuration for the socket connection that HTTP traffic travels through.
+ |
+
| ConnectionSpec.Builder | ++ |
| Credentials | +
+ Factory for HTTP authorization credentials.
+ |
+
| Dispatcher | +
+ Policy on when async requests are executed.
+ |
+
| FormEncodingBuilder | +
+ Fluent API to build HTML
+ 2.0-compliant form data.
+ |
+
| Handshake | +
+ A record of a TLS handshake.
+ |
+
| Headers | +
+ The header fields of a single HTTP message.
+ |
+
| Headers.Builder | ++ |
| HttpUrl | +
+ A uniform resource locator (URL) with a scheme of either
+http or https. |
+
| HttpUrl.Builder | ++ |
| MediaType | +
+ An RFC 2045 Media Type,
+ appropriate to describe the content type of an HTTP request or response body.
+ |
+
| MultipartBuilder | +
+ Fluent API to build RFC
+ 2387-compliant request bodies.
+ |
+
| OkHttpClient | +
+ Configures and creates HTTP connections.
+ |
+
| Request | +
+ An HTTP request.
+ |
+
| Request.Builder | ++ |
| RequestBody | ++ |
| Response | +
+ An HTTP response.
+ |
+
| Response.Builder | ++ |
| ResponseBody | ++ |
| Route | +
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| Enum | +Description | +
|---|---|
| CipherSuite | ++ + | +
| Protocol | +
+ Protocols that OkHttp implements for ALPN
+ selection.
+ |
+
| TlsVersion | +
+ Versions of TLS that can be offered when negotiating a secure socket.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/package-tree.html b/2.x/okhttp/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..af32c369a --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/package-tree.html @@ -0,0 +1,184 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/com/squareup/okhttp/package-use.html b/2.x/okhttp/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..745292d14 --- /dev/null +++ b/2.x/okhttp/com/squareup/okhttp/package-use.html @@ -0,0 +1,314 @@ + + + + + + +| Class and Description | +
|---|
| Address
+ A specification for a connection to an origin server.
+ |
+
| Authenticator
+ Responds to authentication challenges from the remote web or proxy server.
+ |
+
| Cache
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
+ bandwidth.
+ |
+
| CacheControl
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| CacheControl.Builder
+ Builds a
+Cache-Control request header. |
+
| Call
+ A call is a request that has been prepared for execution.
+ |
+
| Callback | +
| CertificatePinner
+ Constrains which certificates are trusted.
+ |
+
| CertificatePinner.Builder
+ Builds a configured certificate pinner.
+ |
+
| Challenge
+ An RFC 2617 challenge.
+ |
+
| CipherSuite + + | +
| Connection
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
+ |
+
| ConnectionPool
+ Manages reuse of HTTP and SPDY connections for reduced network latency.
+ |
+
| ConnectionSpec
+ Specifies configuration for the socket connection that HTTP traffic travels through.
+ |
+
| ConnectionSpec.Builder | +
| Dispatcher
+ Policy on when async requests are executed.
+ |
+
| Dns
+ A domain name service that resolves IP addresses for host names.
+ |
+
| FormEncodingBuilder
+ Fluent API to build HTML
+ 2.0-compliant form data.
+ |
+
| Handshake
+ A record of a TLS handshake.
+ |
+
| Headers
+ The header fields of a single HTTP message.
+ |
+
| Headers.Builder | +
| HttpUrl
+ A uniform resource locator (URL) with a scheme of either
+http or https. |
+
| HttpUrl.Builder | +
| Interceptor
+ Observes, modifies, and potentially short-circuits requests going out and the corresponding
+ requests coming back in.
+ |
+
| Interceptor.Chain | +
| MediaType
+ An RFC 2045 Media Type,
+ appropriate to describe the content type of an HTTP request or response body.
+ |
+
| MultipartBuilder
+ Fluent API to build RFC
+ 2387-compliant request bodies.
+ |
+
| OkHttpClient
+ Configures and creates HTTP connections.
+ |
+
| Protocol
+ Protocols that OkHttp implements for ALPN
+ selection.
+ |
+
| Request
+ An HTTP request.
+ |
+
| Request.Builder | +
| RequestBody | +
| Response
+ An HTTP response.
+ |
+
| Response.Builder | +
| ResponseBody | +
| Route
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| TlsVersion
+ Versions of TLS that can be offered when negotiating a secure socket.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/constant-values.html b/2.x/okhttp/constant-values.html new file mode 100644 index 000000000..ca954476d --- /dev/null +++ b/2.x/okhttp/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/deprecated-list.html b/2.x/okhttp/deprecated-list.html new file mode 100644 index 000000000..47c84988c --- /dev/null +++ b/2.x/okhttp/deprecated-list.html @@ -0,0 +1,163 @@ + + + + + + +| Method and Description | +
|---|
| com.squareup.okhttp.CertificatePinner.check(String, Certificate...)
+ replaced with
+CertificatePinner.check(String, List). |
+
| com.squareup.okhttp.ConnectionPool.getSpdyConnectionCount() + + | +
| com.squareup.okhttp.Address.getUriHost()
+ prefer
+address.url().host(). |
+
| com.squareup.okhttp.Address.getUriPort()
+ prefer
+address.url().port(). |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/help-doc.html b/2.x/okhttp/help-doc.html new file mode 100644 index 000000000..2e0e2edc2 --- /dev/null +++ b/2.x/okhttp/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/index-all.html b/2.x/okhttp/index-all.html new file mode 100644 index 000000000..0b13b879a --- /dev/null +++ b/2.x/okhttp/index-all.html @@ -0,0 +1,1637 @@ + + + + + + +hostname.name and value.name and value.response.response.Cache-Control header, replacing any cache
+ control headers already present.Cache-Control request header.tag.tag.defaultValue if this
+ media type doesn't specify a charset.hostname
+ is in peerCertificates.CertificatePinner.check(String, List).http: URLs.out in a call
+ to RequestBody.writeTo(okio.BufferedSink), or -1 if that count is unknown.ResponseBody.bytes(), or
+ ResponseBody.byteStream(), or -1 if unknown.content.content.content.content.file.content.content.content.scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise.build().get(name), but potentially faster.HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol.protocol.Protocol.HTTP_1_1 if no protocol
+ has been negotiated.Proxy of this route.Basic.address.url().host().address.url().port().name to value.name to value.headers.headers.InetAddress.getAllByName(String).http or https.true if the socket, as currently configured, supports this connection spec.hostname, in the order they will be attempted by OkHttp.maxStale.boundary to separate
+ parts.position or null if that is out of range.request to be executed at some point in the future.Map.headers.HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't.string, or null if string is not a
+ well-formed media type.certificate's public key.Protocol.HTTP_1_1 or Protocol.HTTP_1_0.name decoded using UTF-8, or null if there is
+ no such query parameter.link from this URL.proxy
+ is specified explicitly.InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses.tag to the request.java.net.URI.java.net.URL.index or null if that is out of range.name.out.Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/index.html b/2.x/okhttp/index.html new file mode 100644 index 000000000..68fcd75ca --- /dev/null +++ b/2.x/okhttp/index.html @@ -0,0 +1,73 @@ + + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/2.x/okhttp/package-list b/2.x/okhttp/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/2.x/okhttp/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/2.x/okhttp/resources/background.gif b/2.x/okhttp/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/2.x/okhttp/resources/background.gif differ diff --git a/2.x/okhttp/resources/tab.gif b/2.x/okhttp/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/2.x/okhttp/resources/tab.gif differ diff --git a/2.x/okhttp/resources/titlebar.gif b/2.x/okhttp/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/2.x/okhttp/resources/titlebar.gif differ diff --git a/2.x/okhttp/resources/titlebar_end.gif b/2.x/okhttp/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/2.x/okhttp/resources/titlebar_end.gif differ diff --git a/2.x/okhttp/script.js b/2.x/okhttp/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/2.x/okhttp/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/2.x/okhttp/stylesheet.css b/2.x/okhttp/stylesheet.css new file mode 100644 index 000000000..66c91f7d6 --- /dev/null +++ b/2.x/okhttp/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/2.x/okhttp/version.txt b/2.x/okhttp/version.txt new file mode 100644 index 000000000..460b6fd40 --- /dev/null +++ b/2.x/okhttp/version.txt @@ -0,0 +1 @@ +2.7.5 \ No newline at end of file diff --git a/3.x/benchmarks/META-INF/MANIFEST.MF b/3.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 000000000..83570c464 --- /dev/null +++ b/3.x/benchmarks/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_202 + diff --git a/3.x/benchmarks/allclasses-frame.html b/3.x/benchmarks/allclasses-frame.html new file mode 100644 index 000000000..0c12e6f8e --- /dev/null +++ b/3.x/benchmarks/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/deprecated-list.html b/3.x/benchmarks/deprecated-list.html new file mode 100644 index 000000000..1bd693ca5 --- /dev/null +++ b/3.x/benchmarks/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/help-doc.html b/3.x/benchmarks/help-doc.html new file mode 100644 index 000000000..4b4f4d1bb --- /dev/null +++ b/3.x/benchmarks/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/index-all.html b/3.x/benchmarks/index-all.html new file mode 100644 index 000000000..4c4bc0282 --- /dev/null +++ b/3.x/benchmarks/index-all.html @@ -0,0 +1,165 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/index.html b/3.x/benchmarks/index.html new file mode 100644 index 000000000..c25c3db3f --- /dev/null +++ b/3.x/benchmarks/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public class Benchmark
+extends com.google.caliper.Benchmark
+| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(java.lang.String[] args) |
+
double |
+run() |
+
java.lang.String |
+toString() |
+
setUp, tearDownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static void main(java.lang.String[] args)+
public double run() + throws java.lang.Exception+
java.lang.Exceptionpublic java.lang.String toString()+
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/okhttp3/benchmarks/class-use/Benchmark.html b/3.x/benchmarks/okhttp3/benchmarks/class-use/Benchmark.html new file mode 100644 index 000000000..e0934151d --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/class-use/Benchmark.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/okhttp3/benchmarks/package-frame.html b/3.x/benchmarks/okhttp3/benchmarks/package-frame.html new file mode 100644 index 000000000..b42f6fc19 --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Benchmark | +
+ This benchmark is fake, but may be useful for certain relative comparisons.
+ |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/okhttp3/benchmarks/package-tree.html b/3.x/benchmarks/okhttp3/benchmarks/package-tree.html new file mode 100644 index 000000000..e6036307a --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/okhttp3/benchmarks/package-use.html b/3.x/benchmarks/okhttp3/benchmarks/package-use.html new file mode 100644 index 000000000..1716c1f32 --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/overview-tree.html b/3.x/benchmarks/overview-tree.html new file mode 100644 index 000000000..ab60a8d3b --- /dev/null +++ b/3.x/benchmarks/overview-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/package-list b/3.x/benchmarks/package-list new file mode 100644 index 000000000..03b31f50f --- /dev/null +++ b/3.x/benchmarks/package-list @@ -0,0 +1 @@ +okhttp3.benchmarks diff --git a/3.x/benchmarks/script.js b/3.x/benchmarks/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/benchmarks/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/benchmarks/stylesheet.css b/3.x/benchmarks/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/benchmarks/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/benchmarks/version.txt b/3.x/benchmarks/version.txt new file mode 100644 index 000000000..4c8b864a1 --- /dev/null +++ b/3.x/benchmarks/version.txt @@ -0,0 +1 @@ +3.12.3 \ No newline at end of file diff --git a/3.x/index.html b/3.x/index.html new file mode 100644 index 000000000..22cd9b284 --- /dev/null +++ b/3.x/index.html @@ -0,0 +1,12 @@ + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/deprecated-list.html b/3.x/logging-interceptor/deprecated-list.html new file mode 100644 index 000000000..6b3949f2b --- /dev/null +++ b/3.x/logging-interceptor/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/help-doc.html b/3.x/logging-interceptor/help-doc.html new file mode 100644 index 000000000..cca8e437a --- /dev/null +++ b/3.x/logging-interceptor/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/index-all.html b/3.x/logging-interceptor/index-all.html new file mode 100644 index 000000000..1c6243266 --- /dev/null +++ b/3.x/logging-interceptor/index-all.html @@ -0,0 +1,284 @@ + + + + + + +HttpLoggingInterceptor.Logger defaults output appropriate for the current platform.Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/index.html b/3.x/logging-interceptor/index.html new file mode 100644 index 000000000..40ee1926f --- /dev/null +++ b/3.x/logging-interceptor/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public static enum HttpLoggingInterceptor.Level +extends java.lang.Enum<HttpLoggingInterceptor.Level>+
| Enum Constant and Description | +
|---|
BASIC
+Logs request and response lines.
+ |
+
BODY
+Logs request and response lines and their respective headers and bodies (if present).
+ |
+
HEADERS
+Logs request and response lines and their respective headers.
+ |
+
NONE
+No logs.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static HttpLoggingInterceptor.Level |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static HttpLoggingInterceptor.Level[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, notify, notifyAll, wait, wait, waitpublic static final HttpLoggingInterceptor.Level NONE+
public static final HttpLoggingInterceptor.Level BASIC+
Example: +
+ --> POST /greeting http/1.1 (3-byte body)
+
+ <-- 200 OK (22ms, 6-byte body)
+ public static final HttpLoggingInterceptor.Level HEADERS+
Example: +
+ --> POST /greeting http/1.1
+ Host: example.com
+ Content-Type: plain/text
+ Content-Length: 3
+ --> END POST
+
+ <-- 200 OK (22ms)
+ Content-Type: plain/text
+ Content-Length: 6
+ <-- END HTTP
+ public static final HttpLoggingInterceptor.Level BODY+
Example: +
+ --> POST /greeting http/1.1
+ Host: example.com
+ Content-Type: plain/text
+ Content-Length: 3
+
+ Hi?
+ --> END POST
+
+ <-- 200 OK (22ms)
+ Content-Type: plain/text
+ Content-Length: 6
+
+ Hello!
+ <-- END HTTP
+ public static HttpLoggingInterceptor.Level[] values()+
+for (HttpLoggingInterceptor.Level c : HttpLoggingInterceptor.Level.values()) + System.out.println(c); +
public static HttpLoggingInterceptor.Level valueOf(java.lang.String name)+
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.Logger.html b/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.Logger.html new file mode 100644 index 000000000..cb4a8ec7e --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.Logger.html @@ -0,0 +1,264 @@ + + + + + + +public static interface HttpLoggingInterceptor.Logger
+| Modifier and Type | +Field and Description | +
|---|---|
static HttpLoggingInterceptor.Logger |
+DEFAULT
+A
+HttpLoggingInterceptor.Logger defaults output appropriate for the current platform. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+log(java.lang.String message) |
+
static final HttpLoggingInterceptor.Logger DEFAULT+
HttpLoggingInterceptor.Logger defaults output appropriate for the current platform.Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.html b/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.html new file mode 100644 index 000000000..3a4149dcc --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.html @@ -0,0 +1,371 @@ + + + + + + +public final class HttpLoggingInterceptor +extends java.lang.Object +implements Interceptor+
The format of the logs created by + this class should not be considered stable and may change slightly between releases. If you need + a stable logging format, use your own interceptor.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HttpLoggingInterceptor.Level |
+
static interface |
+HttpLoggingInterceptor.Logger |
+
Interceptor.Chain| Constructor and Description | +
|---|
HttpLoggingInterceptor() |
+
HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger) |
+
| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor.Level |
+getLevel() |
+
Response |
+intercept(Interceptor.Chain chain) |
+
void |
+redactHeader(java.lang.String name) |
+
HttpLoggingInterceptor |
+setLevel(HttpLoggingInterceptor.Level level)
+Change the level at which this interceptor logs.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic HttpLoggingInterceptor()+
public HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger)+
public void redactHeader(java.lang.String name)+
public HttpLoggingInterceptor setLevel(HttpLoggingInterceptor.Level level)+
public HttpLoggingInterceptor.Level getLevel()+
public Response intercept(Interceptor.Chain chain) + throws java.io.IOException+
intercept in interface Interceptorjava.io.IOExceptionCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/LoggingEventListener.Factory.html b/3.x/logging-interceptor/okhttp3/logging/LoggingEventListener.Factory.html new file mode 100644 index 000000000..cb245c43d --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/LoggingEventListener.Factory.html @@ -0,0 +1,296 @@ + + + + + + +public static class LoggingEventListener.Factory +extends java.lang.Object +implements EventListener.Factory+
| Constructor and Description | +
|---|
Factory() |
+
Factory(HttpLoggingInterceptor.Logger logger) |
+
| Modifier and Type | +Method and Description | +
|---|---|
EventListener |
+create(Call call) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Factory()+
public Factory(HttpLoggingInterceptor.Logger logger)+
public EventListener create(Call call)+
create in interface EventListener.FactoryCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/LoggingEventListener.html b/3.x/logging-interceptor/okhttp3/logging/LoggingEventListener.html new file mode 100644 index 000000000..c681873df --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/LoggingEventListener.html @@ -0,0 +1,689 @@ + + + + + + +public final class LoggingEventListener +extends EventListener+
The format of the logs created by this class should not be considered stable and may change + slightly between releases. If you need a stable logging format, use your own event listener.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+LoggingEventListener.Factory |
+
NONE| Modifier and Type | +Method and Description | +
|---|---|
void |
+callEnd(Call call) |
+
void |
+callFailed(Call call,
+ java.io.IOException ioe) |
+
void |
+callStart(Call call) |
+
void |
+connectEnd(Call call,
+ java.net.InetSocketAddress inetSocketAddress,
+ java.net.Proxy proxy,
+ Protocol protocol) |
+
void |
+connectFailed(Call call,
+ java.net.InetSocketAddress inetSocketAddress,
+ java.net.Proxy proxy,
+ Protocol protocol,
+ java.io.IOException ioe) |
+
void |
+connectionAcquired(Call call,
+ Connection connection) |
+
void |
+connectionReleased(Call call,
+ Connection connection) |
+
void |
+connectStart(Call call,
+ java.net.InetSocketAddress inetSocketAddress,
+ java.net.Proxy proxy) |
+
void |
+dnsEnd(Call call,
+ java.lang.String domainName,
+ java.util.List<java.net.InetAddress> inetAddressList) |
+
void |
+dnsStart(Call call,
+ java.lang.String domainName) |
+
void |
+requestBodyEnd(Call call,
+ long byteCount) |
+
void |
+requestBodyStart(Call call) |
+
void |
+requestFailed(Call call,
+ java.io.IOException ioe) |
+
void |
+requestHeadersEnd(Call call,
+ Request request) |
+
void |
+requestHeadersStart(Call call) |
+
void |
+responseBodyEnd(Call call,
+ long byteCount) |
+
void |
+responseBodyStart(Call call) |
+
void |
+responseFailed(Call call,
+ java.io.IOException ioe) |
+
void |
+responseHeadersEnd(Call call,
+ Response response) |
+
void |
+responseHeadersStart(Call call) |
+
void |
+secureConnectEnd(Call call,
+ Handshake handshake) |
+
void |
+secureConnectStart(Call call) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void callStart(Call call)+
callStart in class EventListenerpublic void dnsStart(Call call, + java.lang.String domainName)+
dnsStart in class EventListenerpublic void dnsEnd(Call call, + java.lang.String domainName, + java.util.List<java.net.InetAddress> inetAddressList)+
dnsEnd in class EventListenerpublic void connectStart(Call call, + java.net.InetSocketAddress inetSocketAddress, + java.net.Proxy proxy)+
connectStart in class EventListenerpublic void secureConnectStart(Call call)+
secureConnectStart in class EventListenerpublic void secureConnectEnd(Call call, + @Nullable + Handshake handshake)+
secureConnectEnd in class EventListenerpublic void connectEnd(Call call, + java.net.InetSocketAddress inetSocketAddress, + java.net.Proxy proxy, + @Nullable + Protocol protocol)+
connectEnd in class EventListenerpublic void connectFailed(Call call, + java.net.InetSocketAddress inetSocketAddress, + java.net.Proxy proxy, + @Nullable + Protocol protocol, + java.io.IOException ioe)+
connectFailed in class EventListenerpublic void connectionAcquired(Call call, + Connection connection)+
connectionAcquired in class EventListenerpublic void connectionReleased(Call call, + Connection connection)+
connectionReleased in class EventListenerpublic void requestHeadersStart(Call call)+
requestHeadersStart in class EventListenerpublic void requestHeadersEnd(Call call, + Request request)+
requestHeadersEnd in class EventListenerpublic void requestBodyStart(Call call)+
requestBodyStart in class EventListenerpublic void requestBodyEnd(Call call, + long byteCount)+
requestBodyEnd in class EventListenerpublic void requestFailed(Call call, + java.io.IOException ioe)+
requestFailed in class EventListenerpublic void responseHeadersStart(Call call)+
responseHeadersStart in class EventListenerpublic void responseHeadersEnd(Call call, + Response response)+
responseHeadersEnd in class EventListenerpublic void responseBodyStart(Call call)+
responseBodyStart in class EventListenerpublic void responseBodyEnd(Call call, + long byteCount)+
responseBodyEnd in class EventListenerpublic void responseFailed(Call call, + java.io.IOException ioe)+
responseFailed in class EventListenerpublic void callEnd(Call call)+
callEnd in class EventListenerpublic void callFailed(Call call, + java.io.IOException ioe)+
callFailed in class EventListenerCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.Level.html b/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.Level.html new file mode 100644 index 000000000..c5d24ebec --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.Level.html @@ -0,0 +1,177 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor.Level |
+HttpLoggingInterceptor.getLevel() |
+
static HttpLoggingInterceptor.Level |
+HttpLoggingInterceptor.Level.valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static HttpLoggingInterceptor.Level[] |
+HttpLoggingInterceptor.Level.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor |
+HttpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level level)
+Change the level at which this interceptor logs.
+ |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.Logger.html b/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.Logger.html new file mode 100644 index 000000000..8bed31af2 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.Logger.html @@ -0,0 +1,165 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static HttpLoggingInterceptor.Logger |
+HttpLoggingInterceptor.Logger.DEFAULT
+A
+HttpLoggingInterceptor.Logger defaults output appropriate for the current platform. |
+
| Constructor and Description | +
|---|
Factory(HttpLoggingInterceptor.Logger logger) |
+
HttpLoggingInterceptor(HttpLoggingInterceptor.Logger logger) |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.html b/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.html new file mode 100644 index 000000000..5ba2e1b99 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/class-use/HttpLoggingInterceptor.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpLoggingInterceptor |
+HttpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level level)
+Change the level at which this interceptor logs.
+ |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/class-use/LoggingEventListener.Factory.html b/3.x/logging-interceptor/okhttp3/logging/class-use/LoggingEventListener.Factory.html new file mode 100644 index 000000000..0fef3a584 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/class-use/LoggingEventListener.Factory.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/class-use/LoggingEventListener.html b/3.x/logging-interceptor/okhttp3/logging/class-use/LoggingEventListener.html new file mode 100644 index 000000000..ce672b3a5 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/class-use/LoggingEventListener.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/package-frame.html b/3.x/logging-interceptor/okhttp3/logging/package-frame.html new file mode 100644 index 000000000..3e3a93019 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/package-frame.html @@ -0,0 +1,31 @@ + + + + + + +See: Description
+| Interface | +Description | +
|---|---|
| HttpLoggingInterceptor.Logger | ++ |
| Class | +Description | +
|---|---|
| HttpLoggingInterceptor | +
+ An OkHttp interceptor which logs request and response information.
+ |
+
| LoggingEventListener | +
+ An OkHttp EventListener, which logs call events.
+ |
+
| LoggingEventListener.Factory | ++ |
| Enum | +Description | +
|---|---|
| HttpLoggingInterceptor.Level | ++ |
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/package-tree.html b/3.x/logging-interceptor/okhttp3/logging/package-tree.html new file mode 100644 index 000000000..325b80775 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/package-tree.html @@ -0,0 +1,155 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/okhttp3/logging/package-use.html b/3.x/logging-interceptor/okhttp3/logging/package-use.html new file mode 100644 index 000000000..dddd92b17 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/package-use.html @@ -0,0 +1,150 @@ + + + + + + +| Class and Description | +
|---|
| HttpLoggingInterceptor
+ An OkHttp interceptor which logs request and response information.
+ |
+
| HttpLoggingInterceptor.Level | +
| HttpLoggingInterceptor.Logger | +
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/overview-tree.html b/3.x/logging-interceptor/overview-tree.html new file mode 100644 index 000000000..66024e045 --- /dev/null +++ b/3.x/logging-interceptor/overview-tree.html @@ -0,0 +1,159 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/logging-interceptor/package-list b/3.x/logging-interceptor/package-list new file mode 100644 index 000000000..057bdc482 --- /dev/null +++ b/3.x/logging-interceptor/package-list @@ -0,0 +1 @@ +okhttp3.logging diff --git a/3.x/logging-interceptor/script.js b/3.x/logging-interceptor/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/logging-interceptor/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/logging-interceptor/stylesheet.css b/3.x/logging-interceptor/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/logging-interceptor/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/logging-interceptor/version.txt b/3.x/logging-interceptor/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/logging-interceptor/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/mockwebserver/META-INF/MANIFEST.MF b/3.x/mockwebserver/META-INF/MANIFEST.MF new file mode 100644 index 000000000..b5547a843 --- /dev/null +++ b/3.x/mockwebserver/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_202 + diff --git a/3.x/mockwebserver/allclasses-frame.html b/3.x/mockwebserver/allclasses-frame.html new file mode 100644 index 000000000..0232da237 --- /dev/null +++ b/3.x/mockwebserver/allclasses-frame.html @@ -0,0 +1,29 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/deprecated-list.html b/3.x/mockwebserver/deprecated-list.html new file mode 100644 index 000000000..3fe40f7dd --- /dev/null +++ b/3.x/mockwebserver/deprecated-list.html @@ -0,0 +1,150 @@ + + + + + + +| Method and Description | +
|---|
| okhttp3.mockwebserver.RecordedRequest.getUtf8Body()
+ Use
+getBody().readUtf8(). |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/help-doc.html b/3.x/mockwebserver/help-doc.html new file mode 100644 index 000000000..a159b8b7b --- /dev/null +++ b/3.x/mockwebserver/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/index-all.html b/3.x/mockwebserver/index-all.html new file mode 100644 index 000000000..748324128 --- /dev/null +++ b/3.x/mockwebserver/index-all.html @@ -0,0 +1,626 @@ + + + + + + +header as an HTTP header.request.response to be returned to a request made in sequence.name, or null if no such header exists.getBody().readUtf8().name.body.delay.body, chunked every maxChunkSize bytes.body, chunked every maxChunkSize bytes.name, then adds a new header with the name and value.start(0).bytesPerPeriod bytes are transferred.protocols include Protocol.HTTP_2, this attaches a pushed stream to this response.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/index.html b/3.x/mockwebserver/index.html new file mode 100644 index 000000000..581095af5 --- /dev/null +++ b/3.x/mockwebserver/index.html @@ -0,0 +1,76 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public static final class HeldCertificate.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+build() |
+
HeldCertificate.Builder |
+ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+commonName(String hostname)
+Set this certificate's name.
+ |
+
KeyPair |
+generateKeyPair() |
+
HeldCertificate.Builder |
+issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+serialNumber(String serialNumber) |
+
public HeldCertificate.Builder serialNumber(String serialNumber)+
public HeldCertificate.Builder commonName(String hostname)+
public HeldCertificate.Builder keyPair(KeyPair keyPair)+
public HeldCertificate.Builder issuedBy(HeldCertificate signedBy)+
public HeldCertificate.Builder ca(int maxIntermediateCas)+
maxIntermediateCas
+ intermediate certificate authorities beneath it.public HeldCertificate build() + throws GeneralSecurityException+
GeneralSecurityExceptionpublic KeyPair generateKeyPair() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/HeldCertificate.html b/3.x/mockwebserver/okhttp3/internal/HeldCertificate.html new file mode 100644 index 000000000..73a27b2c2 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/HeldCertificate.html @@ -0,0 +1,312 @@ + + + + + + +public final class HeldCertificate +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HeldCertificate.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
X509Certificate |
+certificate |
+
KeyPair |
+keyPair |
+
| Constructor and Description | +
|---|
HeldCertificate(X509Certificate certificate,
+ KeyPair keyPair) |
+
public final X509Certificate certificate+
public final KeyPair keyPair+
public HeldCertificate(X509Certificate certificate, + KeyPair keyPair)+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/SslContextBuilder.html b/3.x/mockwebserver/okhttp3/internal/SslContextBuilder.html new file mode 100644 index 000000000..a1316fe6b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/SslContextBuilder.html @@ -0,0 +1,334 @@ + + + + + + +public final class SslContextBuilder +extends Object+
The crypto performed by this class is relatively slow. Clients should reuse SSL context + instances where possible.
| Constructor and Description | +
|---|
SslContextBuilder() |
+
| Modifier and Type | +Method and Description | +
|---|---|
SslContextBuilder |
+addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SSLContext |
+build() |
+
SslContextBuilder |
+certificateChain(HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
static SSLContext |
+localhost()
+Returns a new SSL context for this host's current localhost address.
+ |
+
public static SSLContext localhost()+
public SslContextBuilder certificateChain(HeldCertificate... chain)+
public SslContextBuilder addTrustedCertificate(X509Certificate certificate)+
public SSLContext build() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/class-use/HeldCertificate.Builder.html b/3.x/mockwebserver/okhttp3/internal/class-use/HeldCertificate.Builder.html new file mode 100644 index 000000000..5ffc25637 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/class-use/HeldCertificate.Builder.html @@ -0,0 +1,189 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate.Builder |
+HeldCertificate.Builder.ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.commonName(String hostname)
+Set this certificate's name.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.serialNumber(String serialNumber) |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/class-use/HeldCertificate.html b/3.x/mockwebserver/okhttp3/internal/class-use/HeldCertificate.html new file mode 100644 index 000000000..cee3cf35d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/class-use/HeldCertificate.html @@ -0,0 +1,187 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+HeldCertificate.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
SslContextBuilder |
+SslContextBuilder.certificateChain(HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/class-use/SslContextBuilder.html b/3.x/mockwebserver/okhttp3/internal/class-use/SslContextBuilder.html new file mode 100644 index 000000000..3a704a96b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/class-use/SslContextBuilder.html @@ -0,0 +1,174 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SslContextBuilder |
+SslContextBuilder.addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SslContextBuilder |
+SslContextBuilder.certificateChain(HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/duplex/MwsDuplexAccess.html b/3.x/mockwebserver/okhttp3/internal/duplex/MwsDuplexAccess.html new file mode 100644 index 000000000..d4240bd9a --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/duplex/MwsDuplexAccess.html @@ -0,0 +1,313 @@ + + + + + + +public abstract class MwsDuplexAccess +extends Object+
| Modifier and Type | +Field and Description | +
|---|---|
static MwsDuplexAccess |
+instance |
+
| Constructor and Description | +
|---|
MwsDuplexAccess() |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract void |
+setBody(MockResponse mockResponse,
+ DuplexResponseBody duplexResponseBody) |
+
public static MwsDuplexAccess instance+
public abstract void setBody(MockResponse mockResponse, + DuplexResponseBody duplexResponseBody)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/duplex/class-use/MwsDuplexAccess.html b/3.x/mockwebserver/okhttp3/internal/duplex/class-use/MwsDuplexAccess.html new file mode 100644 index 000000000..4555b47e3 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/duplex/class-use/MwsDuplexAccess.html @@ -0,0 +1,166 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| Modifier and Type | +Field and Description | +
|---|---|
static MwsDuplexAccess |
+MwsDuplexAccess.instance |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/duplex/package-frame.html b/3.x/mockwebserver/okhttp3/internal/duplex/package-frame.html new file mode 100644 index 000000000..da2732709 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/duplex/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| MwsDuplexAccess | +
+ Internal access to MockWebServer APIs.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/duplex/package-tree.html b/3.x/mockwebserver/okhttp3/internal/duplex/package-tree.html new file mode 100644 index 000000000..bf40256e2 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/duplex/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/duplex/package-use.html b/3.x/mockwebserver/okhttp3/internal/duplex/package-use.html new file mode 100644 index 000000000..09921f2b7 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/duplex/package-use.html @@ -0,0 +1,161 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| Class and Description | +
|---|
| MwsDuplexAccess
+ Internal access to MockWebServer APIs.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/framed/FramedServer.html b/3.x/mockwebserver/okhttp3/internal/framed/FramedServer.html new file mode 100644 index 000000000..058ed5974 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/framed/FramedServer.html @@ -0,0 +1,328 @@ + + + + + + +public final class FramedServer +extends okhttp3.internal.framed.FramedConnection.Listener+
REFUSE_INCOMING_STREAMS| Constructor and Description | +
|---|
FramedServer(File baseDirectory,
+ SSLSocketFactory sslSocketFactory) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+onStream(okhttp3.internal.framed.FramedStream stream) |
+
onSettingspublic FramedServer(File baseDirectory, + SSLSocketFactory sslSocketFactory)+
public void onStream(okhttp3.internal.framed.FramedStream stream) + throws IOException+
onStream in class okhttp3.internal.framed.FramedConnection.ListenerIOExceptionCopyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/framed/class-use/FramedServer.html b/3.x/mockwebserver/okhttp3/internal/framed/class-use/FramedServer.html new file mode 100644 index 000000000..7e3ea34bd --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/framed/class-use/FramedServer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/framed/package-frame.html b/3.x/mockwebserver/okhttp3/internal/framed/package-frame.html new file mode 100644 index 000000000..20c2f3a17 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/framed/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| FramedServer | +
+ A basic SPDY/HTTP_2 server that serves the contents of a local directory.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/framed/package-tree.html b/3.x/mockwebserver/okhttp3/internal/framed/package-tree.html new file mode 100644 index 000000000..94f09f5eb --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/framed/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/framed/package-use.html b/3.x/mockwebserver/okhttp3/internal/framed/package-use.html new file mode 100644 index 000000000..a339f406a --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/framed/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/http2/Http2Server.html b/3.x/mockwebserver/okhttp3/internal/http2/Http2Server.html new file mode 100644 index 000000000..f280393fe --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/http2/Http2Server.html @@ -0,0 +1,328 @@ + + + + + + +public final class Http2Server +extends okhttp3.internal.http2.Http2Connection.Listener+
REFUSE_INCOMING_STREAMS| Constructor and Description | +
|---|
Http2Server(File baseDirectory,
+ SSLSocketFactory sslSocketFactory) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+onStream(okhttp3.internal.http2.Http2Stream stream) |
+
onSettingspublic Http2Server(File baseDirectory, + SSLSocketFactory sslSocketFactory)+
public void onStream(okhttp3.internal.http2.Http2Stream stream) + throws IOException+
onStream in class okhttp3.internal.http2.Http2Connection.ListenerIOExceptionCopyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/http2/class-use/Http2Server.html b/3.x/mockwebserver/okhttp3/internal/http2/class-use/Http2Server.html new file mode 100644 index 000000000..ba8939cb8 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/http2/class-use/Http2Server.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/http2/package-frame.html b/3.x/mockwebserver/okhttp3/internal/http2/package-frame.html new file mode 100644 index 000000000..19bebed29 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/http2/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Http2Server | +
+ A basic HTTP/2 server that serves the contents of a local directory.
+ |
+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/http2/package-tree.html b/3.x/mockwebserver/okhttp3/internal/http2/package-tree.html new file mode 100644 index 000000000..222be22a4 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/http2/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/http2/package-use.html b/3.x/mockwebserver/okhttp3/internal/http2/package-use.html new file mode 100644 index 000000000..069cd53d2 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/http2/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/package-frame.html b/3.x/mockwebserver/okhttp3/internal/package-frame.html new file mode 100644 index 000000000..c7865969e --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +| Class | +Description | +
|---|---|
| HeldCertificate | +
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | ++ |
| SslContextBuilder | +
+ Constructs an SSL context for testing.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/package-tree.html b/3.x/mockwebserver/okhttp3/internal/package-tree.html new file mode 100644 index 000000000..757755053 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/package-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/package-use.html b/3.x/mockwebserver/okhttp3/internal/package-use.html new file mode 100644 index 000000000..a60910dcf --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/package-use.html @@ -0,0 +1,169 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal | ++ |
| Class and Description | +
|---|
| HeldCertificate
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | +
| SslContextBuilder
+ Constructs an SSL context for testing.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/HeldCertificate.Builder.html b/3.x/mockwebserver/okhttp3/internal/tls/HeldCertificate.Builder.html new file mode 100644 index 000000000..2e084096b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/HeldCertificate.Builder.html @@ -0,0 +1,395 @@ + + + + + + +public static final class HeldCertificate.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+build() |
+
HeldCertificate.Builder |
+ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+commonName(String hostname)
+Set this certificate's name.
+ |
+
KeyPair |
+generateKeyPair() |
+
HeldCertificate.Builder |
+issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+serialNumber(String serialNumber) |
+
HeldCertificate.Builder |
+subjectAlternativeName(String altName)
+Adds a subject alternative name to the certificate.
+ |
+
public HeldCertificate.Builder serialNumber(String serialNumber)+
public HeldCertificate.Builder commonName(String hostname)+
public HeldCertificate.Builder keyPair(KeyPair keyPair)+
public HeldCertificate.Builder issuedBy(HeldCertificate signedBy)+
public HeldCertificate.Builder ca(int maxIntermediateCas)+
maxIntermediateCas
+ intermediate certificate authorities beneath it.public HeldCertificate.Builder subjectAlternativeName(String altName)+
public HeldCertificate build() + throws GeneralSecurityException+
GeneralSecurityExceptionpublic KeyPair generateKeyPair() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/HeldCertificate.html b/3.x/mockwebserver/okhttp3/internal/tls/HeldCertificate.html new file mode 100644 index 000000000..58a01765e --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/HeldCertificate.html @@ -0,0 +1,312 @@ + + + + + + +public final class HeldCertificate +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HeldCertificate.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
X509Certificate |
+certificate |
+
KeyPair |
+keyPair |
+
| Constructor and Description | +
|---|
HeldCertificate(X509Certificate certificate,
+ KeyPair keyPair) |
+
public final X509Certificate certificate+
public final KeyPair keyPair+
public HeldCertificate(X509Certificate certificate, + KeyPair keyPair)+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/SslClient.Builder.html b/3.x/mockwebserver/okhttp3/internal/tls/SslClient.Builder.html new file mode 100644 index 000000000..6b244f784 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/SslClient.Builder.html @@ -0,0 +1,344 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
SslClient.Builder |
+addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SslClient |
+build() |
+
SslClient.Builder |
+certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
SslClient.Builder |
+certificateChain(KeyPair keyPair,
+ X509Certificate keyCert,
+ X509Certificate... certificates) |
+
SslClient.Builder |
+keyStoreType(String keyStoreType) |
+
public SslClient.Builder certificateChain(HeldCertificate localCert, + HeldCertificate... chain)+
public SslClient.Builder certificateChain(KeyPair keyPair, + X509Certificate keyCert, + X509Certificate... certificates)+
public SslClient.Builder addTrustedCertificate(X509Certificate certificate)+
public SslClient.Builder keyStoreType(String keyStoreType)+
public SslClient build()+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/SslClient.html b/3.x/mockwebserver/okhttp3/internal/tls/SslClient.html new file mode 100644 index 000000000..e96a35d77 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/SslClient.html @@ -0,0 +1,325 @@ + + + + + + +public final class SslClient +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SslClient.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
SSLSocketFactory |
+socketFactory |
+
SSLContext |
+sslContext |
+
X509TrustManager |
+trustManager |
+
| Modifier and Type | +Method and Description | +
|---|---|
static SslClient |
+localhost()
+Returns an SSL client for this host's localhost address.
+ |
+
public final SSLContext sslContext+
public final SSLSocketFactory socketFactory+
public final X509TrustManager trustManager+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/class-use/HeldCertificate.Builder.html b/3.x/mockwebserver/okhttp3/internal/tls/class-use/HeldCertificate.Builder.html new file mode 100644 index 000000000..2aab397c0 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/class-use/HeldCertificate.Builder.html @@ -0,0 +1,195 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate.Builder |
+HeldCertificate.Builder.ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.commonName(String hostname)
+Set this certificate's name.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.serialNumber(String serialNumber) |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.subjectAlternativeName(String altName)
+Adds a subject alternative name to the certificate.
+ |
+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/class-use/HeldCertificate.html b/3.x/mockwebserver/okhttp3/internal/tls/class-use/HeldCertificate.html new file mode 100644 index 000000000..fbefef364 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/class-use/HeldCertificate.html @@ -0,0 +1,195 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+HeldCertificate.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
SslClient.Builder |
+SslClient.Builder.certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
SslClient.Builder |
+SslClient.Builder.certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/class-use/SslClient.Builder.html b/3.x/mockwebserver/okhttp3/internal/tls/class-use/SslClient.Builder.html new file mode 100644 index 000000000..001f057e3 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/class-use/SslClient.Builder.html @@ -0,0 +1,185 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SslClient.Builder |
+SslClient.Builder.addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SslClient.Builder |
+SslClient.Builder.certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
SslClient.Builder |
+SslClient.Builder.certificateChain(KeyPair keyPair,
+ X509Certificate keyCert,
+ X509Certificate... certificates) |
+
SslClient.Builder |
+SslClient.Builder.keyStoreType(String keyStoreType) |
+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/class-use/SslClient.html b/3.x/mockwebserver/okhttp3/internal/tls/class-use/SslClient.html new file mode 100644 index 000000000..86bbb8e5f --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/class-use/SslClient.html @@ -0,0 +1,172 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SslClient |
+SslClient.Builder.build() |
+
static SslClient |
+SslClient.localhost()
+Returns an SSL client for this host's localhost address.
+ |
+
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/package-frame.html b/3.x/mockwebserver/okhttp3/internal/tls/package-frame.html new file mode 100644 index 000000000..7082e1065 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +| Class | +Description | +
|---|---|
| HeldCertificate | +
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | ++ |
| SslClient | +
+ Combines an SSL socket factory and trust manager, a pairing enough for OkHttp or MockWebServer to
+ create a secure connection.
+ |
+
| SslClient.Builder | ++ |
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/package-tree.html b/3.x/mockwebserver/okhttp3/internal/tls/package-tree.html new file mode 100644 index 000000000..5c68eef59 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/internal/tls/package-use.html b/3.x/mockwebserver/okhttp3/internal/tls/package-use.html new file mode 100644 index 000000000..0b1841246 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/tls/package-use.html @@ -0,0 +1,173 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.tls | ++ |
| Class and Description | +
|---|
| HeldCertificate
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | +
| SslClient
+ Combines an SSL socket factory and trust manager, a pairing enough for OkHttp or MockWebServer to
+ create a secure connection.
+ |
+
| SslClient.Builder | +
Copyright © 2017. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/Dispatcher.html b/3.x/mockwebserver/okhttp3/mockwebserver/Dispatcher.html new file mode 100644 index 000000000..b37eabe6d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/Dispatcher.html @@ -0,0 +1,325 @@ + + + + + + +public abstract class Dispatcher +extends Object+
| Constructor and Description | +
|---|
Dispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+peek()
+Returns an early guess of the next response, used for policy on how an incoming request should
+ be received.
+ |
+
void |
+shutdown()
+Release any resources held by this dispatcher.
+ |
+
public abstract MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
request. This method may block (for instance, to wait on
+ a CountdownLatch).InterruptedExceptionpublic MockResponse peek()+
public void shutdown()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/MockResponse.html b/3.x/mockwebserver/okhttp3/mockwebserver/MockResponse.html new file mode 100644 index 000000000..9f2bac803 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/MockResponse.html @@ -0,0 +1,851 @@ + + + + + + +| Constructor and Description | +
|---|
MockResponse()
+Creates a new mock response with an empty body.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+addHeaderLenient(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+clearHeaders()
+Removes all HTTP headers including any "Content-Length" and "Transfer-encoding" headers that
+ were added by default.
+ |
+
MockResponse |
+clone() |
+
okio.Buffer |
+getBody()
+Returns a copy of the raw HTTP payload.
+ |
+
long |
+getBodyDelay(TimeUnit unit) |
+
Headers |
+getHeaders()
+Returns the HTTP headers, such as "Content-Length: 0".
+ |
+
long |
+getHeadersDelay(TimeUnit unit) |
+
int |
+getHttp2ErrorCode() |
+
List<PushPromise> |
+getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
okhttp3.internal.http2.Settings |
+getSettings() |
+
SocketPolicy |
+getSocketPolicy() |
+
String |
+getStatus()
+Returns the HTTP response line, such as "HTTP/1.1 200 OK".
+ |
+
long |
+getThrottleBytesPerPeriod() |
+
long |
+getThrottlePeriod(TimeUnit unit) |
+
Headers |
+getTrailers() |
+
WebSocketListener |
+getWebSocketListener() |
+
MockResponse |
+removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+setBody(okio.Buffer body) |
+
MockResponse |
+setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+setBodyDelay(long delay,
+ TimeUnit unit)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+setChunkedBody(okio.Buffer body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize bytes. |
+
MockResponse |
+setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked every maxChunkSize bytes. |
+
MockResponse |
+setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the name and value. |
+
MockResponse |
+setHeaders(Headers headers)
+Replaces all headers with those specified.
+ |
+
MockResponse |
+setHeadersDelay(long delay,
+ TimeUnit unit) |
+
MockResponse |
+setHttp2ErrorCode(int http2ErrorCode)
+Sets the HTTP/2 error code to be
+ returned when resetting the stream.
+ |
+
MockResponse |
+setResponseCode(int code) |
+
MockResponse |
+setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+setStatus(String status) |
+
MockResponse |
+setTrailers(Headers trailers)
+Replaces all trailers with those specified.
+ |
+
MockResponse |
+throttleBody(long bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the request reader and response writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are transferred. |
+
String |
+toString() |
+
MockResponse |
+withPush(PushPromise promise)
+When
+protocols include Protocol.HTTP_2, this attaches a pushed stream to this response. |
+
MockResponse |
+withSettings(okhttp3.internal.http2.Settings settings)
+
+ |
+
MockResponse |
+withWebSocketUpgrade(WebSocketListener listener)
+Attempts to perform a web socket upgrade on the connection.
+ |
+
public MockResponse()+
public MockResponse clone()+ +
public String getStatus()+
public MockResponse setResponseCode(int code)+
public MockResponse setStatus(String status)+
public Headers getHeaders()+
public Headers getTrailers()+
public MockResponse clearHeaders()+
public MockResponse addHeader(String header)+
header as an HTTP header. For well-formed HTTP header should contain a
+ name followed by a colon and a value.public MockResponse addHeader(String name, + Object value)+
public MockResponse addHeaderLenient(String name, + Object value)+
addHeader(String, Object) this does not validate the name and
+ value.public MockResponse setHeader(String name, + Object value)+
name, then adds a new header with the name and value.public MockResponse setHeaders(Headers headers)+
public MockResponse setTrailers(Headers trailers)+
public MockResponse removeHeader(String name)+
name.public okio.Buffer getBody()+
public MockResponse setBody(okio.Buffer body)+
public MockResponse setBody(String body)+
body.public MockResponse setChunkedBody(okio.Buffer body, + int maxChunkSize)+
body, chunked every maxChunkSize bytes.public MockResponse setChunkedBody(String body, + int maxChunkSize)+
body, chunked every maxChunkSize bytes.public SocketPolicy getSocketPolicy()+
public MockResponse setSocketPolicy(SocketPolicy socketPolicy)+
public int getHttp2ErrorCode()+
public MockResponse setHttp2ErrorCode(int http2ErrorCode)+
SocketPolicy.RESET_STREAM_AT_START.public MockResponse throttleBody(long bytesPerPeriod, + long period, + TimeUnit unit)+
bytesPerPeriod bytes are transferred. Use this to simulate network behavior.public long getThrottleBytesPerPeriod()+
public long getThrottlePeriod(TimeUnit unit)+
public MockResponse setBodyDelay(long delay, + TimeUnit unit)+
delay. This applies to the response body
+ only; response headers are not affected.public long getBodyDelay(TimeUnit unit)+
public MockResponse setHeadersDelay(long delay, + TimeUnit unit)+
public long getHeadersDelay(TimeUnit unit)+
public MockResponse withPush(PushPromise promise)+
protocols include Protocol.HTTP_2, this attaches a pushed stream to this response.public List<PushPromise> getPushPromises()+
public MockResponse withSettings(okhttp3.internal.http2.Settings settings)+ +
public okhttp3.internal.http2.Settings getSettings()+
public MockResponse withWebSocketUpgrade(WebSocketListener listener)+
public WebSocketListener getWebSocketListener()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/MockWebServer.html b/3.x/mockwebserver/okhttp3/mockwebserver/MockWebServer.html new file mode 100644 index 000000000..f4b9b89ae --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/MockWebServer.html @@ -0,0 +1,791 @@ + + + + + + +public final class MockWebServer +extends org.junit.rules.ExternalResource +implements Closeable+
| Constructor and Description | +
|---|
MockWebServer() |
+
| Modifier and Type | +Method and Description | +
|---|---|
protected void |
+after() |
+
protected void |
+before() |
+
void |
+close() |
+
void |
+enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
Dispatcher |
+getDispatcher()
+Returns the dispatcher used to respond to HTTP requests.
+ |
+
String |
+getHostName() |
+
int |
+getPort() |
+
int |
+getRequestCount()
+Returns the number of HTTP requests received thus far by this server.
+ |
+
void |
+noClientAuth()
+Configure the server to not perform SSL authentication of the client.
+ |
+
List<Protocol> |
+protocols() |
+
void |
+requestClientAuth()
+Configure the server to want client auth.
+ |
+
void |
+requireClientAuth()
+Configure the server to need client auth.
+ |
+
void |
+setBodyLimit(long maxBodyLength)
+Sets the number of bytes of the POST body to keep in memory to the given limit.
+ |
+
void |
+setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
void |
+setProtocolNegotiationEnabled(boolean protocolNegotiationEnabled)
+Sets whether ALPN is used on incoming HTTPS connections to negotiate a protocol like HTTP/1.1
+ or HTTP/2.
+ |
+
void |
+setProtocols(List<Protocol> protocols)
+Indicates the protocols supported by ALPN on incoming HTTPS connections.
+ |
+
void |
+setServerSocketFactory(ServerSocketFactory serverSocketFactory) |
+
void |
+shutdown() |
+
void |
+start()
+Equivalent to
+start(0). |
+
void |
+start(InetAddress inetAddress,
+ int port)
+Starts the server on the given address and port.
+ |
+
void |
+start(int port)
+Starts the server on the loopback interface for the given port.
+ |
+
RecordedRequest |
+takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
RecordedRequest |
+takeRequest(long timeout,
+ TimeUnit unit)
+Awaits the next HTTP request (waiting up to the specified wait time if necessary), removes it,
+ and returns it.
+ |
+
Proxy |
+toProxyAddress() |
+
String |
+toString() |
+
HttpUrl |
+url(String path)
+Returns a URL for connecting to this server.
+ |
+
void |
+useHttps(SSLSocketFactory sslSocketFactory,
+ boolean tunnelProxy)
+Serve requests with HTTPS rather than otherwise.
+ |
+
applyprotected void before()+
before in class org.junit.rules.ExternalResourcepublic int getPort()+
public String getHostName()+
public Proxy toProxyAddress()+
public void setServerSocketFactory(ServerSocketFactory serverSocketFactory)+
public HttpUrl url(String path)+
path - the request path, such as "/".public void setBodyLimit(long maxBodyLength)+
public void setProtocolNegotiationEnabled(boolean protocolNegotiationEnabled)+
public void setProtocols(List<Protocol> protocols)+
negotiation is disabled.protocols - the protocols to use, in order of preference. The list must contain
+ Protocol.HTTP_1_1. It must not contain null.public void useHttps(SSLSocketFactory sslSocketFactory, + boolean tunnelProxy)+
tunnelProxy - true to expect the HTTP CONNECT method before negotiating TLS.public void noClientAuth()+
public void requestClientAuth()+
public void requireClientAuth()+
public RecordedRequest takeRequest() + throws InterruptedException+
InterruptedExceptionpublic RecordedRequest takeRequest(long timeout, + TimeUnit unit) + throws InterruptedException+
timeout - how long to wait before giving up, in units of unitunit - a TimeUnit determining how to interpret the timeout parameterInterruptedExceptionpublic int getRequestCount()+
public void enqueue(MockResponse response)+
response to be returned to a request made in sequence. The first request is
+ served by the first enqueued response; the second request by the second enqueued response; and
+ so on.ClassCastException - if the default dispatcher has been replaced with setDispatcher(Dispatcher).public void start() + throws IOException+
start(0).IOExceptionpublic void start(int port) + throws IOException+
port - the port to listen to, or 0 for any available port. Automated tests should always
+ use port 0 to avoid flakiness when a specific port is unavailable.IOExceptionpublic void start(InetAddress inetAddress, + int port) + throws IOException+
inetAddress - the address to create the server socket onport - the port to listen to, or 0 for any available port. Automated tests should always
+ use port 0 to avoid flakiness when a specific port is unavailable.IOExceptionpublic void shutdown() + throws IOException+
IOExceptionprotected void after()+
after in class org.junit.rules.ExternalResourcepublic Dispatcher getDispatcher()+
QueueDispatcher but other dispatchers can be configured.public void setDispatcher(Dispatcher dispatcher)+
queue; custom
+ dispatchers can vary the response based on timing or the content of the request.public void close() + throws IOException+
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/PushPromise.html b/3.x/mockwebserver/okhttp3/mockwebserver/PushPromise.html new file mode 100644 index 000000000..e06ef33b6 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/PushPromise.html @@ -0,0 +1,319 @@ + + + + + + +public final class PushPromise +extends Object+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ Headers headers,
+ MockResponse response) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Headers |
+headers() |
+
String |
+method() |
+
String |
+path() |
+
MockResponse |
+response() |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/QueueDispatcher.html b/3.x/mockwebserver/okhttp3/mockwebserver/QueueDispatcher.html new file mode 100644 index 000000000..ed9288c08 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/QueueDispatcher.html @@ -0,0 +1,414 @@ + + + + + + +public class QueueDispatcher +extends Dispatcher+
enqueueResponse(MockResponse).| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+responseQueue |
+
| Constructor and Description | +
|---|
QueueDispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
void |
+enqueueResponse(MockResponse response) |
+
MockResponse |
+peek()
+Returns an early guess of the next response, used for policy on how an incoming request should
+ be received.
+ |
+
void |
+setFailFast(boolean failFast) |
+
void |
+setFailFast(MockResponse failFastResponse) |
+
void |
+shutdown()
+Release any resources held by this dispatcher.
+ |
+
protected final BlockingQueue<MockResponse> responseQueue+
public MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
Dispatcherrequest. This method may block (for instance, to wait on
+ a CountdownLatch).dispatch in class DispatcherInterruptedExceptionpublic MockResponse peek()+
Dispatcherpeek in class Dispatcherpublic void enqueueResponse(MockResponse response)+
public void shutdown()+
Dispatchershutdown in class Dispatcherpublic void setFailFast(boolean failFast)+
public void setFailFast(MockResponse failFastResponse)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/RecordedRequest.html b/3.x/mockwebserver/okhttp3/mockwebserver/RecordedRequest.html new file mode 100644 index 000000000..f4a79426e --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/RecordedRequest.html @@ -0,0 +1,493 @@ + + + + + + +public final class RecordedRequest +extends Object+
| Constructor and Description | +
|---|
RecordedRequest(String requestLine,
+ Headers headers,
+ List<Integer> chunkSizes,
+ long bodySize,
+ okio.Buffer body,
+ int sequenceNumber,
+ Socket socket) |
+
| Modifier and Type | +Method and Description | +
|---|---|
okio.Buffer |
+getBody()
+Returns the body of this POST request.
+ |
+
long |
+getBodySize()
+Returns the total size of the body of this POST request (before truncation).
+ |
+
List<Integer> |
+getChunkSizes()
+Returns the sizes of the chunks of this request's body, or an empty list if the request's body
+ was empty or unchunked.
+ |
+
Handshake |
+getHandshake()
+Returns the TLS handshake of the connection that carried this request, or null if the request
+ was received without TLS.
+ |
+
String |
+getHeader(String name)
+Returns the first header named
+name, or null if no such header exists. |
+
Headers |
+getHeaders()
+Returns all headers.
+ |
+
String |
+getMethod() |
+
String |
+getPath() |
+
String |
+getRequestLine() |
+
HttpUrl |
+getRequestUrl() |
+
int |
+getSequenceNumber()
+Returns the index of this request on its HTTP connection.
+ |
+
TlsVersion |
+getTlsVersion()
+Returns the connection's TLS version or null if the connection doesn't use SSL.
+ |
+
String |
+getUtf8Body()
+Deprecated.
+
+Use
+getBody().readUtf8(). |
+
String |
+toString() |
+
public HttpUrl getRequestUrl()+
public String getRequestLine()+
public String getMethod()+
public String getPath()+
public Headers getHeaders()+
public String getHeader(String name)+
name, or null if no such header exists.public List<Integer> getChunkSizes()+
public long getBodySize()+
public okio.Buffer getBody()+
public String getUtf8Body()+
getBody().readUtf8().public int getSequenceNumber()+
public TlsVersion getTlsVersion()+
public Handshake getHandshake()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/SocketPolicy.html b/3.x/mockwebserver/okhttp3/mockwebserver/SocketPolicy.html new file mode 100644 index 000000000..d0fc3fb93 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/SocketPolicy.html @@ -0,0 +1,588 @@ + + + + + + +public enum SocketPolicy +extends Enum<SocketPolicy>+
Be careful when using values like DISCONNECT_AT_END, SHUTDOWN_INPUT_AT_END
+ and SHUTDOWN_OUTPUT_AT_END that close a socket after a response, and where there are
+ follow-up requests. The client is unblocked and free to continue as soon as it has received the
+ entire response body. If and when the client makes a subsequent request using a pooled socket the
+ server may not have had time to close the socket. The socket will be closed at an indeterminate
+ point before or during the second request. It may be closed after client has started sending the
+ request body. If a request body is not retryable then the client may fail the request, making
+ client behavior non-deterministic. Add delays in the client to improve the chances that the
+ server has closed the socket before follow up requests are made.
| Enum Constant and Description | +
|---|
CONTINUE_ALWAYS
+Transmit a
+HTTP/1.1 100 Continue response before reading the HTTP request body even
+ if the client does not send the header Expect: 100-continue in its request. |
+
DISCONNECT_AFTER_REQUEST
+Close connection after reading the request but before writing the response.
+ |
+
DISCONNECT_AT_END
+Close the socket after the response.
+ |
+
DISCONNECT_AT_START
+Request immediate close of connection without even reading the request.
+ |
+
DISCONNECT_DURING_REQUEST_BODY
+Close connection after reading half of the request body (if present).
+ |
+
DISCONNECT_DURING_RESPONSE_BODY
+Close connection after writing half of the response body (if present).
+ |
+
EXPECT_CONTINUE
+Transmit a
+HTTP/1.1 100 Continue response before reading the HTTP request body. |
+
FAIL_HANDSHAKE
+Don't trust the client during the SSL handshake.
+ |
+
KEEP_OPEN
+Keep the socket open after the response.
+ |
+
NO_RESPONSE
+Read the request but don't respond to it.
+ |
+
RESET_STREAM_AT_START
+Fail HTTP/2 requests without processing them by sending an HTTP/2 error code.
+ |
+
SHUTDOWN_INPUT_AT_END
+Shutdown the socket input after sending the response.
+ |
+
SHUTDOWN_OUTPUT_AT_END
+Shutdown the socket output after sending the response.
+ |
+
SHUTDOWN_SERVER_AFTER_RESPONSE
+Shutdown
+MockWebServer after writing response. |
+
STALL_SOCKET_AT_START
+After accepting the connection and doing TLS (if configured) don't do HTTP/1.1 or HTTP/2
+ framing.
+ |
+
UPGRADE_TO_SSL_AT_END
+Wrap the socket with SSL at the completion of this request/response pair.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static SocketPolicy |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final SocketPolicy SHUTDOWN_SERVER_AFTER_RESPONSE+
MockWebServer after writing response.public static final SocketPolicy KEEP_OPEN+
public static final SocketPolicy DISCONNECT_AT_END+
See SocketPolicy for reasons why this can cause test flakiness and how to avoid it.
public static final SocketPolicy UPGRADE_TO_SSL_AT_END+
public static final SocketPolicy DISCONNECT_AT_START+
public static final SocketPolicy DISCONNECT_AFTER_REQUEST+
public static final SocketPolicy DISCONNECT_DURING_REQUEST_BODY+
public static final SocketPolicy DISCONNECT_DURING_RESPONSE_BODY+
public static final SocketPolicy FAIL_HANDSHAKE+
public static final SocketPolicy SHUTDOWN_INPUT_AT_END+
See SocketPolicy for reasons why this can cause test flakiness and how to avoid it.
public static final SocketPolicy SHUTDOWN_OUTPUT_AT_END+
See SocketPolicy for reasons why this can cause test flakiness and how to avoid it.
public static final SocketPolicy STALL_SOCKET_AT_START+
public static final SocketPolicy NO_RESPONSE+
public static final SocketPolicy RESET_STREAM_AT_START+
public static final SocketPolicy EXPECT_CONTINUE+
HTTP/1.1 100 Continue response before reading the HTTP request body.
+ Typically this response is sent when a client makes a request with the header Expect: 100-continue.public static final SocketPolicy CONTINUE_ALWAYS+
HTTP/1.1 100 Continue response before reading the HTTP request body even
+ if the client does not send the header Expect: 100-continue in its request.public static SocketPolicy[] values()+
+for (SocketPolicy c : SocketPolicy.values()) + System.out.println(c); +
public static SocketPolicy valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/Dispatcher.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/Dispatcher.html new file mode 100644 index 000000000..d8512aca9 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/Dispatcher.html @@ -0,0 +1,198 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver | ++ |
| Modifier and Type | +Class and Description | +
|---|---|
class |
+QueueDispatcher
+Default dispatcher that processes a script of responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Dispatcher |
+MockWebServer.getDispatcher()
+Returns the dispatcher used to respond to HTTP requests.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockResponse.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockResponse.html new file mode 100644 index 000000000..d1d3bab7d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockResponse.html @@ -0,0 +1,398 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| okhttp3.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
abstract void |
+MwsDuplexAccess.setBody(MockResponse mockResponse,
+ DuplexResponseBody duplexResponseBody) |
+
| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+QueueDispatcher.responseQueue |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+MockResponse.addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+MockResponse.addHeaderLenient(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+MockResponse.clearHeaders()
+Removes all HTTP headers including any "Content-Length" and "Transfer-encoding" headers that
+ were added by default.
+ |
+
MockResponse |
+MockResponse.clone() |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
MockResponse |
+Dispatcher.peek()
+Returns an early guess of the next response, used for policy on how an incoming request should
+ be received.
+ |
+
MockResponse |
+QueueDispatcher.peek() |
+
MockResponse |
+MockResponse.removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+PushPromise.response() |
+
MockResponse |
+MockResponse.setBody(okio.Buffer body) |
+
MockResponse |
+MockResponse.setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+MockResponse.setBodyDelay(long delay,
+ TimeUnit unit)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+MockResponse.setChunkedBody(okio.Buffer body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize bytes. |
+
MockResponse |
+MockResponse.setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked every maxChunkSize bytes. |
+
MockResponse |
+MockResponse.setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the name and value. |
+
MockResponse |
+MockResponse.setHeaders(Headers headers)
+Replaces all headers with those specified.
+ |
+
MockResponse |
+MockResponse.setHeadersDelay(long delay,
+ TimeUnit unit) |
+
MockResponse |
+MockResponse.setHttp2ErrorCode(int http2ErrorCode)
+Sets the HTTP/2 error code to be
+ returned when resetting the stream.
+ |
+
MockResponse |
+MockResponse.setResponseCode(int code) |
+
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+MockResponse.setStatus(String status) |
+
MockResponse |
+MockResponse.setTrailers(Headers trailers)
+Replaces all trailers with those specified.
+ |
+
MockResponse |
+MockResponse.throttleBody(long bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the request reader and response writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are transferred. |
+
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols include Protocol.HTTP_2, this attaches a pushed stream to this response. |
+
MockResponse |
+MockResponse.withSettings(okhttp3.internal.http2.Settings settings)
+
+ |
+
MockResponse |
+MockResponse.withWebSocketUpgrade(WebSocketListener listener)
+Attempts to perform a web socket upgrade on the connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
void |
+QueueDispatcher.enqueueResponse(MockResponse response) |
+
void |
+QueueDispatcher.setFailFast(MockResponse failFastResponse) |
+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ Headers headers,
+ MockResponse response) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockWebServer.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockWebServer.html new file mode 100644 index 000000000..8f09618ba --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockWebServer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/PushPromise.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/PushPromise.html new file mode 100644 index 000000000..b96aa7a6b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/PushPromise.html @@ -0,0 +1,183 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
List<PushPromise> |
+MockResponse.getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols include Protocol.HTTP_2, this attaches a pushed stream to this response. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/QueueDispatcher.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/QueueDispatcher.html new file mode 100644 index 000000000..b4ddf4124 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/QueueDispatcher.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/RecordedRequest.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/RecordedRequest.html new file mode 100644 index 000000000..f9f51f400 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/RecordedRequest.html @@ -0,0 +1,225 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver | ++ |
| okhttp3.mockwebserver.internal.duplex | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
RecordedRequest |
+MockWebServer.takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
RecordedRequest |
+MockWebServer.takeRequest(long timeout,
+ TimeUnit unit)
+Awaits the next HTTP request (waiting up to the specified wait time if necessary), removes it,
+ and returns it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockDuplexResponseBody.onRequest(RecordedRequest request,
+ okio.BufferedSource requestBody,
+ okio.BufferedSink responseBody) |
+
void |
+DuplexResponseBody.onRequest(RecordedRequest request,
+ okio.BufferedSource requestBody,
+ okio.BufferedSink responseBody) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/class-use/SocketPolicy.html b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/SocketPolicy.html new file mode 100644 index 000000000..728325b7d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/SocketPolicy.html @@ -0,0 +1,192 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SocketPolicy |
+MockResponse.getSocketPolicy() |
+
static SocketPolicy |
+SocketPolicy.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+SocketPolicy.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/DuplexResponseBody.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/DuplexResponseBody.html new file mode 100644 index 000000000..d646d8cbf --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/DuplexResponseBody.html @@ -0,0 +1,236 @@ + + + + + + +public interface DuplexResponseBody
+| Modifier and Type | +Method and Description | +
|---|---|
void |
+onRequest(RecordedRequest request,
+ okio.BufferedSource requestBody,
+ okio.BufferedSink responseBody) |
+
void onRequest(RecordedRequest request, + okio.BufferedSource requestBody, + okio.BufferedSink responseBody) + throws IOException+
IOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/MockDuplexResponseBody.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/MockDuplexResponseBody.html new file mode 100644 index 000000000..1adb5b5ab --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/MockDuplexResponseBody.html @@ -0,0 +1,388 @@ + + + + + + +public final class MockDuplexResponseBody +extends Object +implements DuplexResponseBody+
receiveRequest(java.lang.String) in the sequence they are run.| Constructor and Description | +
|---|
MockDuplexResponseBody() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+awaitSuccess()
+Returns once the duplex conversation completes successfully.
+ |
+
MockDuplexResponseBody |
+exhaustRequest() |
+
MockDuplexResponseBody |
+exhaustResponse() |
+
void |
+onRequest(RecordedRequest request,
+ okio.BufferedSource requestBody,
+ okio.BufferedSink responseBody) |
+
MockDuplexResponseBody |
+receiveRequest(String expected) |
+
MockDuplexResponseBody |
+requestIOException() |
+
MockDuplexResponseBody |
+sendResponse(String s) |
+
MockDuplexResponseBody |
+sleep(long duration,
+ TimeUnit unit) |
+
public MockDuplexResponseBody()+
public MockDuplexResponseBody receiveRequest(String expected)+
public MockDuplexResponseBody exhaustRequest()+
public MockDuplexResponseBody requestIOException()+
public MockDuplexResponseBody sendResponse(String s)+
public MockDuplexResponseBody exhaustResponse()+
public MockDuplexResponseBody sleep(long duration, + TimeUnit unit)+
public void onRequest(RecordedRequest request, + okio.BufferedSource requestBody, + okio.BufferedSink responseBody)+
onRequest in interface DuplexResponseBodyCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/class-use/DuplexResponseBody.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/class-use/DuplexResponseBody.html new file mode 100644 index 000000000..51c611983 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/class-use/DuplexResponseBody.html @@ -0,0 +1,191 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| okhttp3.mockwebserver.internal.duplex | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
abstract void |
+MwsDuplexAccess.setBody(MockResponse mockResponse,
+ DuplexResponseBody duplexResponseBody) |
+
| Modifier and Type | +Class and Description | +
|---|---|
class |
+MockDuplexResponseBody
+A scriptable request/response conversation.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/class-use/MockDuplexResponseBody.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/class-use/MockDuplexResponseBody.html new file mode 100644 index 000000000..114c99b5b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/class-use/MockDuplexResponseBody.html @@ -0,0 +1,187 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver.internal.duplex | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
MockDuplexResponseBody |
+MockDuplexResponseBody.exhaustRequest() |
+
MockDuplexResponseBody |
+MockDuplexResponseBody.exhaustResponse() |
+
MockDuplexResponseBody |
+MockDuplexResponseBody.receiveRequest(String expected) |
+
MockDuplexResponseBody |
+MockDuplexResponseBody.requestIOException() |
+
MockDuplexResponseBody |
+MockDuplexResponseBody.sendResponse(String s) |
+
MockDuplexResponseBody |
+MockDuplexResponseBody.sleep(long duration,
+ TimeUnit unit) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-frame.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-frame.html new file mode 100644 index 000000000..77c779099 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +| Interface | +Description | +
|---|---|
| DuplexResponseBody | ++ |
| Class | +Description | +
|---|---|
| MockDuplexResponseBody | +
+ A scriptable request/response conversation.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-tree.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-tree.html new file mode 100644 index 000000000..c18550ee9 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-use.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-use.html new file mode 100644 index 000000000..7985d993e --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/duplex/package-use.html @@ -0,0 +1,183 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| okhttp3.mockwebserver.internal.duplex | ++ |
| Class and Description | +
|---|
| DuplexResponseBody | +
| Class and Description | +
|---|
| DuplexResponseBody | +
| MockDuplexResponseBody
+ A scriptable request/response conversation.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/Http2Server.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/Http2Server.html new file mode 100644 index 000000000..93e18bed4 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/Http2Server.html @@ -0,0 +1,328 @@ + + + + + + +public final class Http2Server +extends okhttp3.internal.http2.Http2Connection.Listener+
REFUSE_INCOMING_STREAMS| Constructor and Description | +
|---|
Http2Server(File baseDirectory,
+ SSLSocketFactory sslSocketFactory) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+onStream(okhttp3.internal.http2.Http2Stream stream) |
+
onSettingspublic Http2Server(File baseDirectory, + SSLSocketFactory sslSocketFactory)+
public void onStream(okhttp3.internal.http2.Http2Stream stream) + throws IOException+
onStream in class okhttp3.internal.http2.Http2Connection.ListenerIOExceptionCopyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/class-use/Http2Server.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/class-use/Http2Server.html new file mode 100644 index 000000000..ba8d618a0 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/class-use/Http2Server.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-frame.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-frame.html new file mode 100644 index 000000000..724d2ceb0 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Http2Server | +
+ A basic HTTP/2 server that serves the contents of a local directory.
+ |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-tree.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-tree.html new file mode 100644 index 000000000..637e0b36e --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-use.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-use.html new file mode 100644 index 000000000..e99fcaa03 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/http2/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/HeldCertificate.Builder.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/HeldCertificate.Builder.html new file mode 100644 index 000000000..1afaa68bf --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/HeldCertificate.Builder.html @@ -0,0 +1,395 @@ + + + + + + +public static final class HeldCertificate.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+build() |
+
HeldCertificate.Builder |
+ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+commonName(String hostname)
+Set this certificate's name.
+ |
+
KeyPair |
+generateKeyPair() |
+
HeldCertificate.Builder |
+issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+serialNumber(String serialNumber) |
+
HeldCertificate.Builder |
+subjectAlternativeName(String altName)
+Adds a subject alternative name to the certificate.
+ |
+
public HeldCertificate.Builder serialNumber(String serialNumber)+
public HeldCertificate.Builder commonName(String hostname)+
public HeldCertificate.Builder keyPair(KeyPair keyPair)+
public HeldCertificate.Builder issuedBy(HeldCertificate signedBy)+
public HeldCertificate.Builder ca(int maxIntermediateCas)+
maxIntermediateCas
+ intermediate certificate authorities beneath it.public HeldCertificate.Builder subjectAlternativeName(String altName)+
public HeldCertificate build() + throws GeneralSecurityException+
GeneralSecurityExceptionpublic KeyPair generateKeyPair() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/HeldCertificate.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/HeldCertificate.html new file mode 100644 index 000000000..3442abce3 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/HeldCertificate.html @@ -0,0 +1,312 @@ + + + + + + +public final class HeldCertificate +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HeldCertificate.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
X509Certificate |
+certificate |
+
KeyPair |
+keyPair |
+
| Constructor and Description | +
|---|
HeldCertificate(X509Certificate certificate,
+ KeyPair keyPair) |
+
public final X509Certificate certificate+
public final KeyPair keyPair+
public HeldCertificate(X509Certificate certificate, + KeyPair keyPair)+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/SslClient.Builder.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/SslClient.Builder.html new file mode 100644 index 000000000..99be083c5 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/SslClient.Builder.html @@ -0,0 +1,357 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
SslClient.Builder |
+addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SslClient |
+build() |
+
SslClient.Builder |
+certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
SslClient.Builder |
+certificateChain(KeyPair keyPair,
+ X509Certificate keyCert,
+ X509Certificate... certificates) |
+
SslClient.Builder |
+keyStoreType(String keyStoreType) |
+
SslClient.Builder |
+sslContext(SSLContext sslContext) |
+
public SslClient.Builder certificateChain(HeldCertificate localCert, + HeldCertificate... chain)+
public SslClient.Builder certificateChain(KeyPair keyPair, + X509Certificate keyCert, + X509Certificate... certificates)+
public SslClient.Builder addTrustedCertificate(X509Certificate certificate)+
public SslClient.Builder keyStoreType(String keyStoreType)+
public SslClient.Builder sslContext(SSLContext sslContext)+
public SslClient build()+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/SslClient.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/SslClient.html new file mode 100644 index 000000000..d221ec71b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/SslClient.html @@ -0,0 +1,325 @@ + + + + + + +public final class SslClient +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SslClient.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
SSLSocketFactory |
+socketFactory |
+
SSLContext |
+sslContext |
+
X509TrustManager |
+trustManager |
+
| Modifier and Type | +Method and Description | +
|---|---|
static SslClient |
+localhost()
+Returns an SSL client for this host's localhost address.
+ |
+
public final SSLContext sslContext+
public final SSLSocketFactory socketFactory+
public final X509TrustManager trustManager+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/HeldCertificate.Builder.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/HeldCertificate.Builder.html new file mode 100644 index 000000000..4e351a330 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/HeldCertificate.Builder.html @@ -0,0 +1,195 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate.Builder |
+HeldCertificate.Builder.ca(int maxIntermediateCas)
+Set this certificate to be a certificate authority, with up to
+maxIntermediateCas
+ intermediate certificate authorities beneath it. |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.commonName(String hostname)
+Set this certificate's name.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.keyPair(KeyPair keyPair) |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.serialNumber(String serialNumber) |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.subjectAlternativeName(String altName)
+Adds a subject alternative name to the certificate.
+ |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/HeldCertificate.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/HeldCertificate.html new file mode 100644 index 000000000..6a1067aa5 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/HeldCertificate.html @@ -0,0 +1,195 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+HeldCertificate.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
SslClient.Builder |
+SslClient.Builder.certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
SslClient.Builder |
+SslClient.Builder.certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.issuedBy(HeldCertificate signedBy)
+Set the certificate that signs this certificate.
+ |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/SslClient.Builder.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/SslClient.Builder.html new file mode 100644 index 000000000..ecf4e6f1b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/SslClient.Builder.html @@ -0,0 +1,189 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SslClient.Builder |
+SslClient.Builder.addTrustedCertificate(X509Certificate certificate)
+Add a certificate authority that this client trusts.
+ |
+
SslClient.Builder |
+SslClient.Builder.certificateChain(HeldCertificate localCert,
+ HeldCertificate... chain)
+Configure the certificate chain to use when serving HTTPS responses.
+ |
+
SslClient.Builder |
+SslClient.Builder.certificateChain(KeyPair keyPair,
+ X509Certificate keyCert,
+ X509Certificate... certificates) |
+
SslClient.Builder |
+SslClient.Builder.keyStoreType(String keyStoreType) |
+
SslClient.Builder |
+SslClient.Builder.sslContext(SSLContext sslContext) |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/SslClient.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/SslClient.html new file mode 100644 index 000000000..8b79c4889 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/class-use/SslClient.html @@ -0,0 +1,172 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver.internal.tls | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SslClient |
+SslClient.Builder.build() |
+
static SslClient |
+SslClient.localhost()
+Returns an SSL client for this host's localhost address.
+ |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-frame.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-frame.html new file mode 100644 index 000000000..5ef33349a --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +| Class | +Description | +
|---|---|
| HeldCertificate | +
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | ++ |
| SslClient | +
+ Combines an SSL socket factory and trust manager, a pairing enough for OkHttp or MockWebServer to
+ create a secure connection.
+ |
+
| SslClient.Builder | ++ |
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-tree.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-tree.html new file mode 100644 index 000000000..5b487623d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-use.html b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-use.html new file mode 100644 index 000000000..bada6b820 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/internal/tls/package-use.html @@ -0,0 +1,173 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.mockwebserver.internal.tls | ++ |
| Class and Description | +
|---|
| HeldCertificate
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | +
| SslClient
+ Combines an SSL socket factory and trust manager, a pairing enough for OkHttp or MockWebServer to
+ create a secure connection.
+ |
+
| SslClient.Builder | +
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/package-frame.html b/3.x/mockwebserver/okhttp3/mockwebserver/package-frame.html new file mode 100644 index 000000000..d513b9891 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/package-frame.html @@ -0,0 +1,30 @@ + + + + + + +| Class | +Description | +
|---|---|
| Dispatcher | +
+ Handler for mock server requests.
+ |
+
| MockResponse | +
+ A scripted response to be replayed by the mock web server.
+ |
+
| MockWebServer | +
+ A scriptable web server.
+ |
+
| PushPromise | +
+ An HTTP request initiated by the server.
+ |
+
| QueueDispatcher | +
+ Default dispatcher that processes a script of responses.
+ |
+
| RecordedRequest | +
+ An HTTP request that came into the mock web server.
+ |
+
| Enum | +Description | +
|---|---|
| SocketPolicy | +
+ What should be done with the incoming socket.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/package-tree.html b/3.x/mockwebserver/okhttp3/mockwebserver/package-tree.html new file mode 100644 index 000000000..c28814d3a --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/package-tree.html @@ -0,0 +1,163 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/okhttp3/mockwebserver/package-use.html b/3.x/mockwebserver/okhttp3/mockwebserver/package-use.html new file mode 100644 index 000000000..e6ea7ad29 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/package-use.html @@ -0,0 +1,223 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| okhttp3.mockwebserver | ++ |
| okhttp3.mockwebserver.internal.duplex | ++ |
| Class and Description | +
|---|
| MockResponse
+ A scripted response to be replayed by the mock web server.
+ |
+
| Class and Description | +
|---|
| Dispatcher
+ Handler for mock server requests.
+ |
+
| MockResponse
+ A scripted response to be replayed by the mock web server.
+ |
+
| PushPromise
+ An HTTP request initiated by the server.
+ |
+
| RecordedRequest
+ An HTTP request that came into the mock web server.
+ |
+
| SocketPolicy
+ What should be done with the incoming socket.
+ |
+
| Class and Description | +
|---|
| RecordedRequest
+ An HTTP request that came into the mock web server.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/overview-frame.html b/3.x/mockwebserver/overview-frame.html new file mode 100644 index 000000000..8c2454a7b --- /dev/null +++ b/3.x/mockwebserver/overview-frame.html @@ -0,0 +1,24 @@ + + + + + + ++ + diff --git a/3.x/mockwebserver/overview-summary.html b/3.x/mockwebserver/overview-summary.html new file mode 100644 index 000000000..b40eefb21 --- /dev/null +++ b/3.x/mockwebserver/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3.internal.duplex | ++ |
| okhttp3.mockwebserver | ++ |
| okhttp3.mockwebserver.internal.duplex | ++ |
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/overview-tree.html b/3.x/mockwebserver/overview-tree.html new file mode 100644 index 000000000..26928a109 --- /dev/null +++ b/3.x/mockwebserver/overview-tree.html @@ -0,0 +1,171 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/mockwebserver/package-list b/3.x/mockwebserver/package-list new file mode 100644 index 000000000..c3a66c808 --- /dev/null +++ b/3.x/mockwebserver/package-list @@ -0,0 +1,3 @@ +okhttp3.internal.duplex +okhttp3.mockwebserver +okhttp3.mockwebserver.internal.duplex diff --git a/3.x/mockwebserver/script.js b/3.x/mockwebserver/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/mockwebserver/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/mockwebserver/stylesheet.css b/3.x/mockwebserver/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/mockwebserver/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/mockwebserver/version.txt b/3.x/mockwebserver/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/mockwebserver/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/okcurl/META-INF/MANIFEST.MF b/3.x/okcurl/META-INF/MANIFEST.MF new file mode 100644 index 000000000..83570c464 --- /dev/null +++ b/3.x/okcurl/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_202 + diff --git a/3.x/okcurl/allclasses-frame.html b/3.x/okcurl/allclasses-frame.html new file mode 100644 index 000000000..5e515adef --- /dev/null +++ b/3.x/okcurl/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/deprecated-list.html b/3.x/okcurl/deprecated-list.html new file mode 100644 index 000000000..b80507e48 --- /dev/null +++ b/3.x/okcurl/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/help-doc.html b/3.x/okcurl/help-doc.html new file mode 100644 index 000000000..d4d143634 --- /dev/null +++ b/3.x/okcurl/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/index-all.html b/3.x/okcurl/index-all.html new file mode 100644 index 000000000..98c35a3ed --- /dev/null +++ b/3.x/okcurl/index-all.html @@ -0,0 +1,227 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/index.html b/3.x/okcurl/index.html new file mode 100644 index 000000000..162f5883a --- /dev/null +++ b/3.x/okcurl/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+@Command(name="okcurl",
+ description="A curl for the next-generation web.")
+public class Main
+extends io.airlift.airline.HelpOption
+implements java.lang.Runnable
+| Modifier and Type | +Field and Description | +
|---|---|
boolean |
+allowInsecure |
+
int |
+callTimeout |
+
int |
+connectTimeout |
+
java.lang.String |
+data |
+
boolean |
+followRedirects |
+
java.util.List<java.lang.String> |
+headers |
+
java.lang.String |
+method |
+
int |
+readTimeout |
+
java.lang.String |
+referer |
+
boolean |
+showHeaders |
+
boolean |
+showHttp2Frames |
+
java.lang.String |
+url |
+
java.lang.String |
+userAgent |
+
boolean |
+verbose |
+
boolean |
+version |
+
commandMetadata, help| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(java.lang.String... args) |
+
void |
+run() |
+
showHelpIfRequestedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.lang.String method+
public java.lang.String data+
public java.util.List<java.lang.String> headers+
public java.lang.String userAgent+
public int connectTimeout+
public int readTimeout+
public int callTimeout+
public boolean followRedirects+
public boolean allowInsecure+
public boolean showHeaders+
public boolean showHttp2Frames+
public java.lang.String referer+
public boolean version+
public boolean verbose+
public java.lang.String url+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/okhttp3/curl/class-use/Main.html b/3.x/okcurl/okhttp3/curl/class-use/Main.html new file mode 100644 index 000000000..03f9e5659 --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/class-use/Main.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/okhttp3/curl/package-frame.html b/3.x/okcurl/okhttp3/curl/package-frame.html new file mode 100644 index 000000000..328ae132c --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Main | ++ |
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/okhttp3/curl/package-tree.html b/3.x/okcurl/okhttp3/curl/package-tree.html new file mode 100644 index 000000000..ae01ddd96 --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/okhttp3/curl/package-use.html b/3.x/okcurl/okhttp3/curl/package-use.html new file mode 100644 index 000000000..8a09b4c6e --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/overview-tree.html b/3.x/okcurl/overview-tree.html new file mode 100644 index 000000000..0b837811f --- /dev/null +++ b/3.x/okcurl/overview-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okcurl/package-list b/3.x/okcurl/package-list new file mode 100644 index 000000000..c3348cb1b --- /dev/null +++ b/3.x/okcurl/package-list @@ -0,0 +1 @@ +okhttp3.curl diff --git a/3.x/okcurl/script.js b/3.x/okcurl/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okcurl/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okcurl/stylesheet.css b/3.x/okcurl/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okcurl/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okcurl/version.txt b/3.x/okcurl/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/okcurl/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/okhttp-android-support/META-INF/MANIFEST.MF b/3.x/okhttp-android-support/META-INF/MANIFEST.MF new file mode 100644 index 000000000..adc50dbb0 --- /dev/null +++ b/3.x/okhttp-android-support/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_162 + diff --git a/3.x/okhttp-android-support/allclasses-frame.html b/3.x/okhttp-android-support/allclasses-frame.html new file mode 100644 index 000000000..af37fcc82 --- /dev/null +++ b/3.x/okhttp-android-support/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/deprecated-list.html b/3.x/okhttp-android-support/deprecated-list.html new file mode 100644 index 000000000..89269b31d --- /dev/null +++ b/3.x/okhttp-android-support/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/help-doc.html b/3.x/okhttp-android-support/help-doc.html new file mode 100644 index 000000000..24c8df301 --- /dev/null +++ b/3.x/okhttp-android-support/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/index-all.html b/3.x/okhttp-android-support/index-all.html new file mode 100644 index 000000000..ea00c8ed5 --- /dev/null +++ b/3.x/okhttp-android-support/index-all.html @@ -0,0 +1,245 @@ + + + + + + +ResponseCache
+ with stats.ResponseCache contains a Cache.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/index.html b/3.x/okhttp-android-support/index.html new file mode 100644 index 000000000..6a9d3f3c2 --- /dev/null +++ b/3.x/okhttp-android-support/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public class AndroidInternal +extends Object+
HttpURLConnection / HttpsURLConnection
+ implementation including support for a custom ResponseCache.| Modifier and Type | +Method and Description | +
|---|---|
static void |
+setResponseCache(OkUrlFactory okUrlFactory,
+ ResponseCache responseCache)
+Sets the response cache to be used to read and write cached responses.
+ |
+
public static void setResponseCache(OkUrlFactory okUrlFactory, + ResponseCache responseCache)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/AndroidShimResponseCache.html b/3.x/okhttp-android-support/okhttp3/AndroidShimResponseCache.html new file mode 100644 index 000000000..686ed1537 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/AndroidShimResponseCache.html @@ -0,0 +1,488 @@ + + + + + + +public class AndroidShimResponseCache +extends ResponseCache+
ResponseCache
+ with stats.| Modifier and Type | +Method and Description | +
|---|---|
void |
+close()
+Uninstalls the cache and releases any active resources.
+ |
+
static AndroidShimResponseCache |
+create(File directory,
+ long maxSize) |
+
void |
+delete()
+Uninstalls the cache and deletes all of its stored contents.
+ |
+
void |
+flush()
+Force buffered operations to the filesystem.
+ |
+
CacheResponse |
+get(URI uri,
+ String requestMethod,
+ Map<String,List<String>> requestHeaders) |
+
Cache |
+getCache() |
+
int |
+getHitCount()
+Returns the number of HTTP requests whose response was provided by the cache.
+ |
+
int |
+getNetworkCount()
+Returns the number of HTTP requests that required the network to either supply a response or
+ validate a locally cached response.
+ |
+
int |
+getRequestCount()
+Returns the total number of HTTP requests that were made.
+ |
+
boolean |
+isEquivalent(File directory,
+ long maxSize) |
+
long |
+maxSize()
+Returns the maximum number of bytes that this cache should use to store its data.
+ |
+
CacheRequest |
+put(URI uri,
+ URLConnection urlConnection) |
+
long |
+size()
+Returns the number of bytes currently being used to store the values in this cache.
+ |
+
getDefault, setDefaultpublic static AndroidShimResponseCache create(File directory, + long maxSize) + throws IOException+
IOExceptionpublic boolean isEquivalent(File directory, + long maxSize)+
public Cache getCache()+
public CacheResponse get(URI uri, + String requestMethod, + Map<String,List<String>> requestHeaders) + throws IOException+
get in class ResponseCacheIOException@Nullable +public CacheRequest put(URI uri, + URLConnection urlConnection) + throws IOException+
put in class ResponseCacheIOExceptionpublic long size() + throws IOException+
maxSize() if a background deletion is pending.IOExceptionpublic long maxSize()+
public void flush() + throws IOException+
IOExceptionpublic int getNetworkCount()+
public int getHitCount()+
GET requests that were validated over the network.public int getRequestCount()+
public void close() + throws IOException+
IOExceptionpublic void delete() + throws IOException+
IOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/OkCacheContainer.html b/3.x/okhttp-android-support/okhttp3/OkCacheContainer.html new file mode 100644 index 000000000..3a4730bf4 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/OkCacheContainer.html @@ -0,0 +1,222 @@ + + + + + + +public interface OkCacheContainer
+ResponseCache contains a Cache.| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+getCache() |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/class-use/AndroidInternal.html b/3.x/okhttp-android-support/okhttp3/class-use/AndroidInternal.html new file mode 100644 index 000000000..2525a36dd --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/class-use/AndroidInternal.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/class-use/AndroidShimResponseCache.html b/3.x/okhttp-android-support/okhttp3/class-use/AndroidShimResponseCache.html new file mode 100644 index 000000000..0d4455dca --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/class-use/AndroidShimResponseCache.html @@ -0,0 +1,150 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static AndroidShimResponseCache |
+AndroidShimResponseCache.create(File directory,
+ long maxSize) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/class-use/OkCacheContainer.html b/3.x/okhttp-android-support/okhttp3/class-use/OkCacheContainer.html new file mode 100644 index 000000000..ce3bc27b6 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/class-use/OkCacheContainer.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/package-frame.html b/3.x/okhttp-android-support/okhttp3/package-frame.html new file mode 100644 index 000000000..3fef5d383 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +| Interface | +Description | +
|---|---|
| OkCacheContainer | +
+ An interface that allows OkHttp to detect that a
+ResponseCache contains a Cache. |
+
| Class | +Description | +
|---|---|
| AndroidInternal | +
+ Back doors to enable the use of OkHttp within the Android platform libraries.
+ |
+
| AndroidShimResponseCache | +
+ A class provided for use by Android so that it can continue supporting a
+ResponseCache
+ with stats. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/package-tree.html b/3.x/okhttp-android-support/okhttp3/package-tree.html new file mode 100644 index 000000000..16b186591 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/okhttp3/package-use.html b/3.x/okhttp-android-support/okhttp3/package-use.html new file mode 100644 index 000000000..0e655d313 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/package-use.html @@ -0,0 +1,145 @@ + + + + + + +| Class and Description | +
|---|
| AndroidShimResponseCache
+ A class provided for use by Android so that it can continue supporting a
+ResponseCache
+ with stats. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/overview-tree.html b/3.x/okhttp-android-support/overview-tree.html new file mode 100644 index 000000000..05843b65b --- /dev/null +++ b/3.x/okhttp-android-support/overview-tree.html @@ -0,0 +1,146 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-android-support/package-list b/3.x/okhttp-android-support/package-list new file mode 100644 index 000000000..80c510a07 --- /dev/null +++ b/3.x/okhttp-android-support/package-list @@ -0,0 +1 @@ +okhttp3 diff --git a/3.x/okhttp-android-support/script.js b/3.x/okhttp-android-support/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-android-support/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-android-support/stylesheet.css b/3.x/okhttp-android-support/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-android-support/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-android-support/version.txt b/3.x/okhttp-android-support/version.txt new file mode 100644 index 000000000..7918c7abb --- /dev/null +++ b/3.x/okhttp-android-support/version.txt @@ -0,0 +1 @@ +3.13.1 \ No newline at end of file diff --git a/3.x/okhttp-apache/META-INF/MANIFEST.MF b/3.x/okhttp-apache/META-INF/MANIFEST.MF new file mode 100644 index 000000000..adc50dbb0 --- /dev/null +++ b/3.x/okhttp-apache/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_162 + diff --git a/3.x/okhttp-apache/allclasses-frame.html b/3.x/okhttp-apache/allclasses-frame.html new file mode 100644 index 000000000..434321a46 --- /dev/null +++ b/3.x/okhttp-apache/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/deprecated-list.html b/3.x/okhttp-apache/deprecated-list.html new file mode 100644 index 000000000..dd43dcd88 --- /dev/null +++ b/3.x/okhttp-apache/deprecated-list.html @@ -0,0 +1,150 @@ + + + + + + +| Class and Description | +
|---|
| okhttp3.apache.OkApacheClient
+ OkHttp will be dropping its ability to be used with
+HttpClient in an upcoming
+ release. Applications that need this should either downgrade to the Apache implementation or
+ upgrade to OkHttp's Request/Response API. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/help-doc.html b/3.x/okhttp-apache/help-doc.html new file mode 100644 index 000000000..3185aadfc --- /dev/null +++ b/3.x/okhttp-apache/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/index-all.html b/3.x/okhttp-apache/index-all.html new file mode 100644 index 000000000..124654cb0 --- /dev/null +++ b/3.x/okhttp-apache/index-all.html @@ -0,0 +1,197 @@ + + + + + + +HttpClient in an upcoming
+ release. Applications that need this should either downgrade to the Apache implementation or
+ upgrade to OkHttp's Request/Response API.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/index.html b/3.x/okhttp-apache/index.html new file mode 100644 index 000000000..2096afa6f --- /dev/null +++ b/3.x/okhttp-apache/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+HttpClient in an upcoming
+ release. Applications that need this should either downgrade to the Apache implementation or
+ upgrade to OkHttp's Request/Response API.public final class OkApacheClient +extends Object +implements org.apache.http.client.HttpClient+
| Constructor and Description | +
|---|
OkApacheClient()
+Deprecated.
+ |
+
OkApacheClient(OkHttpClient client)
+Deprecated.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
org.apache.http.HttpResponse |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request)
+Deprecated.
+ |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.protocol.HttpContext context)
+Deprecated.
+ |
+
<T> T |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler)
+Deprecated.
+ |
+
<T> T |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler,
+ org.apache.http.protocol.HttpContext context)
+Deprecated.
+ |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.client.methods.HttpUriRequest request)
+Deprecated.
+ |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.protocol.HttpContext context)
+Deprecated.
+ |
+
<T> T |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler)
+Deprecated.
+ |
+
<T> T |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler,
+ org.apache.http.protocol.HttpContext context)
+Deprecated.
+ |
+
org.apache.http.conn.ClientConnectionManager |
+getConnectionManager()
+Deprecated.
+ |
+
org.apache.http.params.HttpParams |
+getParams()
+Deprecated.
+ |
+
public OkApacheClient()+
public OkApacheClient(OkHttpClient client)+
public org.apache.http.params.HttpParams getParams()+
getParams in interface org.apache.http.client.HttpClientpublic org.apache.http.conn.ClientConnectionManager getConnectionManager()+
getConnectionManager in interface org.apache.http.client.HttpClientpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/okhttp3/apache/class-use/OkApacheClient.html b/3.x/okhttp-apache/okhttp3/apache/class-use/OkApacheClient.html new file mode 100644 index 000000000..fb62feb19 --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/class-use/OkApacheClient.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/okhttp3/apache/package-frame.html b/3.x/okhttp-apache/okhttp3/apache/package-frame.html new file mode 100644 index 000000000..beaef85ac --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkApacheClient | +Deprecated
+ OkHttp will be dropping its ability to be used with
+HttpClient in an upcoming
+ release. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/okhttp3/apache/package-tree.html b/3.x/okhttp-apache/okhttp3/apache/package-tree.html new file mode 100644 index 000000000..3a3278e62 --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/okhttp3/apache/package-use.html b/3.x/okhttp-apache/okhttp3/apache/package-use.html new file mode 100644 index 000000000..331b9e897 --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/overview-tree.html b/3.x/okhttp-apache/overview-tree.html new file mode 100644 index 000000000..1fa63aee6 --- /dev/null +++ b/3.x/okhttp-apache/overview-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-apache/package-list b/3.x/okhttp-apache/package-list new file mode 100644 index 000000000..eeaa709aa --- /dev/null +++ b/3.x/okhttp-apache/package-list @@ -0,0 +1 @@ +okhttp3.apache diff --git a/3.x/okhttp-apache/script.js b/3.x/okhttp-apache/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-apache/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-apache/stylesheet.css b/3.x/okhttp-apache/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-apache/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-apache/version.txt b/3.x/okhttp-apache/version.txt new file mode 100644 index 000000000..7918c7abb --- /dev/null +++ b/3.x/okhttp-apache/version.txt @@ -0,0 +1 @@ +3.13.1 \ No newline at end of file diff --git a/3.x/okhttp-dnsoverhttps/META-INF/MANIFEST.MF b/3.x/okhttp-dnsoverhttps/META-INF/MANIFEST.MF new file mode 100644 index 000000000..83570c464 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_202 + diff --git a/3.x/okhttp-dnsoverhttps/allclasses-frame.html b/3.x/okhttp-dnsoverhttps/allclasses-frame.html new file mode 100644 index 000000000..cc982fc8c --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/allclasses-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final int |
+MAX_RESPONSE_SIZE |
+65536 |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/deprecated-list.html b/3.x/okhttp-dnsoverhttps/deprecated-list.html new file mode 100644 index 000000000..374c6bd18 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/help-doc.html b/3.x/okhttp-dnsoverhttps/help-doc.html new file mode 100644 index 000000000..948abda10 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/index-all.html b/3.x/okhttp-dnsoverhttps/index-all.html new file mode 100644 index 000000000..82e3656a5 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/index-all.html @@ -0,0 +1,237 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/index.html b/3.x/okhttp-dnsoverhttps/index.html new file mode 100644 index 000000000..dd99de03d --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public static final class DnsOverHttps.Builder
+extends java.lang.Object
+| Modifier and Type | +Method and Description | +
|---|---|
DnsOverHttps.Builder |
+bootstrapDnsHosts(java.net.InetAddress... bootstrapDnsHosts) |
+
DnsOverHttps.Builder |
+bootstrapDnsHosts(java.util.List<java.net.InetAddress> bootstrapDnsHosts) |
+
DnsOverHttps |
+build() |
+
DnsOverHttps.Builder |
+client(OkHttpClient client) |
+
DnsOverHttps.Builder |
+includeIPv6(boolean includeIPv6) |
+
DnsOverHttps.Builder |
+post(boolean post) |
+
DnsOverHttps.Builder |
+resolvePrivateAddresses(boolean resolvePrivateAddresses) |
+
DnsOverHttps.Builder |
+resolvePublicAddresses(boolean resolvePublicAddresses) |
+
DnsOverHttps.Builder |
+systemDns(Dns systemDns) |
+
DnsOverHttps.Builder |
+url(HttpUrl url) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DnsOverHttps build()+
public DnsOverHttps.Builder client(OkHttpClient client)+
public DnsOverHttps.Builder url(HttpUrl url)+
public DnsOverHttps.Builder includeIPv6(boolean includeIPv6)+
public DnsOverHttps.Builder post(boolean post)+
public DnsOverHttps.Builder resolvePrivateAddresses(boolean resolvePrivateAddresses)+
public DnsOverHttps.Builder resolvePublicAddresses(boolean resolvePublicAddresses)+
public DnsOverHttps.Builder bootstrapDnsHosts(@Nullable + java.util.List<java.net.InetAddress> bootstrapDnsHosts)+
public DnsOverHttps.Builder bootstrapDnsHosts(java.net.InetAddress... bootstrapDnsHosts)+
public DnsOverHttps.Builder systemDns(Dns systemDns)+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/DnsOverHttps.html b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/DnsOverHttps.html new file mode 100644 index 000000000..de0e079bd --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/DnsOverHttps.html @@ -0,0 +1,420 @@ + + + + + + +public class DnsOverHttps +extends java.lang.Object +implements Dns+
A DNS API client encodes a single DNS query into an HTTP request + using either the HTTP GET or POST method and the other requirements + of this section. The DNS API server defines the URI used by the + request through the use of a URI Template.+ +
As of OkHttp 3.11, this feature is an unstable preview: the API is subject to change, + and the implementation is incomplete. We expect that OkHttp 3.12 or 3.13 will finalize this API. + Until then, expect API and behavior changes when you update your OkHttp dependency.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+DnsOverHttps.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+DNS_MESSAGE |
+
static int |
+MAX_RESPONSE_SIZE |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+client() |
+
boolean |
+includeIPv6() |
+
java.util.List<java.net.InetAddress> |
+lookup(java.lang.String hostname) |
+
boolean |
+post() |
+
boolean |
+resolvePrivateAddresses() |
+
boolean |
+resolvePublicAddresses() |
+
HttpUrl |
+url() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final MediaType DNS_MESSAGE+
public static final int MAX_RESPONSE_SIZE+
public HttpUrl url()+
public boolean post()+
public boolean includeIPv6()+
public OkHttpClient client()+
public boolean resolvePrivateAddresses()+
public boolean resolvePublicAddresses()+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/class-use/DnsOverHttps.Builder.html b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/class-use/DnsOverHttps.Builder.html new file mode 100644 index 000000000..1cf52760c --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/class-use/DnsOverHttps.Builder.html @@ -0,0 +1,181 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
DnsOverHttps.Builder |
+DnsOverHttps.Builder.bootstrapDnsHosts(java.net.InetAddress... bootstrapDnsHosts) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.bootstrapDnsHosts(java.util.List<java.net.InetAddress> bootstrapDnsHosts) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.client(OkHttpClient client) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.includeIPv6(boolean includeIPv6) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.post(boolean post) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.resolvePrivateAddresses(boolean resolvePrivateAddresses) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.resolvePublicAddresses(boolean resolvePublicAddresses) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.systemDns(Dns systemDns) |
+
DnsOverHttps.Builder |
+DnsOverHttps.Builder.url(HttpUrl url) |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/class-use/DnsOverHttps.html b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/class-use/DnsOverHttps.html new file mode 100644 index 000000000..7f698b123 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/class-use/DnsOverHttps.html @@ -0,0 +1,149 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
DnsOverHttps |
+DnsOverHttps.Builder.build() |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-frame.html b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-frame.html new file mode 100644 index 000000000..e4f85258b --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +See: Description
+| Class | +Description | +
|---|---|
| DnsOverHttps | +
+ DNS over HTTPS implementation.
+ |
+
| DnsOverHttps.Builder | ++ |
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-tree.html b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-tree.html new file mode 100644 index 000000000..20f8f4898 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-tree.html @@ -0,0 +1,134 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-use.html b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-use.html new file mode 100644 index 000000000..74cd00afe --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/okhttp3/dnsoverhttps/package-use.html @@ -0,0 +1,147 @@ + + + + + + +| Class and Description | +
|---|
| DnsOverHttps
+ DNS over HTTPS implementation.
+ |
+
| DnsOverHttps.Builder | +
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/overview-tree.html b/3.x/okhttp-dnsoverhttps/overview-tree.html new file mode 100644 index 000000000..3eebf6858 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/overview-tree.html @@ -0,0 +1,138 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-dnsoverhttps/package-list b/3.x/okhttp-dnsoverhttps/package-list new file mode 100644 index 000000000..99f4dc479 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/package-list @@ -0,0 +1 @@ +okhttp3.dnsoverhttps diff --git a/3.x/okhttp-dnsoverhttps/script.js b/3.x/okhttp-dnsoverhttps/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-dnsoverhttps/stylesheet.css b/3.x/okhttp-dnsoverhttps/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-dnsoverhttps/version.txt b/3.x/okhttp-dnsoverhttps/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/okhttp-dnsoverhttps/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/okhttp-sse/META-INF/MANIFEST.MF b/3.x/okhttp-sse/META-INF/MANIFEST.MF new file mode 100644 index 000000000..b5547a843 --- /dev/null +++ b/3.x/okhttp-sse/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_202 + diff --git a/3.x/okhttp-sse/allclasses-frame.html b/3.x/okhttp-sse/allclasses-frame.html new file mode 100644 index 000000000..890aca75f --- /dev/null +++ b/3.x/okhttp-sse/allclasses-frame.html @@ -0,0 +1,23 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/deprecated-list.html b/3.x/okhttp-sse/deprecated-list.html new file mode 100644 index 000000000..beb525e09 --- /dev/null +++ b/3.x/okhttp-sse/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/help-doc.html b/3.x/okhttp-sse/help-doc.html new file mode 100644 index 000000000..8824a1a4e --- /dev/null +++ b/3.x/okhttp-sse/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/index-all.html b/3.x/okhttp-sse/index-all.html new file mode 100644 index 000000000..e44bd6111 --- /dev/null +++ b/3.x/okhttp-sse/index-all.html @@ -0,0 +1,205 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/index.html b/3.x/okhttp-sse/index.html new file mode 100644 index 000000000..a914d51ca --- /dev/null +++ b/3.x/okhttp-sse/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public final class RealEventSource +extends Object +implements EventSource, ServerSentEventReader.Callback, Callback+
EventSource.Factory| Constructor and Description | +
|---|
RealEventSource(Request request,
+ EventSourceListener listener) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Immediately and violently release resources held by this event source.
+ |
+
void |
+connect(OkHttpClient client) |
+
void |
+onEvent(String id,
+ String type,
+ String data) |
+
void |
+onFailure(Call call,
+ IOException e) |
+
void |
+onResponse(Call call,
+ Response response) |
+
void |
+onRetryChange(long timeMs) |
+
void |
+processResponse(Response response) |
+
Request |
+request()
+Returns the original request that initiated this event source.
+ |
+
public RealEventSource(Request request, + EventSourceListener listener)+
public void connect(OkHttpClient client)+
public void onResponse(Call call, + Response response)+
onResponse in interface Callbackpublic void processResponse(Response response)+
public void onFailure(Call call, + IOException e)+ +
public Request request()+
EventSourcerequest in interface EventSourcepublic void cancel()+
EventSourcecancel in interface EventSourcepublic void onEvent(@Nullable + String id, + @Nullable + String type, + String data)+
onEvent in interface ServerSentEventReader.Callbackpublic void onRetryChange(long timeMs)+
onRetryChange in interface ServerSentEventReader.CallbackCopyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/ServerSentEventReader.Callback.html b/3.x/okhttp-sse/okhttp3/internal/sse/ServerSentEventReader.Callback.html new file mode 100644 index 000000000..87033b680 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/ServerSentEventReader.Callback.html @@ -0,0 +1,250 @@ + + + + + + +public static interface ServerSentEventReader.Callback
+| Modifier and Type | +Method and Description | +
|---|---|
void |
+onEvent(String id,
+ String type,
+ String data) |
+
void |
+onRetryChange(long timeMs) |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/ServerSentEventReader.html b/3.x/okhttp-sse/okhttp3/internal/sse/ServerSentEventReader.html new file mode 100644 index 000000000..e930c6c74 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/ServerSentEventReader.html @@ -0,0 +1,260 @@ + + + + + + +public final class ServerSentEventReader +extends Object+
| Modifier and Type | +Class and Description | +
|---|---|
static interface |
+ServerSentEventReader.Callback |
+
| Constructor and Description | +
|---|
ServerSentEventReader(okio.BufferedSource source,
+ ServerSentEventReader.Callback callback) |
+
public ServerSentEventReader(okio.BufferedSource source, + ServerSentEventReader.Callback callback)+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/class-use/RealEventSource.html b/3.x/okhttp-sse/okhttp3/internal/sse/class-use/RealEventSource.html new file mode 100644 index 000000000..c256379dd --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/class-use/RealEventSource.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/class-use/ServerSentEventReader.Callback.html b/3.x/okhttp-sse/okhttp3/internal/sse/class-use/ServerSentEventReader.Callback.html new file mode 100644 index 000000000..9aa140cf0 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/class-use/ServerSentEventReader.Callback.html @@ -0,0 +1,180 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.sse | +
+ Private support classes for server-sent events.
+ |
+
| Modifier and Type | +Class and Description | +
|---|---|
class |
+RealEventSource |
+
| Constructor and Description | +
|---|
ServerSentEventReader(okio.BufferedSource source,
+ ServerSentEventReader.Callback callback) |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/class-use/ServerSentEventReader.html b/3.x/okhttp-sse/okhttp3/internal/sse/class-use/ServerSentEventReader.html new file mode 100644 index 000000000..9eb6ee73e --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/class-use/ServerSentEventReader.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/package-frame.html b/3.x/okhttp-sse/okhttp3/internal/sse/package-frame.html new file mode 100644 index 000000000..536110a78 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +See: Description
+| Interface | +Description | +
|---|---|
| ServerSentEventReader.Callback | ++ |
| Class | +Description | +
|---|---|
| RealEventSource | ++ |
| ServerSentEventReader | ++ |
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/package-tree.html b/3.x/okhttp-sse/okhttp3/internal/sse/package-tree.html new file mode 100644 index 000000000..c76eddcbe --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/package-tree.html @@ -0,0 +1,144 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/internal/sse/package-use.html b/3.x/okhttp-sse/okhttp3/internal/sse/package-use.html new file mode 100644 index 000000000..cc92784fd --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/internal/sse/package-use.html @@ -0,0 +1,161 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.internal.sse | +
+ Private support classes for server-sent events.
+ |
+
| Class and Description | +
|---|
| ServerSentEventReader.Callback | +
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/EventSource.Factory.html b/3.x/okhttp-sse/okhttp3/sse/EventSource.Factory.html new file mode 100644 index 000000000..30afcb43e --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/EventSource.Factory.html @@ -0,0 +1,233 @@ + + + + + + +public static interface EventSource.Factory
+| Modifier and Type | +Method and Description | +
|---|---|
EventSource |
+newEventSource(Request request,
+ EventSourceListener listener)
+Creates a new event source and immediately returns it.
+ |
+
EventSource newEventSource(Request request, + EventSourceListener listener)+
listener
+ will be notified. The caller must cancel the returned event source when it is no longer
+ in use.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/EventSource.html b/3.x/okhttp-sse/okhttp3/sse/EventSource.html new file mode 100644 index 000000000..fb686d1fc --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/EventSource.html @@ -0,0 +1,260 @@ + + + + + + +public interface EventSource
+| Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+EventSource.Factory |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Immediately and violently release resources held by this event source.
+ |
+
Request |
+request()
+Returns the original request that initiated this event source.
+ |
+
Request request()+
void cancel()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/EventSourceListener.html b/3.x/okhttp-sse/okhttp3/sse/EventSourceListener.html new file mode 100644 index 000000000..3a28e2790 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/EventSourceListener.html @@ -0,0 +1,343 @@ + + + + + + +public abstract class EventSourceListener +extends Object+
| Constructor and Description | +
|---|
EventSourceListener() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+onClosed(EventSource eventSource)
+TODO description.
+ |
+
void |
+onEvent(EventSource eventSource,
+ String id,
+ String type,
+ String data)
+TODO description.
+ |
+
void |
+onFailure(EventSource eventSource,
+ Throwable t,
+ Response response)
+Invoked when an event source has been closed due to an error reading from or writing to the
+ network.
+ |
+
void |
+onOpen(EventSource eventSource,
+ Response response)
+Invoked when an event source has been accepted by the remote peer and may begin transmitting
+ events.
+ |
+
public void onOpen(EventSource eventSource, + Response response)+
public void onEvent(EventSource eventSource, + @Nullable + String id, + @Nullable + String type, + String data)+
public void onClosed(EventSource eventSource)+
public void onFailure(EventSource eventSource, + @Nullable + Throwable t, + @Nullable + Response response)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/EventSources.html b/3.x/okhttp-sse/okhttp3/sse/EventSources.html new file mode 100644 index 000000000..05cd1c4ba --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/EventSources.html @@ -0,0 +1,252 @@ + + + + + + +public final class EventSources +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
static EventSource.Factory |
+createFactory(OkHttpClient client) |
+
static void |
+processResponse(Response response,
+ EventSourceListener listener) |
+
public static EventSource.Factory createFactory(OkHttpClient client)+
public static void processResponse(Response response, + EventSourceListener listener)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/class-use/EventSource.Factory.html b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSource.Factory.html new file mode 100644 index 000000000..3f23c9843 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSource.Factory.html @@ -0,0 +1,149 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static EventSource.Factory |
+EventSources.createFactory(OkHttpClient client) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/class-use/EventSource.html b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSource.html new file mode 100644 index 000000000..138b22d28 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSource.html @@ -0,0 +1,193 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
EventSource |
+EventSource.Factory.newEventSource(Request request,
+ EventSourceListener listener)
+Creates a new event source and immediately returns it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+EventSourceListener.onClosed(EventSource eventSource)
+TODO description.
+ |
+
void |
+EventSourceListener.onEvent(EventSource eventSource,
+ String id,
+ String type,
+ String data)
+TODO description.
+ |
+
void |
+EventSourceListener.onFailure(EventSource eventSource,
+ Throwable t,
+ Response response)
+Invoked when an event source has been closed due to an error reading from or writing to the
+ network.
+ |
+
void |
+EventSourceListener.onOpen(EventSource eventSource,
+ Response response)
+Invoked when an event source has been accepted by the remote peer and may begin transmitting
+ events.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/class-use/EventSourceListener.html b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSourceListener.html new file mode 100644 index 000000000..4f6d0ceb6 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSourceListener.html @@ -0,0 +1,157 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
EventSource |
+EventSource.Factory.newEventSource(Request request,
+ EventSourceListener listener)
+Creates a new event source and immediately returns it.
+ |
+
static void |
+EventSources.processResponse(Response response,
+ EventSourceListener listener) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/class-use/EventSources.html b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSources.html new file mode 100644 index 000000000..0202cc23f --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/class-use/EventSources.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/package-frame.html b/3.x/okhttp-sse/okhttp3/sse/package-frame.html new file mode 100644 index 000000000..194943b27 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/package-frame.html @@ -0,0 +1,27 @@ + + + + + + +| Interface | +Description | +
|---|---|
| EventSource | ++ |
| EventSource.Factory | ++ |
| Class | +Description | +
|---|---|
| EventSourceListener | ++ |
| EventSources | ++ |
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/package-tree.html b/3.x/okhttp-sse/okhttp3/sse/package-tree.html new file mode 100644 index 000000000..5cc82bb41 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/okhttp3/sse/package-use.html b/3.x/okhttp-sse/okhttp3/sse/package-use.html new file mode 100644 index 000000000..916ef00e3 --- /dev/null +++ b/3.x/okhttp-sse/okhttp3/sse/package-use.html @@ -0,0 +1,148 @@ + + + + + + +| Class and Description | +
|---|
| EventSource | +
| EventSource.Factory | +
| EventSourceListener | +
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/overview-frame.html b/3.x/okhttp-sse/overview-frame.html new file mode 100644 index 000000000..432bf6ff2 --- /dev/null +++ b/3.x/okhttp-sse/overview-frame.html @@ -0,0 +1,23 @@ + + + + + + ++ + diff --git a/3.x/okhttp-sse/overview-summary.html b/3.x/okhttp-sse/overview-summary.html new file mode 100644 index 000000000..c27b75070 --- /dev/null +++ b/3.x/okhttp-sse/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3.internal.sse | +
+ Private support classes for server-sent events.
+ |
+
| okhttp3.sse | +
+ Support for server-sent events.
+ |
+
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/overview-tree.html b/3.x/okhttp-sse/overview-tree.html new file mode 100644 index 000000000..3f92ffa37 --- /dev/null +++ b/3.x/okhttp-sse/overview-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-sse/package-list b/3.x/okhttp-sse/package-list new file mode 100644 index 000000000..e92849e4e --- /dev/null +++ b/3.x/okhttp-sse/package-list @@ -0,0 +1 @@ +okhttp3.sse diff --git a/3.x/okhttp-sse/script.js b/3.x/okhttp-sse/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-sse/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-sse/stylesheet.css b/3.x/okhttp-sse/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-sse/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-sse/version.txt b/3.x/okhttp-sse/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/okhttp-sse/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/okhttp-testing-support/META-INF/MANIFEST.MF b/3.x/okhttp-testing-support/META-INF/MANIFEST.MF new file mode 100644 index 000000000..1a12ffb44 --- /dev/null +++ b/3.x/okhttp-testing-support/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_162 + diff --git a/3.x/okhttp-testing-support/allclasses-frame.html b/3.x/okhttp-testing-support/allclasses-frame.html new file mode 100644 index 000000000..edebf9caf --- /dev/null +++ b/3.x/okhttp-testing-support/allclasses-frame.html @@ -0,0 +1,33 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/deprecated-list.html b/3.x/okhttp-testing-support/deprecated-list.html new file mode 100644 index 000000000..2ca38d696 --- /dev/null +++ b/3.x/okhttp-testing-support/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/help-doc.html b/3.x/okhttp-testing-support/help-doc.html new file mode 100644 index 000000000..490d02ade --- /dev/null +++ b/3.x/okhttp-testing-support/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/index-all.html b/3.x/okhttp-testing-support/index-all.html new file mode 100644 index 000000000..09bc89f00 --- /dev/null +++ b/3.x/okhttp-testing-support/index-all.html @@ -0,0 +1,461 @@ + + + + + + +count fake addresses like [255.0.0.100, 255.0.0.101].hostname.RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android.hostname.Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/index.html b/3.x/okhttp-testing-support/index.html new file mode 100644 index 000000000..250aab299 --- /dev/null +++ b/3.x/okhttp-testing-support/index.html @@ -0,0 +1,76 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+| Modifier and Type | +Method and Description | +
|---|---|
java.util.List<java.net.InetAddress> |
+allocate(int count)
+Allocates and returns
+count fake addresses like [255.0.0.100, 255.0.0.101]. |
+
void |
+assertRequests(java.lang.String... expectedHosts) |
+
FakeDns |
+clear(java.lang.String hostname)
+Clears the results for
+hostname. |
+
java.util.List<java.net.InetAddress> |
+lookup(java.lang.String hostname) |
+
java.net.InetAddress |
+lookup(java.lang.String hostname,
+ int index) |
+
FakeDns |
+set(java.lang.String hostname,
+ java.util.List<java.net.InetAddress> addresses)
+Sets the results for
+hostname. |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic FakeDns set(java.lang.String hostname, + java.util.List<java.net.InetAddress> addresses)+
hostname.public FakeDns clear(java.lang.String hostname)+
hostname.public java.net.InetAddress lookup(java.lang.String hostname, + int index) + throws java.net.UnknownHostException+
java.net.UnknownHostExceptionpublic java.util.List<java.net.InetAddress> lookup(java.lang.String hostname) + throws java.net.UnknownHostException+ +
public void assertRequests(java.lang.String... expectedHosts)+
public java.util.List<java.net.InetAddress> allocate(int count)+
count fake addresses like [255.0.0.100, 255.0.0.101].Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/FakeProxySelector.html b/3.x/okhttp-testing-support/okhttp3/FakeProxySelector.html new file mode 100644 index 000000000..6f79c1537 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/FakeProxySelector.html @@ -0,0 +1,359 @@ + + + + + + +public final class FakeProxySelector
+extends java.net.ProxySelector
+| Modifier and Type | +Field and Description | +
|---|---|
java.util.List<java.net.Proxy> |
+proxies |
+
| Constructor and Description | +
|---|
FakeProxySelector() |
+
| Modifier and Type | +Method and Description | +
|---|---|
FakeProxySelector |
+addProxy(java.net.Proxy proxy) |
+
void |
+connectFailed(java.net.URI uri,
+ java.net.SocketAddress sa,
+ java.io.IOException ioe) |
+
java.util.List<java.net.Proxy> |
+select(java.net.URI uri) |
+
getDefault, setDefaultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic FakeProxySelector addProxy(java.net.Proxy proxy)+
public java.util.List<java.net.Proxy> select(java.net.URI uri)+
select in class java.net.ProxySelectorpublic void connectFailed(java.net.URI uri, + java.net.SocketAddress sa, + java.io.IOException ioe)+
connectFailed in class java.net.ProxySelectorCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/FakeSSLSession.html b/3.x/okhttp-testing-support/okhttp3/FakeSSLSession.html new file mode 100644 index 000000000..699f5bf23 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/FakeSSLSession.html @@ -0,0 +1,638 @@ + + + + + + +public final class FakeSSLSession
+extends java.lang.Object
+implements javax.net.ssl.SSLSession
+| Constructor and Description | +
|---|
FakeSSLSession(java.security.cert.Certificate... certificates) |
+
| Modifier and Type | +Method and Description | +
|---|---|
int |
+getApplicationBufferSize() |
+
java.lang.String |
+getCipherSuite() |
+
long |
+getCreationTime() |
+
byte[] |
+getId() |
+
long |
+getLastAccessedTime() |
+
java.security.cert.Certificate[] |
+getLocalCertificates() |
+
java.security.Principal |
+getLocalPrincipal() |
+
int |
+getPacketBufferSize() |
+
javax.security.cert.X509Certificate[] |
+getPeerCertificateChain() |
+
java.security.cert.Certificate[] |
+getPeerCertificates() |
+
java.lang.String |
+getPeerHost() |
+
int |
+getPeerPort() |
+
java.security.Principal |
+getPeerPrincipal() |
+
java.lang.String |
+getProtocol() |
+
javax.net.ssl.SSLSessionContext |
+getSessionContext() |
+
java.lang.Object |
+getValue(java.lang.String s) |
+
java.lang.String[] |
+getValueNames() |
+
void |
+invalidate() |
+
boolean |
+isValid() |
+
void |
+putValue(java.lang.String s,
+ java.lang.Object obj) |
+
void |
+removeValue(java.lang.String s) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic FakeSSLSession(java.security.cert.Certificate... certificates) + throws java.lang.Exception+
java.lang.Exceptionpublic int getApplicationBufferSize()+
getApplicationBufferSize in interface javax.net.ssl.SSLSessionpublic java.lang.String getCipherSuite()+
getCipherSuite in interface javax.net.ssl.SSLSessionpublic long getCreationTime()+
getCreationTime in interface javax.net.ssl.SSLSessionpublic byte[] getId()+
getId in interface javax.net.ssl.SSLSessionpublic long getLastAccessedTime()+
getLastAccessedTime in interface javax.net.ssl.SSLSessionpublic java.security.cert.Certificate[] getLocalCertificates()+
getLocalCertificates in interface javax.net.ssl.SSLSessionpublic java.security.Principal getLocalPrincipal()+
getLocalPrincipal in interface javax.net.ssl.SSLSessionpublic int getPacketBufferSize()+
getPacketBufferSize in interface javax.net.ssl.SSLSessionpublic java.security.cert.Certificate[] getPeerCertificates() + throws javax.net.ssl.SSLPeerUnverifiedException+
getPeerCertificates in interface javax.net.ssl.SSLSessionjavax.net.ssl.SSLPeerUnverifiedExceptionpublic javax.security.cert.X509Certificate[] getPeerCertificateChain() + throws javax.net.ssl.SSLPeerUnverifiedException+
getPeerCertificateChain in interface javax.net.ssl.SSLSessionjavax.net.ssl.SSLPeerUnverifiedExceptionpublic java.lang.String getPeerHost()+
getPeerHost in interface javax.net.ssl.SSLSessionpublic int getPeerPort()+
getPeerPort in interface javax.net.ssl.SSLSessionpublic java.security.Principal getPeerPrincipal() + throws javax.net.ssl.SSLPeerUnverifiedException+
getPeerPrincipal in interface javax.net.ssl.SSLSessionjavax.net.ssl.SSLPeerUnverifiedExceptionpublic java.lang.String getProtocol()+
getProtocol in interface javax.net.ssl.SSLSessionpublic javax.net.ssl.SSLSessionContext getSessionContext()+
getSessionContext in interface javax.net.ssl.SSLSessionpublic void putValue(java.lang.String s, + java.lang.Object obj)+
putValue in interface javax.net.ssl.SSLSessionpublic void removeValue(java.lang.String s)+
removeValue in interface javax.net.ssl.SSLSessionpublic java.lang.Object getValue(java.lang.String s)+
getValue in interface javax.net.ssl.SSLSessionpublic java.lang.String[] getValueNames()+
getValueNames in interface javax.net.ssl.SSLSessionpublic void invalidate()+
invalidate in interface javax.net.ssl.SSLSessionpublic boolean isValid()+
isValid in interface javax.net.ssl.SSLSessionCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/ForwardingRequestBody.html b/3.x/okhttp-testing-support/okhttp3/ForwardingRequestBody.html new file mode 100644 index 000000000..d99c36bad --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/ForwardingRequestBody.html @@ -0,0 +1,377 @@ + + + + + + +public class ForwardingRequestBody +extends RequestBody+
| Constructor and Description | +
|---|
ForwardingRequestBody(RequestBody delegate) |
+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+contentLength() |
+
MediaType |
+contentType() |
+
RequestBody |
+delegate() |
+
boolean |
+isDuplex() |
+
java.lang.String |
+toString() |
+
void |
+writeTo(okio.BufferedSink sink) |
+
create, create, create, create, create, isOneShotclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ForwardingRequestBody(RequestBody delegate)+
public final RequestBody delegate()+
@Nullable +public MediaType contentType()+
contentType in class RequestBodypublic long contentLength() + throws java.io.IOException+
contentLength in class RequestBodyjava.io.IOExceptionpublic void writeTo(okio.BufferedSink sink) + throws java.io.IOException+
writeTo in class RequestBodyjava.io.IOExceptionpublic boolean isDuplex()+
isDuplex in class RequestBodypublic java.lang.String toString()+
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/ForwardingResponseBody.html b/3.x/okhttp-testing-support/okhttp3/ForwardingResponseBody.html new file mode 100644 index 000000000..2d14420c2 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/ForwardingResponseBody.html @@ -0,0 +1,358 @@ + + + + + + +public class ForwardingResponseBody +extends ResponseBody+
| Constructor and Description | +
|---|
ForwardingResponseBody(ResponseBody delegate) |
+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+contentLength() |
+
MediaType |
+contentType() |
+
ResponseBody |
+delegate() |
+
okio.BufferedSource |
+source() |
+
java.lang.String |
+toString() |
+
bytes, byteStream, charStream, close, create, create, create, create, stringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ForwardingResponseBody(ResponseBody delegate)+
public final ResponseBody delegate()+
@Nullable +public MediaType contentType()+
contentType in class ResponseBodypublic long contentLength()+
contentLength in class ResponseBodypublic okio.BufferedSource source()+
source in class ResponseBodypublic java.lang.String toString()+
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/OkHttpClientTestRule.html b/3.x/okhttp-testing-support/okhttp3/OkHttpClientTestRule.html new file mode 100644 index 000000000..7f07195b0 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/OkHttpClientTestRule.html @@ -0,0 +1,320 @@ + + + + + + +public class OkHttpClientTestRule
+extends java.lang.Object
+implements org.junit.rules.TestRule
+| Modifier and Type | +Field and Description | +
|---|---|
OkHttpClient |
+client |
+
| Constructor and Description | +
|---|
OkHttpClientTestRule() |
+
| Modifier and Type | +Method and Description | +
|---|---|
org.junit.runners.model.Statement |
+apply(org.junit.runners.model.Statement base,
+ org.junit.runner.Description description) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic OkHttpClient client+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/RecordingCookieJar.html b/3.x/okhttp-testing-support/okhttp3/RecordingCookieJar.html new file mode 100644 index 000000000..ae408f6ff --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/RecordingCookieJar.html @@ -0,0 +1,355 @@ + + + + + + +NO_COOKIES| Constructor and Description | +
|---|
RecordingCookieJar() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+assertResponseCookies(java.lang.String... cookies) |
+
void |
+enqueueRequestCookies(Cookie... cookies) |
+
java.util.List<Cookie> |
+loadForRequest(HttpUrl url) |
+
void |
+saveFromResponse(HttpUrl url,
+ java.util.List<Cookie> cookies) |
+
java.util.List<Cookie> |
+takeResponseCookies() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void enqueueRequestCookies(Cookie... cookies)+
public java.util.List<Cookie> takeResponseCookies()+
public void assertResponseCookies(java.lang.String... cookies)+
public void saveFromResponse(HttpUrl url, + java.util.List<Cookie> cookies)+
saveFromResponse in interface CookieJarpublic java.util.List<Cookie> loadForRequest(HttpUrl url)+
loadForRequest in interface CookieJarCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/RecordingHostnameVerifier.html b/3.x/okhttp-testing-support/okhttp3/RecordingHostnameVerifier.html new file mode 100644 index 000000000..47d7583ac --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/RecordingHostnameVerifier.html @@ -0,0 +1,320 @@ + + + + + + +public final class RecordingHostnameVerifier
+extends java.lang.Object
+implements javax.net.ssl.HostnameVerifier
+| Modifier and Type | +Field and Description | +
|---|---|
java.util.List<java.lang.String> |
+calls |
+
| Constructor and Description | +
|---|
RecordingHostnameVerifier() |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+verify(java.lang.String hostname,
+ javax.net.ssl.SSLSession session) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/TestUtil.html b/3.x/okhttp-testing-support/okhttp3/TestUtil.html new file mode 100644 index 000000000..092b24fb2 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/TestUtil.html @@ -0,0 +1,348 @@ + + + + + + +public final class TestUtil
+extends java.lang.Object
+| Modifier and Type | +Field and Description | +
|---|---|
static java.net.InetSocketAddress |
+UNREACHABLE_ADDRESS |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+awaitGarbageCollection()
+See FinalizationTester for discussion on how to best trigger GC in tests.
+ |
+
static OkHttpClient |
+defaultClient()
+Returns an OkHttpClient for all tests to use as a starting point.
+ |
+
static void |
+ensureAllConnectionsReleased(OkHttpClient client) |
+
static java.util.List<okhttp3.internal.http2.Header> |
+headerEntries(java.lang.String... elements) |
+
static java.lang.String |
+repeat(char c,
+ int count) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.net.InetSocketAddress UNREACHABLE_ADDRESS+
public static OkHttpClient defaultClient()+
The shared instance allows all tests to share a single connection pool, which prevents idle + connections from consuming unnecessary resources while connections wait to be evicted. + +
This client is also configured to be slightly more deterministic, returning a single IP + address for all hosts, regardless of the actual number of IP addresses reported by DNS.
public static java.util.List<okhttp3.internal.http2.Header> headerEntries(java.lang.String... elements)+
public static java.lang.String repeat(char c, + int count)+
public static void awaitGarbageCollection() + throws java.lang.Exception+
java.lang.Exceptionpublic static void ensureAllConnectionsReleased(OkHttpClient client)+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/UppercaseRequestInterceptor.html b/3.x/okhttp-testing-support/okhttp3/UppercaseRequestInterceptor.html new file mode 100644 index 000000000..07801730b --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/UppercaseRequestInterceptor.html @@ -0,0 +1,301 @@ + + + + + + +public final class UppercaseRequestInterceptor +extends java.lang.Object +implements Interceptor+
Interceptor.Chain| Constructor and Description | +
|---|
UppercaseRequestInterceptor() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response |
+intercept(Interceptor.Chain chain) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic UppercaseRequestInterceptor()+
public Response intercept(Interceptor.Chain chain) + throws java.io.IOException+
intercept in interface Interceptorjava.io.IOExceptionCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/UppercaseResponseInterceptor.html b/3.x/okhttp-testing-support/okhttp3/UppercaseResponseInterceptor.html new file mode 100644 index 000000000..f1e892e77 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/UppercaseResponseInterceptor.html @@ -0,0 +1,301 @@ + + + + + + +public final class UppercaseResponseInterceptor +extends java.lang.Object +implements Interceptor+
Interceptor.Chain| Constructor and Description | +
|---|
UppercaseResponseInterceptor() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response |
+intercept(Interceptor.Chain chain) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic UppercaseResponseInterceptor()+
public Response intercept(Interceptor.Chain chain) + throws java.io.IOException+
intercept in interface Interceptorjava.io.IOExceptionCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/FakeDns.html b/3.x/okhttp-testing-support/okhttp3/class-use/FakeDns.html new file mode 100644 index 000000000..96fc69e4f --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/FakeDns.html @@ -0,0 +1,175 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
FakeDns |
+FakeDns.clear(java.lang.String hostname)
+Clears the results for
+hostname. |
+
FakeDns |
+FakeDns.set(java.lang.String hostname,
+ java.util.List<java.net.InetAddress> addresses)
+Sets the results for
+hostname. |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/FakeProxySelector.html b/3.x/okhttp-testing-support/okhttp3/class-use/FakeProxySelector.html new file mode 100644 index 000000000..2d26cb782 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/FakeProxySelector.html @@ -0,0 +1,166 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
FakeProxySelector |
+FakeProxySelector.addProxy(java.net.Proxy proxy) |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/FakeSSLSession.html b/3.x/okhttp-testing-support/okhttp3/class-use/FakeSSLSession.html new file mode 100644 index 000000000..d8d0747b2 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/FakeSSLSession.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/ForwardingRequestBody.html b/3.x/okhttp-testing-support/okhttp3/class-use/ForwardingRequestBody.html new file mode 100644 index 000000000..ae251b345 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/ForwardingRequestBody.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/ForwardingResponseBody.html b/3.x/okhttp-testing-support/okhttp3/class-use/ForwardingResponseBody.html new file mode 100644 index 000000000..ebc2ff2e8 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/ForwardingResponseBody.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/OkHttpClientTestRule.html b/3.x/okhttp-testing-support/okhttp3/class-use/OkHttpClientTestRule.html new file mode 100644 index 000000000..d232da19d --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/OkHttpClientTestRule.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/RecordingCookieJar.html b/3.x/okhttp-testing-support/okhttp3/class-use/RecordingCookieJar.html new file mode 100644 index 000000000..74cc3d7b5 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/RecordingCookieJar.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/RecordingHostnameVerifier.html b/3.x/okhttp-testing-support/okhttp3/class-use/RecordingHostnameVerifier.html new file mode 100644 index 000000000..1a686b6b1 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/RecordingHostnameVerifier.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/TestUtil.html b/3.x/okhttp-testing-support/okhttp3/class-use/TestUtil.html new file mode 100644 index 000000000..2fb0ac7cf --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/TestUtil.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/UppercaseRequestInterceptor.html b/3.x/okhttp-testing-support/okhttp3/class-use/UppercaseRequestInterceptor.html new file mode 100644 index 000000000..dcf4b95e6 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/UppercaseRequestInterceptor.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/class-use/UppercaseResponseInterceptor.html b/3.x/okhttp-testing-support/okhttp3/class-use/UppercaseResponseInterceptor.html new file mode 100644 index 000000000..dfb07b4a2 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/UppercaseResponseInterceptor.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/duplex/AsyncRequestBody.html b/3.x/okhttp-testing-support/okhttp3/internal/duplex/AsyncRequestBody.html new file mode 100644 index 000000000..a03ded92b --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/duplex/AsyncRequestBody.html @@ -0,0 +1,356 @@ + + + + + + +public final class AsyncRequestBody +extends RequestBody+
| Constructor and Description | +
|---|
AsyncRequestBody() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+assertNoMoreSinks() |
+
MediaType |
+contentType() |
+
boolean |
+isDuplex() |
+
okio.BufferedSink |
+takeSink() |
+
void |
+writeTo(okio.BufferedSink sink) |
+
contentLength, create, create, create, create, create, isOneShotclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@Nullable +public MediaType contentType()+
contentType in class RequestBodypublic void writeTo(okio.BufferedSink sink)+
writeTo in class RequestBodypublic boolean isDuplex()+
isDuplex in class RequestBodypublic okio.BufferedSink takeSink() + throws java.lang.InterruptedException+
java.lang.InterruptedExceptionpublic void assertNoMoreSinks()+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/duplex/class-use/AsyncRequestBody.html b/3.x/okhttp-testing-support/okhttp3/internal/duplex/class-use/AsyncRequestBody.html new file mode 100644 index 000000000..1049efc99 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/duplex/class-use/AsyncRequestBody.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-frame.html b/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-frame.html new file mode 100644 index 000000000..0b3430b80 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| AsyncRequestBody | +
+ A duplex request body that keeps the provided sinks so they can be written to later.
+ |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-tree.html b/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-tree.html new file mode 100644 index 000000000..d9e218a07 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-use.html b/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-use.html new file mode 100644 index 000000000..e0da9ebd2 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/duplex/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/io/InMemoryFileSystem.html b/3.x/okhttp-testing-support/okhttp3/internal/io/InMemoryFileSystem.html new file mode 100644 index 000000000..8abfa21aa --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/InMemoryFileSystem.html @@ -0,0 +1,469 @@ + + + + + + +public final class InMemoryFileSystem +extends java.lang.Object +implements okhttp3.internal.io.FileSystem, org.junit.rules.TestRule+
SYSTEM| Constructor and Description | +
|---|
InMemoryFileSystem() |
+
| Modifier and Type | +Method and Description | +
|---|---|
okio.Sink |
+appendingSink(java.io.File file) |
+
org.junit.runners.model.Statement |
+apply(org.junit.runners.model.Statement base,
+ org.junit.runner.Description description) |
+
void |
+delete(java.io.File file) |
+
void |
+deleteContents(java.io.File directory) |
+
void |
+ensureResourcesClosed() |
+
boolean |
+exists(java.io.File file) |
+
void |
+rename(java.io.File from,
+ java.io.File to) |
+
okio.Sink |
+sink(java.io.File file) |
+
long |
+size(java.io.File file) |
+
okio.Source |
+source(java.io.File file) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, + org.junit.runner.Description description)+
apply in interface org.junit.rules.TestRulepublic void ensureResourcesClosed()+
public okio.Source source(java.io.File file) + throws java.io.FileNotFoundException+
source in interface okhttp3.internal.io.FileSystemjava.io.FileNotFoundExceptionpublic okio.Sink sink(java.io.File file) + throws java.io.FileNotFoundException+
sink in interface okhttp3.internal.io.FileSystemjava.io.FileNotFoundExceptionpublic okio.Sink appendingSink(java.io.File file) + throws java.io.FileNotFoundException+
appendingSink in interface okhttp3.internal.io.FileSystemjava.io.FileNotFoundExceptionpublic void delete(java.io.File file) + throws java.io.IOException+
delete in interface okhttp3.internal.io.FileSystemjava.io.IOExceptionpublic boolean exists(java.io.File file)+
exists in interface okhttp3.internal.io.FileSystempublic long size(java.io.File file)+
size in interface okhttp3.internal.io.FileSystempublic void rename(java.io.File from, + java.io.File to) + throws java.io.IOException+
rename in interface okhttp3.internal.io.FileSystemjava.io.IOExceptionpublic void deleteContents(java.io.File directory) + throws java.io.IOException+
deleteContents in interface okhttp3.internal.io.FileSystemjava.io.IOExceptionCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/io/class-use/InMemoryFileSystem.html b/3.x/okhttp-testing-support/okhttp3/internal/io/class-use/InMemoryFileSystem.html new file mode 100644 index 000000000..4d607b383 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/class-use/InMemoryFileSystem.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/io/package-frame.html b/3.x/okhttp-testing-support/okhttp3/internal/io/package-frame.html new file mode 100644 index 000000000..20972f2d7 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| InMemoryFileSystem | +
+ A simple file system where all files are held in memory.
+ |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/io/package-tree.html b/3.x/okhttp-testing-support/okhttp3/internal/io/package-tree.html new file mode 100644 index 000000000..d6d0ccdc3 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/internal/io/package-use.html b/3.x/okhttp-testing-support/okhttp3/internal/io/package-use.html new file mode 100644 index 000000000..5a6a90bfc --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/package-frame.html b/3.x/okhttp-testing-support/okhttp3/package-frame.html new file mode 100644 index 000000000..895fe5c15 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/package-frame.html @@ -0,0 +1,31 @@ + + + + + + +| Class | +Description | +
|---|---|
| FakeDns | ++ |
| FakeProxySelector | ++ |
| FakeSSLSession | ++ |
| ForwardingRequestBody | ++ |
| ForwardingResponseBody | ++ |
| OkHttpClientTestRule | ++ |
| RecordingCookieJar | ++ |
| RecordingHostnameVerifier | ++ |
| TestUtil | ++ |
| UppercaseRequestInterceptor | +
+ Rewrites the request body sent to the server to be all uppercase.
+ |
+
| UppercaseResponseInterceptor | +
+ Rewrites the response body returned from the server to be all uppercase.
+ |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/package-tree.html b/3.x/okhttp-testing-support/okhttp3/package-tree.html new file mode 100644 index 000000000..7971c72d6 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/package-tree.html @@ -0,0 +1,161 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/package-use.html b/3.x/okhttp-testing-support/okhttp3/package-use.html new file mode 100644 index 000000000..11a4313f8 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/package-use.html @@ -0,0 +1,162 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/InstallUncaughtExceptionHandlerListener.html b/3.x/okhttp-testing-support/okhttp3/testing/InstallUncaughtExceptionHandlerListener.html new file mode 100644 index 000000000..ed3af2e72 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/InstallUncaughtExceptionHandlerListener.html @@ -0,0 +1,343 @@ + + + + + + +public class InstallUncaughtExceptionHandlerListener
+extends org.junit.runner.notification.RunListener
+RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android. No exceptions
+ should escape from OkHttp that might cause apps to be killed or tests to fail on Android.org.junit.runner.notification.RunListener.ThreadSafe| Constructor and Description | +
|---|
InstallUncaughtExceptionHandlerListener() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+testRunFinished(org.junit.runner.Result result) |
+
void |
+testRunStarted(org.junit.runner.Description description) |
+
void |
+testStarted(org.junit.runner.Description description) |
+
testAssumptionFailure, testFailure, testFinished, testIgnoredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic InstallUncaughtExceptionHandlerListener()+
public void testRunStarted(org.junit.runner.Description description)+
testRunStarted in class org.junit.runner.notification.RunListenerpublic void testStarted(org.junit.runner.Description description)+
testStarted in class org.junit.runner.notification.RunListenerpublic void testRunFinished(org.junit.runner.Result result) + throws java.lang.Exception+
testRunFinished in class org.junit.runner.notification.RunListenerjava.lang.ExceptionCopyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/RecordingHostnameVerifier.html b/3.x/okhttp-testing-support/okhttp3/testing/RecordingHostnameVerifier.html new file mode 100644 index 000000000..167d86d43 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/RecordingHostnameVerifier.html @@ -0,0 +1,320 @@ + + + + + + +public final class RecordingHostnameVerifier +extends Object +implements HostnameVerifier+
| Modifier and Type | +Field and Description | +
|---|---|
List<String> |
+calls |
+
| Constructor and Description | +
|---|
RecordingHostnameVerifier() |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+verify(String hostname,
+ SSLSession session) |
+
public RecordingHostnameVerifier()+
public boolean verify(String hostname, + SSLSession session)+
verify in interface HostnameVerifierCopyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/class-use/InstallUncaughtExceptionHandlerListener.html b/3.x/okhttp-testing-support/okhttp3/testing/class-use/InstallUncaughtExceptionHandlerListener.html new file mode 100644 index 000000000..c847387fc --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/class-use/InstallUncaughtExceptionHandlerListener.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/class-use/RecordingHostnameVerifier.html b/3.x/okhttp-testing-support/okhttp3/testing/class-use/RecordingHostnameVerifier.html new file mode 100644 index 000000000..2da95c403 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/class-use/RecordingHostnameVerifier.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/package-frame.html b/3.x/okhttp-testing-support/okhttp3/testing/package-frame.html new file mode 100644 index 000000000..b193e24ec --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| InstallUncaughtExceptionHandlerListener | +
+ A
+RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android. |
+
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/package-tree.html b/3.x/okhttp-testing-support/okhttp3/testing/package-tree.html new file mode 100644 index 000000000..2adc5a6b3 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/okhttp3/testing/package-use.html b/3.x/okhttp-testing-support/okhttp3/testing/package-use.html new file mode 100644 index 000000000..fb54201d7 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/overview-frame.html b/3.x/okhttp-testing-support/overview-frame.html new file mode 100644 index 000000000..2ae06f6c4 --- /dev/null +++ b/3.x/okhttp-testing-support/overview-frame.html @@ -0,0 +1,25 @@ + + + + + + ++ + diff --git a/3.x/okhttp-testing-support/overview-summary.html b/3.x/okhttp-testing-support/overview-summary.html new file mode 100644 index 000000000..57f395a72 --- /dev/null +++ b/3.x/okhttp-testing-support/overview-summary.html @@ -0,0 +1,152 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| okhttp3.internal.duplex | ++ |
| okhttp3.internal.io | ++ |
| okhttp3.testing | ++ |
Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/overview-tree.html b/3.x/okhttp-testing-support/overview-tree.html new file mode 100644 index 000000000..b5c5c8f12 --- /dev/null +++ b/3.x/okhttp-testing-support/overview-tree.html @@ -0,0 +1,171 @@ + + + + + + +Copyright © 2019. All Rights Reserved.
+ + diff --git a/3.x/okhttp-testing-support/package-list b/3.x/okhttp-testing-support/package-list new file mode 100644 index 000000000..32f0d229f --- /dev/null +++ b/3.x/okhttp-testing-support/package-list @@ -0,0 +1,4 @@ +okhttp3 +okhttp3.internal.duplex +okhttp3.internal.io +okhttp3.testing diff --git a/3.x/okhttp-testing-support/script.js b/3.x/okhttp-testing-support/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-testing-support/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-testing-support/stylesheet.css b/3.x/okhttp-testing-support/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-testing-support/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-testing-support/version.txt b/3.x/okhttp-testing-support/version.txt new file mode 100644 index 000000000..c47b34584 --- /dev/null +++ b/3.x/okhttp-testing-support/version.txt @@ -0,0 +1 @@ +3.14.2 \ No newline at end of file diff --git a/3.x/okhttp-tls/META-INF/MANIFEST.MF b/3.x/okhttp-tls/META-INF/MANIFEST.MF new file mode 100644 index 000000000..b5547a843 --- /dev/null +++ b/3.x/okhttp-tls/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_202 + diff --git a/3.x/okhttp-tls/allclasses-frame.html b/3.x/okhttp-tls/allclasses-frame.html new file mode 100644 index 000000000..49120cde2 --- /dev/null +++ b/3.x/okhttp-tls/allclasses-frame.html @@ -0,0 +1,23 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/deprecated-list.html b/3.x/okhttp-tls/deprecated-list.html new file mode 100644 index 000000000..fdc365673 --- /dev/null +++ b/3.x/okhttp-tls/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/help-doc.html b/3.x/okhttp-tls/help-doc.html new file mode 100644 index 000000000..74859570e --- /dev/null +++ b/3.x/okhttp-tls/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/index-all.html b/3.x/okhttp-tls/index-all.html new file mode 100644 index 000000000..f8b58f5fc --- /dev/null +++ b/3.x/okhttp-tls/index-all.html @@ -0,0 +1,321 @@ + + + + + + +maxIntermediateCas
+ intermediate signing certificates beneath it.[notBefore..notAfter].Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/index.html b/3.x/okhttp-tls/index.html new file mode 100644 index 000000000..20256b647 --- /dev/null +++ b/3.x/okhttp-tls/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public static final class HandshakeCertificates.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
HandshakeCertificates.Builder |
+addPlatformTrustedCertificates()
+Add all of the host platform's trusted root certificates.
+ |
+
HandshakeCertificates.Builder |
+addTrustedCertificate(X509Certificate certificate)
+Add a trusted root certificate to use when authenticating a peer.
+ |
+
HandshakeCertificates |
+build() |
+
HandshakeCertificates.Builder |
+heldCertificate(HeldCertificate heldCertificate,
+ X509Certificate... intermediates)
+Configure the certificate chain to use when being authenticated.
+ |
+
public HandshakeCertificates.Builder heldCertificate(HeldCertificate heldCertificate, + X509Certificate... intermediates)+
The chain should include all intermediate certificates but does not need the root + certificate that we expect to be known by the remote peer. The peer already has that + certificate so transmitting it is unnecessary.
public HandshakeCertificates.Builder addTrustedCertificate(X509Certificate certificate)+
public HandshakeCertificates.Builder addPlatformTrustedCertificates()+
Most TLS clients that connect to hosts on the public Internet should call this method. + Otherwise it is necessary to manually prepare a comprehensive set of trusted roots. + +
If the host platform is compromised or misconfigured this may contain untrustworthy root + certificates. Applications that connect to a known set of servers may be able to mitigate + this problem with certificate pinning.
public HandshakeCertificates build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/HandshakeCertificates.html b/3.x/okhttp-tls/okhttp3/tls/HandshakeCertificates.html new file mode 100644 index 000000000..9e3fad7d5 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/HandshakeCertificates.html @@ -0,0 +1,335 @@ + + + + + + +public final class HandshakeCertificates +extends Object+
This is the most common form of TLS authentication: clients verify that servers are trusted + and that they own the hostnames that they represent. Server authentication is required. + +
To perform server authentication: + +
This is authentication of the client by the server during the TLS handshake. Client + authentication is optional. + +
To perform client authentication: + +
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HandshakeCertificates.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
X509KeyManager |
+keyManager() |
+
SSLContext |
+sslContext() |
+
SSLSocketFactory |
+sslSocketFactory() |
+
X509TrustManager |
+trustManager() |
+
public X509KeyManager keyManager()+
public X509TrustManager trustManager()+
public SSLSocketFactory sslSocketFactory()+
public SSLContext sslContext()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/HeldCertificate.Builder.html b/3.x/okhttp-tls/okhttp3/tls/HeldCertificate.Builder.html new file mode 100644 index 000000000..c19b640f6 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/HeldCertificate.Builder.html @@ -0,0 +1,515 @@ + + + + + + +public static final class HeldCertificate.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate.Builder |
+addSubjectAlternativeName(String altName)
+Adds a subject alternative name (SAN) to the certificate.
+ |
+
HeldCertificate |
+build() |
+
HeldCertificate.Builder |
+certificateAuthority(int maxIntermediateCas)
+Set this certificate to be a signing certificate, with up to
+maxIntermediateCas
+ intermediate signing certificates beneath it. |
+
HeldCertificate.Builder |
+commonName(String cn)
+Set this certificate's common name (CN).
+ |
+
HeldCertificate.Builder |
+duration(long duration,
+ TimeUnit unit)
+Sets the certificate to be valid immediately and until the specified duration has elapsed.
+ |
+
HeldCertificate.Builder |
+ecdsa256()
+Configure the certificate to generate a 256-bit ECDSA key, which provides about 128 bits of
+ security.
+ |
+
HeldCertificate.Builder |
+keyPair(KeyPair keyPair)
+Sets the public/private key pair used for this certificate.
+ |
+
HeldCertificate.Builder |
+keyPair(PublicKey publicKey,
+ PrivateKey privateKey)
+Sets the public/private key pair used for this certificate.
+ |
+
HeldCertificate.Builder |
+organizationalUnit(String ou)
+Sets the certificate's organizational unit (OU).
+ |
+
HeldCertificate.Builder |
+rsa2048()
+Configure the certificate to generate a 2048-bit RSA key, which provides about 112 bits of
+ security.
+ |
+
HeldCertificate.Builder |
+serialNumber(BigInteger serialNumber)
+Sets this certificate's serial number.
+ |
+
HeldCertificate.Builder |
+serialNumber(long serialNumber)
+Sets this certificate's serial number.
+ |
+
HeldCertificate.Builder |
+signedBy(HeldCertificate signedBy)
+Set the certificate that will issue this certificate.
+ |
+
HeldCertificate.Builder |
+validityInterval(long notBefore,
+ long notAfter)
+Sets the certificate to be valid in
+[notBefore..notAfter]. |
+
public HeldCertificate.Builder validityInterval(long notBefore, + long notAfter)+
[notBefore..notAfter]. Both endpoints are
+ specified in the format of System.currentTimeMillis(). Specify -1L for both values
+ to use the default interval, 24 hours starting when the certificate is created.public HeldCertificate.Builder duration(long duration, + TimeUnit unit)+
public HeldCertificate.Builder addSubjectAlternativeName(String altName)+
public HeldCertificate.Builder commonName(String cn)+
subject alternative names. If unset a random string will
+ be used.public HeldCertificate.Builder organizationalUnit(String ou)+
public HeldCertificate.Builder serialNumber(BigInteger serialNumber)+
public HeldCertificate.Builder serialNumber(long serialNumber)+
public HeldCertificate.Builder keyPair(KeyPair keyPair)+
public HeldCertificate.Builder keyPair(PublicKey publicKey, + PrivateKey privateKey)+
public HeldCertificate.Builder signedBy(HeldCertificate signedBy)+
public HeldCertificate.Builder certificateAuthority(int maxIntermediateCas)+
maxIntermediateCas
+ intermediate signing certificates beneath it.
+
+ By default this certificate cannot not sign other certificates. Set this to 0 so this + certificate can sign other certificates (but those certificates cannot themselves sign + certificates). Set this to 1 so this certificate can sign intermediate certificates that can + themselves sign certificates. Add one for each additional layer of intermediates to permit.
public HeldCertificate.Builder ecdsa256()+
This is the default configuration and has been since this API was introduced in OkHttp + 3.11.0. Note that the default may change in future releases.
public HeldCertificate.Builder rsa2048()+
public HeldCertificate build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/HeldCertificate.html b/3.x/okhttp-tls/okhttp3/tls/HeldCertificate.html new file mode 100644 index 000000000..3779b1bba --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/HeldCertificate.html @@ -0,0 +1,427 @@ + + + + + + +public final class HeldCertificate +extends Object+
squareup.com), a literal IP address (74.122.190.80), or a hostname pattern (*.api.squareup.com).
+ Certificates are signed by other certificates and a sequence of them is called a certificate + chain. The chain terminates in a self-signed "root" certificate. Signing certificates in the + middle of the chain are called "intermediates". Organizations that offer certificate signing are + called certificate authorities (CAs). + +
Browsers and other HTTP clients need a set of trusted root certificates to authenticate their + peers. Sets of root certificates are managed by either the HTTP client (like Firefox), or the + host platform (like Android). In July 2018 Android had 134 trusted root certificates for its HTTP + clients to trust. + +
For example, in order to establish a secure connection to https://www.squareup.com/,
+ these three certificates are used.
+
+ www.squareup.com certificate:
+
+ Common Name: www.squareup.com
+ Subject Alternative Names: www.squareup.com, squareup.com, account.squareup.com...
+ Validity: 2018-07-03T20:18:17Z – 2019-08-01T20:48:15Z
+ Public Key: d107beecc17325f55da976bcbab207ba4df68bd3f8fce7c3b5850311128264fd53e1baa342f58d93...
+ Signature: 1fb0e66fac05322721fe3a3917f7c98dee1729af39c99eab415f22d8347b508acdf0bab91781c3720...
+
+ signed by intermediate certificate:
+
+ Common Name: Entrust Certification Authority - L1M
+ Subject Alternative Names: none
+ Validity: 2014-12-15T15:25:03Z – 2030-10-15T15:55:03Z
+ Public Key: d081c13923c2b1d1ecf757dd55243691202248f7fcca520ab0ab3f33b5b08407f6df4e7ab0fb9822...
+ Signature: b487c784221a29c0a478ecf54f1bb484976f77eed4cf59afa843962f1d58dea6f3155b2ed9439c4c4...
+
+ signed by root certificate:
+
+ Common Name: Entrust Root Certification Authority - G2
+ Subject Alternative Names: none
+ Validity: 2009-07-07T17:25:54Z – 2030-12-07T17:55:54Z
+ Public Key: ba84b672db9e0c6be299e93001a776ea32b895411ac9da614e5872cffef68279bf7361060aa527d8...
+ Self-signed Signature: 799f1d96c6b6793f228d87d3870304606a6b9a2e59897311ac43d1f513ff8d392bc0f...
+
+
+
+ In this example the HTTP client already knows and trusts the last certificate, "Entrust Root + Certification Authority - G2". That certificate is used to verify the signature of the + intermediate certificate, "Entrust Certification Authority - L1M". The intermediate certificate + is used to verify the signature of the "www.squareup.com" certificate. + +
This roles are reversed for client authentication. In that case the client has a private key + and a chain of certificates. The server uses a set of trusted root certificates to authenticate + the client. Subject alternative names are not used for client authentication.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HeldCertificate.Builder
+Build a held certificate with reasonable defaults.
+ |
+
| Constructor and Description | +
|---|
HeldCertificate(KeyPair keyPair,
+ X509Certificate certificate) |
+
| Modifier and Type | +Method and Description | +
|---|---|
X509Certificate |
+certificate() |
+
String |
+certificatePem()
+Returns the certificate encoded in PEM
+ format.
+ |
+
KeyPair |
+keyPair() |
+
String |
+privateKeyPkcs1Pem()
+Returns the RSA private key encoded in PKCS
+ #1 PEM format.
+ |
+
String |
+privateKeyPkcs8Pem()
+Returns the RSA private key encoded in PKCS
+ #8 PEM format.
+ |
+
public HeldCertificate(KeyPair keyPair, + X509Certificate certificate)+
public X509Certificate certificate()+
public KeyPair keyPair()+
public String certificatePem()+
public String privateKeyPkcs8Pem()+
public String privateKeyPkcs1Pem()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/class-use/HandshakeCertificates.Builder.html b/3.x/okhttp-tls/okhttp3/tls/class-use/HandshakeCertificates.Builder.html new file mode 100644 index 000000000..72801744a --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/class-use/HandshakeCertificates.Builder.html @@ -0,0 +1,164 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HandshakeCertificates.Builder |
+HandshakeCertificates.Builder.addPlatformTrustedCertificates()
+Add all of the host platform's trusted root certificates.
+ |
+
HandshakeCertificates.Builder |
+HandshakeCertificates.Builder.addTrustedCertificate(X509Certificate certificate)
+Add a trusted root certificate to use when authenticating a peer.
+ |
+
HandshakeCertificates.Builder |
+HandshakeCertificates.Builder.heldCertificate(HeldCertificate heldCertificate,
+ X509Certificate... intermediates)
+Configure the certificate chain to use when being authenticated.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/class-use/HandshakeCertificates.html b/3.x/okhttp-tls/okhttp3/tls/class-use/HandshakeCertificates.html new file mode 100644 index 000000000..9dd5a0b41 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/class-use/HandshakeCertificates.html @@ -0,0 +1,149 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HandshakeCertificates |
+HandshakeCertificates.Builder.build() |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/class-use/HeldCertificate.Builder.html b/3.x/okhttp-tls/okhttp3/tls/class-use/HeldCertificate.Builder.html new file mode 100644 index 000000000..0d039f855 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/class-use/HeldCertificate.Builder.html @@ -0,0 +1,229 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate.Builder |
+HeldCertificate.Builder.addSubjectAlternativeName(String altName)
+Adds a subject alternative name (SAN) to the certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.certificateAuthority(int maxIntermediateCas)
+Set this certificate to be a signing certificate, with up to
+maxIntermediateCas
+ intermediate signing certificates beneath it. |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.commonName(String cn)
+Set this certificate's common name (CN).
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.duration(long duration,
+ TimeUnit unit)
+Sets the certificate to be valid immediately and until the specified duration has elapsed.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.ecdsa256()
+Configure the certificate to generate a 256-bit ECDSA key, which provides about 128 bits of
+ security.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.keyPair(KeyPair keyPair)
+Sets the public/private key pair used for this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.keyPair(PublicKey publicKey,
+ PrivateKey privateKey)
+Sets the public/private key pair used for this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.organizationalUnit(String ou)
+Sets the certificate's organizational unit (OU).
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.rsa2048()
+Configure the certificate to generate a 2048-bit RSA key, which provides about 112 bits of
+ security.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.serialNumber(BigInteger serialNumber)
+Sets this certificate's serial number.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.serialNumber(long serialNumber)
+Sets this certificate's serial number.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.signedBy(HeldCertificate signedBy)
+Set the certificate that will issue this certificate.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.validityInterval(long notBefore,
+ long notAfter)
+Sets the certificate to be valid in
+[notBefore..notAfter]. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/class-use/HeldCertificate.html b/3.x/okhttp-tls/okhttp3/tls/class-use/HeldCertificate.html new file mode 100644 index 000000000..2470c4878 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/class-use/HeldCertificate.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HeldCertificate |
+HeldCertificate.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
HandshakeCertificates.Builder |
+HandshakeCertificates.Builder.heldCertificate(HeldCertificate heldCertificate,
+ X509Certificate... intermediates)
+Configure the certificate chain to use when being authenticated.
+ |
+
HeldCertificate.Builder |
+HeldCertificate.Builder.signedBy(HeldCertificate signedBy)
+Set the certificate that will issue this certificate.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/internal/TlsUtil.html b/3.x/okhttp-tls/okhttp3/tls/internal/TlsUtil.html new file mode 100644 index 000000000..6ff1956ea --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/internal/TlsUtil.html @@ -0,0 +1,327 @@ + + + + + + +public final class TlsUtil +extends Object+
| Modifier and Type | +Field and Description | +
|---|---|
static char[] |
+password |
+
| Modifier and Type | +Method and Description | +
|---|---|
static HandshakeCertificates |
+localhost()
+Returns an SSL client for this host's localhost address.
+ |
+
static X509KeyManager |
+newKeyManager(String keyStoreType,
+ HeldCertificate heldCertificate,
+ X509Certificate... intermediates)
+Returns a key manager for the held certificate and its chain.
+ |
+
static X509TrustManager |
+newTrustManager(String keyStoreType,
+ List<X509Certificate> trustedCertificates)
+Returns a trust manager that trusts
+trustedCertificates. |
+
public static HandshakeCertificates localhost()+
public static X509TrustManager newTrustManager(String keyStoreType, + List<X509Certificate> trustedCertificates) + throws GeneralSecurityException+
trustedCertificates.GeneralSecurityExceptionpublic static X509KeyManager newKeyManager(String keyStoreType, + HeldCertificate heldCertificate, + X509Certificate... intermediates) + throws GeneralSecurityException+
heldCertificate is null.GeneralSecurityExceptionCopyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/internal/class-use/TlsUtil.html b/3.x/okhttp-tls/okhttp3/tls/internal/class-use/TlsUtil.html new file mode 100644 index 000000000..2db7c4323 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/internal/class-use/TlsUtil.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/internal/package-frame.html b/3.x/okhttp-tls/okhttp3/tls/internal/package-frame.html new file mode 100644 index 000000000..103ecc4d9 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/internal/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| TlsUtil | ++ |
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/internal/package-tree.html b/3.x/okhttp-tls/okhttp3/tls/internal/package-tree.html new file mode 100644 index 000000000..618161786 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/internal/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/internal/package-use.html b/3.x/okhttp-tls/okhttp3/tls/internal/package-use.html new file mode 100644 index 000000000..073f28004 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/internal/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/package-frame.html b/3.x/okhttp-tls/okhttp3/tls/package-frame.html new file mode 100644 index 000000000..5f11ffdce --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +| Class | +Description | +
|---|---|
| HandshakeCertificates | +
+ Certificates to identify which peers to trust and also to earn the trust of those peers in kind.
+ |
+
| HandshakeCertificates.Builder | ++ |
| HeldCertificate | +
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder | +
+ Build a held certificate with reasonable defaults.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/package-tree.html b/3.x/okhttp-tls/okhttp3/tls/package-tree.html new file mode 100644 index 000000000..ffbe1cbfe --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/package-tree.html @@ -0,0 +1,136 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/okhttp3/tls/package-use.html b/3.x/okhttp-tls/okhttp3/tls/package-use.html new file mode 100644 index 000000000..54bc5b9a2 --- /dev/null +++ b/3.x/okhttp-tls/okhttp3/tls/package-use.html @@ -0,0 +1,157 @@ + + + + + + +| Class and Description | +
|---|
| HandshakeCertificates
+ Certificates to identify which peers to trust and also to earn the trust of those peers in kind.
+ |
+
| HandshakeCertificates.Builder | +
| HeldCertificate
+ A certificate and its private key.
+ |
+
| HeldCertificate.Builder
+ Build a held certificate with reasonable defaults.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/overview-frame.html b/3.x/okhttp-tls/overview-frame.html new file mode 100644 index 000000000..c5a94e746 --- /dev/null +++ b/3.x/okhttp-tls/overview-frame.html @@ -0,0 +1,23 @@ + + + + + + ++ + diff --git a/3.x/okhttp-tls/overview-summary.html b/3.x/okhttp-tls/overview-summary.html new file mode 100644 index 000000000..735ace92a --- /dev/null +++ b/3.x/okhttp-tls/overview-summary.html @@ -0,0 +1,146 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3.tls | +
+ OkHttp Transport Layer Security (TLS) library.
+ |
+
| okhttp3.tls.internal | ++ |
Copyright © 2018. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/overview-tree.html b/3.x/okhttp-tls/overview-tree.html new file mode 100644 index 000000000..ced22e1ea --- /dev/null +++ b/3.x/okhttp-tls/overview-tree.html @@ -0,0 +1,140 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-tls/package-list b/3.x/okhttp-tls/package-list new file mode 100644 index 000000000..f353f2fbb --- /dev/null +++ b/3.x/okhttp-tls/package-list @@ -0,0 +1 @@ +okhttp3.tls diff --git a/3.x/okhttp-tls/script.js b/3.x/okhttp-tls/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-tls/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-tls/stylesheet.css b/3.x/okhttp-tls/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-tls/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-tls/version.txt b/3.x/okhttp-tls/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/okhttp-tls/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/okhttp-urlconnection/META-INF/MANIFEST.MF b/3.x/okhttp-urlconnection/META-INF/MANIFEST.MF new file mode 100644 index 000000000..b5547a843 --- /dev/null +++ b/3.x/okhttp-urlconnection/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_202 + diff --git a/3.x/okhttp-urlconnection/allclasses-frame.html b/3.x/okhttp-urlconnection/allclasses-frame.html new file mode 100644 index 000000000..cd1dbec80 --- /dev/null +++ b/3.x/okhttp-urlconnection/allclasses-frame.html @@ -0,0 +1,21 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/deprecated-list.html b/3.x/okhttp-urlconnection/deprecated-list.html new file mode 100644 index 000000000..872aee865 --- /dev/null +++ b/3.x/okhttp-urlconnection/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/help-doc.html b/3.x/okhttp-urlconnection/help-doc.html new file mode 100644 index 000000000..8b7c9cbca --- /dev/null +++ b/3.x/okhttp-urlconnection/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/index-all.html b/3.x/okhttp-urlconnection/index-all.html new file mode 100644 index 000000000..accd9ee12 --- /dev/null +++ b/3.x/okhttp-urlconnection/index-all.html @@ -0,0 +1,171 @@ + + + + + + +Authenticator to Authenticator.CookieHandler.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/index.html b/3.x/okhttp-urlconnection/index.html new file mode 100644 index 000000000..2501d18cb --- /dev/null +++ b/3.x/okhttp-urlconnection/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+@EverythingIsNonNull +public final class JavaNetAuthenticator +extends Object +implements Authenticator+
Authenticator to Authenticator. Configure OkHttp to use Authenticator with OkHttpClient.Builder.authenticator or OkHttpClient.Builder.proxyAuthenticator(Authenticator).NONE| Constructor and Description | +
|---|
JavaNetAuthenticator() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request |
+authenticate(Route route,
+ Response response) |
+
public Request authenticate(Route route, + Response response) + throws IOException+
authenticate in interface AuthenticatorIOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/JavaNetCookieJar.html b/3.x/okhttp-urlconnection/okhttp3/JavaNetCookieJar.html new file mode 100644 index 000000000..2ed7deae2 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/JavaNetCookieJar.html @@ -0,0 +1,316 @@ + + + + + + +@EverythingIsNonNull +public final class JavaNetCookieJar +extends Object +implements CookieJar+
CookieHandler.NO_COOKIES| Constructor and Description | +
|---|
JavaNetCookieJar(CookieHandler cookieHandler) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Cookie> |
+loadForRequest(HttpUrl url) |
+
void |
+saveFromResponse(HttpUrl url,
+ List<Cookie> cookies) |
+
public JavaNetCookieJar(CookieHandler cookieHandler)+
public void saveFromResponse(HttpUrl url, + List<Cookie> cookies)+
saveFromResponse in interface CookieJarpublic List<Cookie> loadForRequest(HttpUrl url)+
loadForRequest in interface CookieJarCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/OkUrlFactory.html b/3.x/okhttp-urlconnection/okhttp3/OkUrlFactory.html new file mode 100644 index 000000000..4b202aa2e --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/OkUrlFactory.html @@ -0,0 +1,373 @@ + + + + + + +HttpURLConnection in an
+ upcoming release. Applications that need this should either downgrade to the system's built-in
+ HttpURLConnection or upgrade to OkHttp's Request/Response API.@EverythingIsNonNull +public final class OkUrlFactory +extends Object +implements URLStreamHandlerFactory, Cloneable+
| Constructor and Description | +
|---|
OkUrlFactory(OkHttpClient client)
+Deprecated.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+client()
+Deprecated.
+ |
+
OkUrlFactory |
+clone()
+Deprecated.
+Returns a copy of this stream handler factory that includes a shallow copy of the internal
+ HTTP client.
+ |
+
URLStreamHandler |
+createURLStreamHandler(String protocol)
+Deprecated.
+Creates a URLStreamHandler as a
+URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory). |
+
HttpURLConnection |
+open(URL url)
+Deprecated.
+ |
+
OkUrlFactory |
+setClient(OkHttpClient client)
+Deprecated.
+ |
+
public OkUrlFactory(OkHttpClient client)+
public OkHttpClient client()+
public OkUrlFactory setClient(OkHttpClient client)+
public OkUrlFactory clone()+
public HttpURLConnection open(URL url)+
public URLStreamHandler createURLStreamHandler(String protocol)+
URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).
+
+ This code configures OkHttp to handle all HTTP and HTTPS connections
+ created with URL.openConnection():
+
+ OkHttpClient okHttpClient = new OkHttpClient();
+ URL.setURLStreamHandlerFactory(new OkUrlFactory(okHttpClient));
+ createURLStreamHandler in interface URLStreamHandlerFactoryCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetAuthenticator.html b/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetAuthenticator.html new file mode 100644 index 000000000..8150566f2 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetAuthenticator.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetCookieJar.html b/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetCookieJar.html new file mode 100644 index 000000000..187d1d8c8 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetCookieJar.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/class-use/OkUrlFactory.html b/3.x/okhttp-urlconnection/okhttp3/class-use/OkUrlFactory.html new file mode 100644 index 000000000..33a53c4ab --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/class-use/OkUrlFactory.html @@ -0,0 +1,159 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkUrlFactory |
+OkUrlFactory.clone()
+Deprecated.
+Returns a copy of this stream handler factory that includes a shallow copy of the internal
+ HTTP client.
+ |
+
OkUrlFactory |
+OkUrlFactory.setClient(OkHttpClient client)
+Deprecated.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/JavaNetCookieJar.html b/3.x/okhttp-urlconnection/okhttp3/internal/JavaNetCookieJar.html new file mode 100644 index 000000000..1d792b314 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/JavaNetCookieJar.html @@ -0,0 +1,317 @@ + + + + + + +public final class JavaNetCookieJar +extends Object +implements CookieJar+
CookieHandler.NO_COOKIES| Constructor and Description | +
|---|
JavaNetCookieJar(CookieHandler cookieHandler) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Cookie> |
+loadForRequest(HttpUrl url) |
+
void |
+saveFromResponse(HttpUrl url,
+ List<Cookie> cookies) |
+
public JavaNetCookieJar(CookieHandler cookieHandler)+
public void saveFromResponse(HttpUrl url, + List<Cookie> cookies)+
saveFromResponse in interface CookieJarpublic List<Cookie> loadForRequest(HttpUrl url)+
loadForRequest in interface CookieJarCopyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/JavaNetHeaders.html b/3.x/okhttp-urlconnection/okhttp3/internal/JavaNetHeaders.html new file mode 100644 index 000000000..2ff89b6b3 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/JavaNetHeaders.html @@ -0,0 +1,249 @@ + + + + + + +public final class JavaNetHeaders +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
static Map<String,List<String>> |
+toMultimap(Headers headers,
+ String valueForNullKey)
+Returns an immutable map containing each field to its list of values.
+ |
+
public static Map<String,List<String>> toMultimap(Headers headers, + String valueForNullKey)+
valueForNullKey - the request line for requests, or the status line for responses. If
+ non-null, this value is mapped to the null key.Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/SystemPropertiesConnectionPool.html b/3.x/okhttp-urlconnection/okhttp3/internal/SystemPropertiesConnectionPool.html new file mode 100644 index 000000000..8cf0fd777 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/SystemPropertiesConnectionPool.html @@ -0,0 +1,255 @@ + + + + + + +public final class SystemPropertiesConnectionPool +extends Object+
http.keepAlive true if HTTP and SPDY connections should be pooled at all. Default
+ is true.
+ http.maxConnections maximum number of idle connections to each to keep in the
+ pool. Default is 5.
+ http.keepAliveDuration Time in milliseconds to keep the connection alive in the
+ pool before closing it. Default is 5 minutes. This property isn't used by HttpURLConnection.
+ The default instance doesn't adjust its configuration as system properties are changed. + This assumes that the applications that set these parameters do so before making HTTP + connections, and that this class is initialized lazily.
| Modifier and Type | +Field and Description | +
|---|---|
static ConnectionPool |
+INSTANCE |
+
public static final ConnectionPool INSTANCE+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/class-use/JavaNetCookieJar.html b/3.x/okhttp-urlconnection/okhttp3/internal/class-use/JavaNetCookieJar.html new file mode 100644 index 000000000..ce4474495 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/class-use/JavaNetCookieJar.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/class-use/JavaNetHeaders.html b/3.x/okhttp-urlconnection/okhttp3/internal/class-use/JavaNetHeaders.html new file mode 100644 index 000000000..8aecc5f92 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/class-use/JavaNetHeaders.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/class-use/SystemPropertiesConnectionPool.html b/3.x/okhttp-urlconnection/okhttp3/internal/class-use/SystemPropertiesConnectionPool.html new file mode 100644 index 000000000..6ad825345 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/class-use/SystemPropertiesConnectionPool.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/package-frame.html b/3.x/okhttp-urlconnection/okhttp3/internal/package-frame.html new file mode 100644 index 000000000..570369376 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +| Class | +Description | +
|---|---|
| JavaNetCookieJar | +
+ A cookie jar that delegates to a
+CookieHandler. |
+
| JavaNetHeaders | ++ |
| SystemPropertiesConnectionPool | +
+ A shared connection pool that uses system properties for tuning parameters:
+
+
+
+http.keepAlive true if HTTP and SPDY connections should be pooled at all. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/package-tree.html b/3.x/okhttp-urlconnection/okhttp3/internal/package-tree.html new file mode 100644 index 000000000..4379a0609 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/package-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/internal/package-use.html b/3.x/okhttp-urlconnection/okhttp3/internal/package-use.html new file mode 100644 index 000000000..6f6f02fef --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/internal/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/package-frame.html b/3.x/okhttp-urlconnection/okhttp3/package-frame.html new file mode 100644 index 000000000..2ca8a76dd --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +| Class | +Description | +
|---|---|
| JavaNetAuthenticator | +
+ Adapts
+Authenticator to Authenticator. |
+
| JavaNetCookieJar | +
+ A cookie jar that delegates to a
+CookieHandler. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/package-tree.html b/3.x/okhttp-urlconnection/okhttp3/package-tree.html new file mode 100644 index 000000000..6720e11ff --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/package-tree.html @@ -0,0 +1,134 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/okhttp3/package-use.html b/3.x/okhttp-urlconnection/okhttp3/package-use.html new file mode 100644 index 000000000..ff2285344 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/overview-frame.html b/3.x/okhttp-urlconnection/overview-frame.html new file mode 100644 index 000000000..2a7b8d49f --- /dev/null +++ b/3.x/okhttp-urlconnection/overview-frame.html @@ -0,0 +1,23 @@ + + + + + + ++ + diff --git a/3.x/okhttp-urlconnection/overview-summary.html b/3.x/okhttp-urlconnection/overview-summary.html new file mode 100644 index 000000000..8fcda2f0b --- /dev/null +++ b/3.x/okhttp-urlconnection/overview-summary.html @@ -0,0 +1,144 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| okhttp3.internal | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-urlconnection/overview-tree.html b/3.x/okhttp-urlconnection/overview-tree.html new file mode 100644 index 000000000..c3b9fe089 --- /dev/null +++ b/3.x/okhttp-urlconnection/overview-tree.html @@ -0,0 +1,138 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp-urlconnection/package-list b/3.x/okhttp-urlconnection/package-list new file mode 100644 index 000000000..80c510a07 --- /dev/null +++ b/3.x/okhttp-urlconnection/package-list @@ -0,0 +1 @@ +okhttp3 diff --git a/3.x/okhttp-urlconnection/script.js b/3.x/okhttp-urlconnection/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-urlconnection/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-urlconnection/stylesheet.css b/3.x/okhttp-urlconnection/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-urlconnection/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-urlconnection/version.txt b/3.x/okhttp-urlconnection/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/okhttp-urlconnection/version.txt @@ -0,0 +1 @@ +3.14.0 diff --git a/3.x/okhttp-ws/META-INF/MANIFEST.MF b/3.x/okhttp-ws/META-INF/MANIFEST.MF new file mode 100644 index 000000000..0dc2d8902 --- /dev/null +++ b/3.x/okhttp-ws/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_92 + diff --git a/3.x/okhttp-ws/allclasses-frame.html b/3.x/okhttp-ws/allclasses-frame.html new file mode 100644 index 000000000..4484db9eb --- /dev/null +++ b/3.x/okhttp-ws/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/deprecated-list.html b/3.x/okhttp-ws/deprecated-list.html new file mode 100644 index 000000000..913b4128b --- /dev/null +++ b/3.x/okhttp-ws/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/help-doc.html b/3.x/okhttp-ws/help-doc.html new file mode 100644 index 000000000..baccda995 --- /dev/null +++ b/3.x/okhttp-ws/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/index-all.html b/3.x/okhttp-ws/index-all.html new file mode 100644 index 000000000..fd396f4a4 --- /dev/null +++ b/3.x/okhttp-ws/index-all.html @@ -0,0 +1,227 @@ + + + + + + +MediaType indicating binary frames should be used when sending the message.request to create a web socket at some point in the future.MediaType indicating UTF-8 text frames should be used when sending the message.WebSocket.Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/index.html b/3.x/okhttp-ws/index.html new file mode 100644 index 000000000..8333bd1ad --- /dev/null +++ b/3.x/okhttp-ws/index.html @@ -0,0 +1,72 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public interface WebSocket
+| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+BINARY
+A
+MediaType indicating binary frames should be used when sending the message. |
+
static MediaType |
+TEXT
+A
+MediaType indicating UTF-8 text frames should be used when sending the message. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close(int code,
+ String reason)
+Send a close frame to the server.
+ |
+
void |
+sendMessage(RequestBody message)
+Send a message payload to the server.
+ |
+
void |
+sendPing(okio.Buffer payload)
+Send a ping to the server with optional payload.
+ |
+
static final MediaType TEXT+
MediaType indicating UTF-8 text frames should be used when sending the message.void sendMessage(RequestBody message) + throws IOException+
The content type of message should be either
+ TEXT or BINARY.
IOException - if unable to write the message. Clients must call close(int, java.lang.String) when this
+ happens to ensure resources are cleaned up.IllegalStateException - if not connected, already closed, or another writer is active.void sendPing(okio.Buffer payload) + throws IOException+
IOException - if unable to write the ping. Clients must call close(int, java.lang.String) when this
+ happens to ensure resources are cleaned up.IllegalStateException - if already closed.void close(int code, + String reason) + throws IOException+
The corresponding WebSocketListener will continue to get messages until its onClose() method is called.
+
+
It is an error to call this method before calling close on an active writer. Calling this + method more than once has no effect.
IOException - if unable to write the close message. Resources will still be freed.IllegalStateException - if already closed.Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/WebSocketCall.html b/3.x/okhttp-ws/okhttp3/ws/WebSocketCall.html new file mode 100644 index 000000000..ac169cbde --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/WebSocketCall.html @@ -0,0 +1,285 @@ + + + + + + +public final class WebSocketCall +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Cancels the request, if possible.
+ |
+
static WebSocketCall |
+create(OkHttpClient client,
+ Request request)
+Prepares the
+request to create a web socket at some point in the future. |
+
void |
+enqueue(WebSocketListener listener)
+Schedules the request to be executed at some point in the future.
+ |
+
public static WebSocketCall create(OkHttpClient client, + Request request)+
request to create a web socket at some point in the future.public void enqueue(WebSocketListener listener)+
The dispatcher defines when the request will run: usually
+ immediately unless there are several other requests currently being executed.
+
+
This client will later call back responseCallback with either an HTTP response or a
+ failure exception. If you cancel() a request before it completes the callback will not
+ be invoked.
IllegalStateException - when the call has already been executed.public void cancel()+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/WebSocketListener.html b/3.x/okhttp-ws/okhttp3/ws/WebSocketListener.html new file mode 100644 index 000000000..baee6d1a9 --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/WebSocketListener.html @@ -0,0 +1,323 @@ + + + + + + +public interface WebSocketListener
+WebSocket.| Modifier and Type | +Method and Description | +
|---|---|
void |
+onClose(int code,
+ String reason)
+Called when the server sends a close message.
+ |
+
void |
+onFailure(IOException e,
+ Response response)
+Called when the transport or protocol layer of this web socket errors during communication.
+ |
+
void |
+onMessage(ResponseBody message)
+Called when a server message is received.
+ |
+
void |
+onOpen(WebSocket webSocket,
+ Response response)
+Called when the request has successfully been upgraded to a web socket.
+ |
+
void |
+onPong(okio.Buffer payload)
+Called when a server pong is received.
+ |
+
void onOpen(WebSocket webSocket, + Response response)+
close callbacks start.
+
+ Do not use this callback to write to the web socket. Start a new thread or use + another thread in your application.
void onFailure(IOException e, + Response response)+
response - Present when the failure is a direct result of the response (e.g., failed
+ upgrade, non-101 response code, etc.). null otherwise.void onMessage(ResponseBody message) + throws IOException+
type indicates whether the payload should be interpreted as UTF-8 text or binary data.
+
+ Implementations must call source.close() before returning. This
+ indicates completion of parsing the message payload and will consume any remaining bytes in the
+ message.
+
+
The content type of message will be either
+ WebSocket.TEXT or WebSocket.BINARY which indicates the format of the message.
IOExceptionvoid onPong(okio.Buffer payload)+
WebSocket.sendPing(Buffer) but might also be unsolicited.void onClose(int code, + String reason)+
close() or as an unprompted message from the server.code - The RFC-compliant
+ status code.reason - Reason for close or an empty string.Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocket.html b/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocket.html new file mode 100644 index 000000000..e72c66a6c --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocket.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+WebSocketListener.onOpen(WebSocket webSocket,
+ Response response)
+Called when the request has successfully been upgraded to a web socket.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocketCall.html b/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocketCall.html new file mode 100644 index 000000000..fcdadd8f4 --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocketCall.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static WebSocketCall |
+WebSocketCall.create(OkHttpClient client,
+ Request request)
+Prepares the
+request to create a web socket at some point in the future. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocketListener.html b/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocketListener.html new file mode 100644 index 000000000..a33e2fd5a --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/class-use/WebSocketListener.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+WebSocketCall.enqueue(WebSocketListener listener)
+Schedules the request to be executed at some point in the future.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/package-frame.html b/3.x/okhttp-ws/okhttp3/ws/package-frame.html new file mode 100644 index 000000000..614d35232 --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +| Interface | +Description | +
|---|---|
| WebSocket | +
+ Blocking interface to connect and write to a web socket.
+ |
+
| WebSocketListener | +
+ Listener for server-initiated messages on a connected
+WebSocket. |
+
| Class | +Description | +
|---|---|
| WebSocketCall | ++ |
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/package-tree.html b/3.x/okhttp-ws/okhttp3/ws/package-tree.html new file mode 100644 index 000000000..e57bb9e99 --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/package-tree.html @@ -0,0 +1,138 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/okhttp3/ws/package-use.html b/3.x/okhttp-ws/okhttp3/ws/package-use.html new file mode 100644 index 000000000..f70fd9a12 --- /dev/null +++ b/3.x/okhttp-ws/okhttp3/ws/package-use.html @@ -0,0 +1,152 @@ + + + + + + +| Class and Description | +
|---|
| WebSocket
+ Blocking interface to connect and write to a web socket.
+ |
+
| WebSocketCall | +
| WebSocketListener
+ Listener for server-initiated messages on a connected
+WebSocket. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/overview-tree.html b/3.x/okhttp-ws/overview-tree.html new file mode 100644 index 000000000..2523af289 --- /dev/null +++ b/3.x/okhttp-ws/overview-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp-ws/package-list b/3.x/okhttp-ws/package-list new file mode 100644 index 000000000..ac850988d --- /dev/null +++ b/3.x/okhttp-ws/package-list @@ -0,0 +1 @@ +okhttp3.ws diff --git a/3.x/okhttp-ws/script.js b/3.x/okhttp-ws/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp-ws/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp-ws/stylesheet.css b/3.x/okhttp-ws/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp-ws/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp-ws/version.txt b/3.x/okhttp-ws/version.txt new file mode 100644 index 000000000..a423d4217 --- /dev/null +++ b/3.x/okhttp-ws/version.txt @@ -0,0 +1 @@ +3.4.2 \ No newline at end of file diff --git a/3.x/okhttp/META-INF/MANIFEST.MF b/3.x/okhttp/META-INF/MANIFEST.MF new file mode 100644 index 000000000..b5547a843 --- /dev/null +++ b/3.x/okhttp/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: jwilson +Created-By: Apache Maven 3.6.0 +Build-Jdk: 1.8.0_202 + diff --git a/3.x/okhttp/allclasses-frame.html b/3.x/okhttp/allclasses-frame.html new file mode 100644 index 000000000..6dc76ad87 --- /dev/null +++ b/3.x/okhttp/allclasses-frame.html @@ -0,0 +1,70 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/deprecated-list.html b/3.x/okhttp/deprecated-list.html new file mode 100644 index 000000000..c7098a24c --- /dev/null +++ b/3.x/okhttp/deprecated-list.html @@ -0,0 +1,183 @@ + + + + + + +| Method and Description | +
|---|
| okhttp3.CertificatePinner.check(String, Certificate...)
+ replaced with
+CertificatePinner.check(String, List). |
+
okhttp3.OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory)
+SSLSocketFactory does not expose its X509TrustManager, which is
+ a field that OkHttp needs to build a clean certificate chain. This method instead must
+ use reflection to extract the trust manager. Applications should prefer to call OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory, X509TrustManager), which avoids such reflection. |
+
| okhttp3.ConnectionSpec.Builder.supportsTlsExtensions(boolean)
+ since OkHttp 3.13 all TLS-connections are expected to support TLS extensions.
+ In a future release setting this to true will be unnecessary and setting it to false will
+ have no effect.
+ |
+
| Enum Constant and Description | +
|---|
| okhttp3.Protocol.SPDY_3
+ OkHttp has dropped support for SPDY. Prefer
+Protocol.HTTP_2. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/help-doc.html b/3.x/okhttp/help-doc.html new file mode 100644 index 000000000..ef8704359 --- /dev/null +++ b/3.x/okhttp/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/index-all.html b/3.x/okhttp/index-all.html new file mode 100644 index 000000000..ef7e4c8aa --- /dev/null +++ b/3.x/okhttp/index-all.html @@ -0,0 +1,2495 @@ + + + + + + +pattern.\ or /).name and value.name and value.\ or /).response.realm and charset if present, but as
+ strings.Callback.onResponse(okhttp3.Call, okhttp3.Response) or returned
+ from Call.execute().maxSize bytes in directory.Cache-Control header, replacing any cache control headers already
+ present.Cache-Control request header.defaultValue if either this media type
+ doesn't specify a charset, of it its charset is unsupported by the current runtime.hostname is in peerCertificates.CertificatePinner.check(String, List).http: URLs.call.call.sink in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown.ResponseBody.bytes(), or ResponseBody.byteStream(), or
+ -1 if unknown.MultipartBody.type() and MultipartBody.boundary().EventListener for a particular Call.content.content.content.content.file.content.content.content.content.scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise."abc" for http://host/#abc.["a", "b", "c"] for the URL http://host/a/b/c.other is a Headers object with the same headers, with the same
+ casing, in the same order.System.currentTimeMillis()."abc" for http://host/#abc.build().get(name), but potentially faster.HttpUrl representing url.HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol.string.protocol.name to value.name to value.headers.headers.InetAddress.getAllByName(String).http or https.true if the socket, as currently configured, supports this connection spec.RequestBody.writeTo(okio.BufferedSink) and can be transmitted
+ at most once.url.hostname, in the order they will be attempted by OkHttp.url.maxStale.position.link from this URL,
+ or null if the resulting URL is not well-formed.request to be executed at some point in the future.request to connect a new web socket.Map.0x1) message has been received.0x2) message has been received.headers.Set-Cookie HTTP header value setCookie as a cookie.HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't.string, or null if string is not a well-formed media
+ type.["a", "b", "c"] for the URL http://host/a/b/c.byteCount bytes from the response body and returns them as a new response
+ body.certificate's public key.Protocol.HTTP_1_1 if no protocol
+ has been negotiated.Protocol.HTTP_1_1 or Protocol.HTTP_1_0.Proxy of this route.proxy is specified
+ explicitly."abc" for http://host/?abc.name decoded using UTF-8, or null if there is
+ no such query parameter.index.["a", "b"] for http://host/?a=apple&b=banana.index.name ordered by their appearance in this
+ URL.http://host/?a=apple&b=banana./....name on this builder.name on this builder.link from this URL, or null if
+ the resulting URL is not well-formed.cookies from an HTTP response to this store according to this jar's policy.Basic.text to be UTF-8 encoded and sent as a the data of a text (type
+ 0x1) message.bytes to be sent as a the data of a binary (type 0x2)
+ message.SSLSocketFactory does not expose its X509TrustManager, which is
+ a field that OkHttp needs to build a clean certificate chain. This method instead must
+ use reflection to extract the trust manager. Applications should prefer to call OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory, X509TrustManager), which avoids such reflection.InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses.tag to the request using Object.class as a key.tag to the request using type as a key.Object.class as a key, or null if no tag is attached with
+ that key.type as a key, or null if no tag is attached with that
+ key.HttpUrl.host() that is one level beneath the public
+ suffix by consulting the public suffix list.java.net.URI.java.net.URL.index.name.charset.sink.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/index.html b/3.x/okhttp/index.html new file mode 100644 index 000000000..e2277be33 --- /dev/null +++ b/3.x/okhttp/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public final class Address +extends Object+
HTTP requests that share the same Address may also share the same Connection.
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator proxyAuthenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner |
+certificatePinner()
+Returns this address's certificate pinner, or null if this is not an HTTPS address.
+ |
+
List<ConnectionSpec> |
+connectionSpecs() |
+
Dns |
+dns()
+Returns the service that will be used to resolve IP addresses for hostnames.
+ |
+
boolean |
+equals(Object other) |
+
int |
+hashCode() |
+
HostnameVerifier |
+hostnameVerifier()
+Returns the hostname verifier, or null if this is not an HTTPS address.
+ |
+
List<Protocol> |
+protocols()
+Returns the protocols the client supports.
+ |
+
Proxy |
+proxy()
+Returns this address's explicitly-specified HTTP proxy, or null to delegate to the proxy selector.
+ |
+
Authenticator |
+proxyAuthenticator()
+Returns the client's proxy authenticator.
+ |
+
ProxySelector |
+proxySelector()
+Returns this address's proxy selector.
+ |
+
SocketFactory |
+socketFactory()
+Returns the socket factory for new connections.
+ |
+
SSLSocketFactory |
+sslSocketFactory()
+Returns the SSL socket factory, or null if this is not an HTTPS address.
+ |
+
String |
+toString() |
+
HttpUrl |
+url()
+Returns a URL with the hostname and port of the origin server.
+ |
+
public Address(String uriHost, + int uriPort, + Dns dns, + SocketFactory socketFactory, + @Nullable + SSLSocketFactory sslSocketFactory, + @Nullable + HostnameVerifier hostnameVerifier, + @Nullable + CertificatePinner certificatePinner, + Authenticator proxyAuthenticator, + @Nullable + Proxy proxy, + List<Protocol> protocols, + List<ConnectionSpec> connectionSpecs, + ProxySelector proxySelector)+
public HttpUrl url()+
public Dns dns()+
public SocketFactory socketFactory()+
public Authenticator proxyAuthenticator()+
public List<Protocol> protocols()+
Protocol.HTTP_1_1.public List<ConnectionSpec> connectionSpecs()+
public ProxySelector proxySelector()+
@Nullable +public Proxy proxy()+
@Nullable +public SSLSocketFactory sslSocketFactory()+
@Nullable +public HostnameVerifier hostnameVerifier()+
@Nullable +public CertificatePinner certificatePinner()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Authenticator.html b/3.x/okhttp/okhttp3/Authenticator.html new file mode 100644 index 000000000..69661c1cc --- /dev/null +++ b/3.x/okhttp/okhttp3/Authenticator.html @@ -0,0 +1,349 @@ + + + + + + +public interface Authenticator
+To make HTTPS calls using an HTTP proxy server OkHttp must first negotiate a connection with + the proxy. This proxy connection is called a "TLS Tunnel" and is specified by RFC 2817. The HTTP CONNECT request that creates + this tunnel connection is special: it does not participate in any interceptors or event listeners. It doesn't include the motivating + request's HTTP headers or even its full URL; only the target server's hostname is sent to the + proxy. + +
Prior to sending any CONNECT request OkHttp always calls the proxy authenticator so that it
+ may prepare preemptive authentication. OkHttp will call authenticate(okhttp3.Route, okhttp3.Response) with a fake HTTP/1.1 407 Proxy Authentication Required response that has a Proxy-Authenticate:
+ OkHttp-Preemptive challenge. The proxy authenticator may return either either an authenticated
+ request, or null to connect without authentication.
+
+ for (Challenge challenge : response.challenges()) {
+ // If this is preemptive auth, use a preemptive credential.
+ if (challenge.scheme().equalsIgnoreCase("OkHttp-Preemptive")) {
+ return response.request().newBuilder()
+ .header("Proxy-Authorization", "secret")
+ .build();
+ }
+ }
+
+ return null; // Didn't find a preemptive auth scheme.
+
+
+ Implementations authenticate by returning a follow-up request that includes an authorization + header, or they may decline the challenge by returning null. In this case the unauthenticated + response will be returned to the caller that triggered it. + +
Implementations should check if the initial request already included an attempt to + authenticate. If so it is likely that further attempts will not be useful and the authenticator + should give up. + +
When reactive authentication is requested by an origin web server, the response code is 401 + and the implementation should respond with a new request that sets the "Authorization" header. +
+
+ if (response.request().header("Authorization") != null) {
+ return null; // Give up, we've already failed to authenticate.
+ }
+
+ String credential = Credentials.basic(...)
+ return response.request().newBuilder()
+ .header("Authorization", credential)
+ .build();
+
+
+ When reactive authentication is requested by a proxy server, the response code is 407 and the + implementation should respond with a new request that sets the "Proxy-Authorization" header. +
+
+ if (response.request().header("Proxy-Authorization") != null) {
+ return null; // Give up, we've already failed to authenticate.
+ }
+
+ String credential = Credentials.basic(...)
+ return response.request().newBuilder()
+ .header("Proxy-Authorization", credential)
+ .build();
+
+
+ The proxy authenticator may implement preemptive authentication, reactive authentication, or + both. + +
Applications may configure OkHttp with an authenticator for origin servers, or proxy servers, + or both.
| Modifier and Type | +Field and Description | +
|---|---|
static Authenticator |
+NONE
+An authenticator that knows no credentials and makes no attempt to authenticate.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request |
+authenticate(Route route,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication challenge in
+response. |
+
static final Authenticator NONE+
@Nullable +Request authenticate(@Nullable + Route route, + Response response) + throws IOException+
response. Returns null if the challenge cannot be satisfied.
+
+ The route is best effort, it currently may not always be provided even when logically + available. It may also not be provided when an authenticator is re-used manually in an + application interceptor, such as when implementing client-specific retries.
IOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Cache.html b/3.x/okhttp/okhttp3/Cache.html new file mode 100644 index 000000000..7046ac215 --- /dev/null +++ b/3.x/okhttp/okhttp3/Cache.html @@ -0,0 +1,628 @@ + + + + + + +public final class Cache +extends Object +implements Closeable, Flushable+
To measure cache effectiveness, this class tracks three statistics: +
GET. The server will then send either
+ the updated response if it has changed, or a short 'not modified' response if the client's copy
+ is still valid. Such responses increment both the network count and hit count.
+
+ The best way to improve the cache hit rate is by configuring the web server to return + cacheable responses. Although this client honors all HTTP/1.1 (RFC 7234) cache headers, it doesn't cache + partial responses. + +
In some situations, such as after a user clicks a 'refresh' button, it may be necessary to
+ skip the cache, and fetch data directly from the server. To force a full refresh, add the no-cache directive:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder().noCache().build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+
+
+ If it is only necessary to force a cached response to be validated by the server, use the more
+ efficient max-age=0 directive instead:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder()
+ .maxAge(0, TimeUnit.SECONDS)
+ .build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+
+
+ Sometimes you'll want to show resources if they are available immediately, but not otherwise.
+ This can be used so your application can show something while waiting for the latest data
+ to be downloaded. To restrict a request to locally-cached resources, add the only-if-cached directive:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder()
+ .onlyIfCached()
+ .build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+ Response forceCacheResponse = client.newCall(request).execute();
+ if (forceCacheResponse.code() != 504) {
+ // The resource was cached! Show it.
+ } else {
+ // The resource was not cached.
+ }
+
+ This technique works even better in situations where a stale response is better than no response.
+ To permit stale cached responses, use the max-stale directive with the maximum staleness
+ in seconds:
+
+ Request request = new Request.Builder()
+ .cacheControl(new CacheControl.Builder()
+ .maxStale(365, TimeUnit.DAYS)
+ .build())
+ .url("http://publicobject.com/helloworld.txt")
+ .build();
+
+
+ The CacheControl class can configure request caching directives and parse response
+ caching directives. It even offers convenient constants CacheControl.FORCE_NETWORK and
+ CacheControl.FORCE_CACHE that address the use cases above.
| Constructor and Description | +
|---|
Cache(File directory,
+ long maxSize)
+Create a cache of at most
+maxSize bytes in directory. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close() |
+
void |
+delete()
+Closes the cache and deletes all of its stored values.
+ |
+
File |
+directory() |
+
void |
+evictAll()
+Deletes all values stored in the cache.
+ |
+
void |
+flush() |
+
int |
+hitCount() |
+
void |
+initialize()
+Initialize the cache.
+ |
+
boolean |
+isClosed() |
+
static String |
+key(HttpUrl url) |
+
long |
+maxSize()
+Max size of the cache (in bytes).
+ |
+
int |
+networkCount() |
+
int |
+requestCount() |
+
long |
+size() |
+
Iterator<String> |
+urls()
+Returns an iterator over the URLs in this cache.
+ |
+
int |
+writeAbortCount() |
+
int |
+writeSuccessCount() |
+
public Cache(File directory, + long maxSize)+
maxSize bytes in directory.public void initialize() + throws IOException+
The initialization time may vary depending on the journal file size and the current actual + cache size. The application needs to be aware of calling this function during the + initialization phase and preferably in a background worker thread. + +
Note that if the application chooses to not call this method to initialize the cache. By + default, the okhttp will perform lazy initialization upon the first usage of the cache.
IOExceptionpublic void delete() + throws IOException+
IOExceptionpublic void evictAll() + throws IOException+
IOExceptionpublic Iterator<String> urls() + throws IOException+
ConcurrentModificationException, but if new responses are added while iterating, their URLs
+ will not be returned. If existing responses are evicted during iteration, they will be absent
+ (unless they were already returned).
+
+ The iterator supports Iterator.remove(). Removing a URL from the iterator evicts + the corresponding response from the cache. Use this to evict selected responses.
IOExceptionpublic int writeAbortCount()+
public int writeSuccessCount()+
public long size() + throws IOException+
IOExceptionpublic long maxSize()+
public void flush() + throws IOException+
flush in interface FlushableIOExceptionpublic void close() + throws IOException+
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic File directory()+
public boolean isClosed()+
public int networkCount()+
public int hitCount()+
public int requestCount()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/CacheControl.Builder.html b/3.x/okhttp/okhttp3/CacheControl.Builder.html new file mode 100644 index 000000000..36cb45ca6 --- /dev/null +++ b/3.x/okhttp/okhttp3/CacheControl.Builder.html @@ -0,0 +1,422 @@ + + + + + + +public static final class CacheControl.Builder +extends Object+
Cache-Control request header.| Modifier and Type | +Method and Description | +
|---|---|
CacheControl |
+build() |
+
CacheControl.Builder |
+immutable() |
+
CacheControl.Builder |
+maxAge(int maxAge,
+ TimeUnit timeUnit)
+Sets the maximum age of a cached response.
+ |
+
CacheControl.Builder |
+maxStale(int maxStale,
+ TimeUnit timeUnit)
+Accept cached responses that have exceeded their freshness lifetime by up to
+maxStale. |
+
CacheControl.Builder |
+minFresh(int minFresh,
+ TimeUnit timeUnit)
+Sets the minimum number of seconds that a response will continue to be fresh for.
+ |
+
CacheControl.Builder |
+noCache()
+Don't accept an unvalidated cached response.
+ |
+
CacheControl.Builder |
+noStore()
+Don't store the server's response in any cache.
+ |
+
CacheControl.Builder |
+noTransform()
+Don't accept a transformed response.
+ |
+
CacheControl.Builder |
+onlyIfCached()
+Only accept the response if it is in the cache.
+ |
+
public CacheControl.Builder noCache()+
public CacheControl.Builder noStore()+
public CacheControl.Builder maxAge(int maxAge, + TimeUnit timeUnit)+
maxAge, it will not be used and a network request will be made.maxAge - a non-negative integer. This is stored and transmitted with TimeUnit.SECONDS precision; finer precision will be lost.public CacheControl.Builder maxStale(int maxStale, + TimeUnit timeUnit)+
maxStale. If unspecified, stale cache responses will not be used.maxStale - a non-negative integer. This is stored and transmitted with TimeUnit.SECONDS precision; finer precision will be lost.public CacheControl.Builder minFresh(int minFresh, + TimeUnit timeUnit)+
minFresh have elapsed, the cached response will not be
+ used and a network request will be made.minFresh - a non-negative integer. This is stored and transmitted with TimeUnit.SECONDS precision; finer precision will be lost.public CacheControl.Builder onlyIfCached()+
504
+ Unsatisfiable Request response will be returned.public CacheControl.Builder noTransform()+
public CacheControl.Builder immutable()+
public CacheControl build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/CacheControl.html b/3.x/okhttp/okhttp3/CacheControl.html new file mode 100644 index 000000000..5b16dc67c --- /dev/null +++ b/3.x/okhttp/okhttp3/CacheControl.html @@ -0,0 +1,521 @@ + + + + + + +public final class CacheControl +extends Object+
See RFC 7234, 5.2.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+CacheControl.Builder
+Builds a
+Cache-Control request header. |
+
| Modifier and Type | +Field and Description | +
|---|---|
static CacheControl |
+FORCE_CACHE
+Cache control request directives that uses the cache only, even if the cached response is
+ stale.
+ |
+
static CacheControl |
+FORCE_NETWORK
+Cache control request directives that require network validation of responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+immutable() |
+
boolean |
+isPrivate() |
+
boolean |
+isPublic() |
+
int |
+maxAgeSeconds()
+The duration past the response's served date that it can be served without validation.
+ |
+
int |
+maxStaleSeconds() |
+
int |
+minFreshSeconds() |
+
boolean |
+mustRevalidate() |
+
boolean |
+noCache()
+In a response, this field's name "no-cache" is misleading.
+ |
+
boolean |
+noStore()
+If true, this response should not be cached.
+ |
+
boolean |
+noTransform() |
+
boolean |
+onlyIfCached()
+This field's name "only-if-cached" is misleading.
+ |
+
static CacheControl |
+parse(Headers headers)
+Returns the cache directives of
+headers. |
+
int |
+sMaxAgeSeconds()
+The "s-maxage" directive is the max age for shared caches.
+ |
+
String |
+toString() |
+
public static final CacheControl FORCE_NETWORK+
public static final CacheControl FORCE_CACHE+
504 Unsatisfiable Request.public boolean noCache()+
In a request, it means do not use a cache to satisfy the request.
public boolean noStore()+
public int maxAgeSeconds()+
public int sMaxAgeSeconds()+
public boolean isPrivate()+
public boolean isPublic()+
public boolean mustRevalidate()+
public int maxStaleSeconds()+
public int minFreshSeconds()+
public boolean onlyIfCached()+
public boolean noTransform()+
public boolean immutable()+
public static CacheControl parse(Headers headers)+
headers. This honors both Cache-Control and Pragma
+ headers if they are present.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Call.Factory.html b/3.x/okhttp/okhttp3/Call.Factory.html new file mode 100644 index 000000000..afaf9f0ef --- /dev/null +++ b/3.x/okhttp/okhttp3/Call.Factory.html @@ -0,0 +1,229 @@ + + + + + + +public static interface Call.Factory
+| Modifier and Type | +Method and Description | +
|---|---|
Call |
+newCall(Request request) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Call.html b/3.x/okhttp/okhttp3/Call.html new file mode 100644 index 000000000..1b1315b1b --- /dev/null +++ b/3.x/okhttp/okhttp3/Call.html @@ -0,0 +1,406 @@ + + + + + + +| Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+Call.Factory |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Cancels the request, if possible.
+ |
+
Call |
+clone()
+Create a new, identical call to this one which can be enqueued or executed even if this call
+ has already been.
+ |
+
void |
+enqueue(Callback responseCallback)
+Schedules the request to be executed at some point in the future.
+ |
+
Response |
+execute()
+Invokes the request immediately, and blocks until the response can be processed or is in
+ error.
+ |
+
boolean |
+isCanceled() |
+
boolean |
+isExecuted()
+
+ |
+
Request |
+request()
+Returns the original request that initiated this call.
+ |
+
okio.Timeout |
+timeout()
+Returns a timeout that spans the entire call: resolving DNS, connecting, writing the request
+ body, server processing, and reading the response body.
+ |
+
Request request()+
Response execute() + throws IOException+
To avoid leaking resources callers should close the Response which in turn will
+ close the underlying ResponseBody.
+
+
+
+ // ensure the response (and underlying response body) is closed
+ try (Response response = client.newCall(request).execute()) {
+ ...
+ }
+
+
+
+ The caller may read the response body with the response's Response.body method. To
+ avoid leaking resources callers must close the response body or the
+ Response.
+
+
Note that transport-layer success (receiving a HTTP response code, headers and body) does
+ not necessarily indicate application-layer success: response may still indicate an
+ unhappy HTTP response code like 404 or 500.
IOException - if the request could not be executed due to cancellation, a connectivity
+ problem or timeout. Because networks can fail during an exchange, it is possible that the
+ remote server accepted the request before the failure.IllegalStateException - when the call has already been executed.void enqueue(Callback responseCallback)+
The dispatcher defines when the request will run: usually
+ immediately unless there are several other requests currently being executed.
+
+
This client will later call back responseCallback with either an HTTP response or a
+ failure exception.
IllegalStateException - when the call has already been executed.void cancel()+
boolean isExecuted()+ +
boolean isCanceled()+
okio.Timeout timeout()+
Configure the client's default timeout with OkHttpClient.Builder.callTimeout.
Call clone()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Callback.html b/3.x/okhttp/okhttp3/Callback.html new file mode 100644 index 000000000..ca62f0b3b --- /dev/null +++ b/3.x/okhttp/okhttp3/Callback.html @@ -0,0 +1,259 @@ + + + + + + +public interface Callback
+| Modifier and Type | +Method and Description | +
|---|---|
void |
+onFailure(Call call,
+ IOException e)
+Called when the request could not be executed due to cancellation, a connectivity problem or
+ timeout.
+ |
+
void |
+onResponse(Call call,
+ Response response)
+Called when the HTTP response was successfully returned by the remote server.
+ |
+
void onFailure(Call call, + IOException e)+
void onResponse(Call call, + Response response) + throws IOException+
Response.body. The response is still live until
+ its response body is closed. The recipient of the callback may
+ consume the response body on another thread.
+
+ Note that transport-layer success (receiving a HTTP response code, headers and body) does
+ not necessarily indicate application-layer success: response may still indicate an
+ unhappy HTTP response code like 404 or 500.
IOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/CertificatePinner.Builder.html b/3.x/okhttp/okhttp3/CertificatePinner.Builder.html new file mode 100644 index 000000000..86908a6c4 --- /dev/null +++ b/3.x/okhttp/okhttp3/CertificatePinner.Builder.html @@ -0,0 +1,300 @@ + + + + + + +public static final class CertificatePinner.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner.Builder |
+add(String pattern,
+ String... pins)
+Pins certificates for
+pattern. |
+
CertificatePinner |
+build() |
+
public CertificatePinner.Builder add(String pattern, + String... pins)+
pattern.pattern - lower-case host name or wildcard pattern such as *.example.com.pins - SHA-256 or SHA-1 hashes. Each pin is a hash of a certificate's Subject Public Key
+ Info, base64-encoded and prefixed with either sha256/ or sha1/.public CertificatePinner build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/CertificatePinner.html b/3.x/okhttp/okhttp3/CertificatePinner.html new file mode 100644 index 000000000..d6db8860b --- /dev/null +++ b/3.x/okhttp/okhttp3/CertificatePinner.html @@ -0,0 +1,480 @@ + + + + + + +public final class CertificatePinner +extends Object+
This class currently pins a certificate's Subject Public Key Info as described on Adam Langley's Weblog. Pins are either base64 SHA-256 hashes as + in HTTP Public Key Pinning (HPKP) or SHA-1 + base64 hashes as in Chromium's static certificates. + +
The easiest way to pin a host is turn on pinning with a broken configuration and read the + expected configuration when the connection fails. Be sure to do this on a trusted network, and + without man-in-the-middle tools like Charles or Fiddler. + +
For example, to pin https://publicobject.com, start with a broken
+ configuration:
+
+ String hostname = "publicobject.com";
+ CertificatePinner certificatePinner = new CertificatePinner.Builder()
+ .add(hostname, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
+ .build();
+ OkHttpClient client = OkHttpClient.Builder()
+ .certificatePinner(certificatePinner)
+ .build();
+
+ Request request = new Request.Builder()
+ .url("https://" + hostname)
+ .build();
+ client.newCall(request).execute();
+
+
+ As expected, this fails with a certificate pinning exception:
+
+ javax.net.ssl.SSLPeerUnverifiedException: Certificate pinning failure!
+ Peer certificate chain:
+ sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=: CN=publicobject.com, OU=PositiveSSL
+ sha256/klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=: CN=COMODO RSA Secure Server CA
+ sha256/grX4Ta9HpZx6tSHkmCrvpApTQGo67CYDnvprLg5yRME=: CN=COMODO RSA Certification Authority
+ sha256/lCppFqbkrlJ3EcVFAkeip0+44VaoJUymbnOaEUk7tEU=: CN=AddTrust External CA Root
+ Pinned certificates for publicobject.com:
+ sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+ at okhttp3.CertificatePinner.check(CertificatePinner.java)
+ at okhttp3.Connection.upgradeToTls(Connection.java)
+ at okhttp3.Connection.connect(Connection.java)
+ at okhttp3.Connection.connectAndSetOwner(Connection.java)
+
+
+ Follow up by pasting the public key hashes from the exception into the
+ certificate pinner's configuration:
+
+ CertificatePinner certificatePinner = new CertificatePinner.Builder()
+ .add("publicobject.com", "sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=")
+ .add("publicobject.com", "sha256/klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=")
+ .add("publicobject.com", "sha256/grX4Ta9HpZx6tSHkmCrvpApTQGo67CYDnvprLg5yRME=")
+ .add("publicobject.com", "sha256/lCppFqbkrlJ3EcVFAkeip0+44VaoJUymbnOaEUk7tEU=")
+ .build();
+
+
+ Pinning is per-hostname and/or per-wildcard pattern. To pin both publicobject.com and
+ www.publicobject.com, you must configure both hostnames.
+
+ Wildcard pattern rules: +
* is only permitted in the left-most domain name label and must be the
+ only character in that label (i.e., must match the whole left-most label). For example,
+ *.example.com is permitted, while *a.example.com, a*.example.com,
+ a*b.example.com, a.*.example.com are not permitted.
+ * cannot match across domain name labels. For example,
+ *.example.com matches test.example.com but does not match
+ sub.test.example.com.
+ *.example.com pinned with pin1 and a.example.com pinned with
+ pin2, to check a.example.com both pin1 and pin2 will be used.
+
+ Pinning certificates limits your server team's abilities to update their TLS certificates. By + pinning certificates, you take on additional operational complexity and limit your ability to + migrate between certificate authorities. Do not use certificate pinning without the blessing of + your server's TLS administrator! + +
CertificatePinner can not be used to pin self-signed certificate if such certificate
+ is not accepted by TrustManager.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+CertificatePinner.Builder
+Builds a configured certificate pinner.
+ |
+
| Modifier and Type | +Field and Description | +
|---|---|
static CertificatePinner |
+DEFAULT |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+check(String hostname,
+ Certificate... peerCertificates)
+Deprecated.
+
+replaced with
+check(String, List). |
+
void |
+check(String hostname,
+ List<Certificate> peerCertificates)
+Confirms that at least one of the certificates pinned for
+hostname is in peerCertificates. |
+
boolean |
+equals(Object other) |
+
int |
+hashCode() |
+
static String |
+pin(Certificate certificate)
+Returns the SHA-256 of
+certificate's public key. |
+
public static final CertificatePinner DEFAULT+
public void check(String hostname, + List<Certificate> peerCertificates) + throws SSLPeerUnverifiedException+
hostname is in peerCertificates. Does nothing if there are no certificates pinned for hostname.
+ OkHttp calls this after a successful TLS handshake, but before the connection is used.SSLPeerUnverifiedException - if peerCertificates don't match the certificates
+ pinned for hostname.public void check(String hostname, + Certificate... peerCertificates) + throws SSLPeerUnverifiedException+
check(String, List).SSLPeerUnverifiedExceptionpublic static String pin(Certificate certificate)+
certificate's public key.
+
+ In OkHttp 3.1.2 and earlier, this returned a SHA-1 hash of the public key. Both types are + supported, but SHA-256 is preferred.
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Challenge.html b/3.x/okhttp/okhttp3/Challenge.html new file mode 100644 index 000000000..374ece85d --- /dev/null +++ b/3.x/okhttp/okhttp3/Challenge.html @@ -0,0 +1,409 @@ + + + + + + +public final class Challenge +extends Object+
| Constructor and Description | +
|---|
Challenge(String scheme,
+ Map<String,String> authParams) |
+
Challenge(String scheme,
+ String realm) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Map<String,String> |
+authParams()
+Returns the auth params, including
+realm and charset if present, but as
+ strings. |
+
Charset |
+charset()
+Returns the charset that should be used to encode the credentials.
+ |
+
boolean |
+equals(Object other) |
+
int |
+hashCode() |
+
String |
+realm()
+Returns the protection space.
+ |
+
String |
+scheme()
+Returns the authentication scheme, like
+Basic. |
+
String |
+toString() |
+
Challenge |
+withCharset(Charset charset)
+Returns a copy of this charset that expects a credential encoded with
+charset. |
+
public Challenge withCharset(Charset charset)+
charset.public String scheme()+
Basic.public Map<String,String> authParams()+
realm and charset if present, but as
+ strings. The map's keys are lowercase and should be treated case-insensitively.public String realm()+
public Charset charset()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/CipherSuite.html b/3.x/okhttp/okhttp3/CipherSuite.html new file mode 100644 index 000000000..7840fa7eb --- /dev/null +++ b/3.x/okhttp/okhttp3/CipherSuite.html @@ -0,0 +1,1864 @@ + + + + + + +public final class CipherSuite +extends Object+
Not all cipher suites are supported on all platforms. As newer cipher suites + are created (for stronger privacy, better performance, etc.) they will be adopted by the platform + and then exposed here. Cipher suites that are not available on either Android (through API level + 24) or Java (through JDK 9) are omitted for brevity. + +
See Android SSLEngine + which lists the cipher suites supported by Android. + +
See JDK 10 Providers + which lists the cipher suites supported by Oracle. + +
See NativeCrypto.java + from conscrypt, which lists the cipher suites supported by Conscrypt.
| Modifier and Type | +Method and Description | +
|---|---|
static CipherSuite |
+forJavaName(String javaName) |
+
String |
+javaName()
+Returns the Java name of this cipher suite.
+ |
+
String |
+toString() |
+
public static final CipherSuite TLS_RSA_WITH_NULL_MD5+
public static final CipherSuite TLS_RSA_WITH_NULL_SHA+
public static final CipherSuite TLS_RSA_EXPORT_WITH_RC4_40_MD5+
public static final CipherSuite TLS_RSA_WITH_RC4_128_MD5+
public static final CipherSuite TLS_RSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_RSA_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_DH_anon_EXPORT_WITH_RC4_40_MD5+
public static final CipherSuite TLS_DH_anon_WITH_RC4_128_MD5+
public static final CipherSuite TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_KRB5_WITH_DES_CBC_SHA+
public static final CipherSuite TLS_KRB5_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_KRB5_WITH_RC4_128_SHA+
public static final CipherSuite TLS_KRB5_WITH_DES_CBC_MD5+
public static final CipherSuite TLS_KRB5_WITH_3DES_EDE_CBC_MD5+
public static final CipherSuite TLS_KRB5_WITH_RC4_128_MD5+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_RC4_40_SHA+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5+
public static final CipherSuite TLS_KRB5_EXPORT_WITH_RC4_40_MD5+
public static final CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_DH_anon_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_NULL_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_RSA_WITH_CAMELLIA_128_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_DH_anon_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_DH_anon_WITH_AES_256_CBC_SHA256+
public static final CipherSuite TLS_RSA_WITH_CAMELLIA_256_CBC_SHA+
public static final CipherSuite TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA+
public static final CipherSuite TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA+
public static final CipherSuite TLS_PSK_WITH_RC4_128_SHA+
public static final CipherSuite TLS_PSK_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_PSK_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_PSK_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_SEED_CBC_SHA+
public static final CipherSuite TLS_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_DHE_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_DHE_DSS_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_DH_anon_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_DH_anon_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_EMPTY_RENEGOTIATION_INFO_SCSV+
public static final CipherSuite TLS_FALLBACK_SCSV+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_NULL_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_RC4_128_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDH_anon_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256+
public static final CipherSuite TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384+
public static final CipherSuite TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA+
public static final CipherSuite TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA+
public static final CipherSuite TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256+
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256+
public static final CipherSuite TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256+
public static final CipherSuite TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256+
public static final CipherSuite TLS_AES_128_GCM_SHA256+
public static final CipherSuite TLS_AES_256_GCM_SHA384+
public static final CipherSuite TLS_CHACHA20_POLY1305_SHA256+
public static final CipherSuite TLS_AES_128_CCM_SHA256+
public static final CipherSuite TLS_AES_128_CCM_8_SHA256+
public static CipherSuite forJavaName(String javaName)+
javaName - the name used by Java APIs for this cipher suite. Different than the IANA name
+ for older cipher suites because the prefix is SSL_ instead of TLS_.public String javaName()+
SSL_, causing the Java name to be different from the instance name which is
+ always prefixed TLS_. For example, TLS_RSA_EXPORT_WITH_RC4_40_MD5.javaName()
+ is "SSL_RSA_EXPORT_WITH_RC4_40_MD5".Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Connection.html b/3.x/okhttp/okhttp3/Connection.html new file mode 100644 index 000000000..255f0cc0a --- /dev/null +++ b/3.x/okhttp/okhttp3/Connection.html @@ -0,0 +1,326 @@ + + + + + + +public interface Connection
+Typically instances of this class are created, connected and exercised automatically by the + HTTP client. Applications may use this class to monitor HTTP connections as members of a + connection pool. + +
Do not confuse this class with the misnamed HttpURLConnection, which isn't so much a
+ connection as a single request/response exchange.
+
+
There are tradeoffs when selecting which options to include when negotiating a secure + connection to a remote host. Newer TLS options are quite useful: + +
Unfortunately, older HTTPS servers refuse to connect when such options are presented. Rather + than avoiding these options entirely, this class allows a connection to be attempted with modern + options and then retried without them should the attempt fail. + +
Each connection can carry a varying number of streams, depending on the underlying protocol
+ being used. HTTP/1.x connections can carry either zero or one streams. HTTP/2 connections can
+ carry any number of streams, dynamically configured with SETTINGS_MAX_CONCURRENT_STREAMS.
+ A connection currently carrying zero streams is an idle stream. We keep it alive because reusing
+ an existing connection is typically faster than establishing a new one.
+
+
When a single logical call requires multiple streams due to redirects or authorization + challenges, we prefer to use the same physical connection for all streams in the sequence. There + are potential performance and behavior consequences to this preference. To support this feature, + this class separates allocations from streams. An allocation is created by a call, + used for one or more streams, and then released. An allocated connection won't be stolen by other + calls while a redirect or authorization challenge is being handled. + +
When the maximum concurrent streams limit is reduced, some allocations will be rescinded. + Attempting to create new streams on these allocations will fail. + +
Note that an allocation may be released before its stream is completed. This is intended to + make bookkeeping easier for the caller: releasing the allocation as soon as the terminal stream + has been found. But only complete the stream once its data stream has been exhausted.
| Modifier and Type | +Method and Description | +
|---|---|
Handshake |
+handshake()
+Returns the TLS handshake used to establish this connection, or null if the connection is not
+ HTTPS.
+ |
+
Protocol |
+protocol()
+Returns the protocol negotiated by this connection, or
+Protocol.HTTP_1_1 if no protocol
+ has been negotiated. |
+
Route |
+route()
+Returns the route used by this connection.
+ |
+
Socket |
+socket()
+Returns the socket that this connection is using.
+ |
+
Route route()+
Socket socket()+
@Nullable +Handshake handshake()+
Protocol protocol()+
Protocol.HTTP_1_1 if no protocol
+ has been negotiated. This method returns Protocol.HTTP_1_1 even if the remote peer is
+ using Protocol.HTTP_1_0.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/ConnectionPool.html b/3.x/okhttp/okhttp3/ConnectionPool.html new file mode 100644 index 000000000..3cbfe574f --- /dev/null +++ b/3.x/okhttp/okhttp3/ConnectionPool.html @@ -0,0 +1,330 @@ + + + + + + +public final class ConnectionPool +extends Object+
Address may share a Connection. This class implements the policy
+ of which connections to keep open for future use.| Constructor and Description | +
|---|
ConnectionPool()
+Create a new connection pool with tuning parameters appropriate for a single-user application.
+ |
+
ConnectionPool(int maxIdleConnections,
+ long keepAliveDuration,
+ TimeUnit timeUnit) |
+
| Modifier and Type | +Method and Description | +
|---|---|
int |
+connectionCount()
+Returns total number of connections in the pool.
+ |
+
void |
+evictAll()
+Close and remove all idle connections in the pool.
+ |
+
int |
+idleConnectionCount()
+Returns the number of idle connections in the pool.
+ |
+
public ConnectionPool()+
public ConnectionPool(int maxIdleConnections, + long keepAliveDuration, + TimeUnit timeUnit)+
public int idleConnectionCount()+
public int connectionCount()+
public void evictAll()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/ConnectionSpec.Builder.html b/3.x/okhttp/okhttp3/ConnectionSpec.Builder.html new file mode 100644 index 000000000..cc9ca268f --- /dev/null +++ b/3.x/okhttp/okhttp3/ConnectionSpec.Builder.html @@ -0,0 +1,375 @@ + + + + + + +public static final class ConnectionSpec.Builder +extends Object+
| Constructor and Description | +
|---|
Builder(ConnectionSpec connectionSpec) |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+allEnabledCipherSuites() |
+
ConnectionSpec.Builder |
+allEnabledTlsVersions() |
+
ConnectionSpec |
+build() |
+
ConnectionSpec.Builder |
+cipherSuites(CipherSuite... cipherSuites) |
+
ConnectionSpec.Builder |
+cipherSuites(String... cipherSuites) |
+
ConnectionSpec.Builder |
+supportsTlsExtensions(boolean supportsTlsExtensions)
+Deprecated.
+
+since OkHttp 3.13 all TLS-connections are expected to support TLS extensions.
+ In a future release setting this to true will be unnecessary and setting it to false will
+ have no effect.
+ |
+
ConnectionSpec.Builder |
+tlsVersions(String... tlsVersions) |
+
ConnectionSpec.Builder |
+tlsVersions(TlsVersion... tlsVersions) |
+
public Builder(ConnectionSpec connectionSpec)+
public ConnectionSpec.Builder allEnabledCipherSuites()+
public ConnectionSpec.Builder cipherSuites(CipherSuite... cipherSuites)+
public ConnectionSpec.Builder cipherSuites(String... cipherSuites)+
public ConnectionSpec.Builder allEnabledTlsVersions()+
public ConnectionSpec.Builder tlsVersions(TlsVersion... tlsVersions)+
public ConnectionSpec.Builder tlsVersions(String... tlsVersions)+
public ConnectionSpec.Builder supportsTlsExtensions(boolean supportsTlsExtensions)+
public ConnectionSpec build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/ConnectionSpec.html b/3.x/okhttp/okhttp3/ConnectionSpec.html new file mode 100644 index 000000000..75f0a64a8 --- /dev/null +++ b/3.x/okhttp/okhttp3/ConnectionSpec.html @@ -0,0 +1,487 @@ + + + + + + +public final class ConnectionSpec +extends Object+
https: URLs, this includes the TLS version and cipher suites to use when negotiating a secure
+ connection.
+
+ The TLS versions configured in a connection spec are only be used if they are also enabled in + the SSL socket. For example, if an SSL socket does not have TLS 1.3 enabled, it will not be used + even if it is present on the connection spec. The same policy also applies to cipher suites. + +
Use ConnectionSpec.Builder.allEnabledTlsVersions() and ConnectionSpec.Builder.allEnabledCipherSuites() to
+ defer all feature selection to the underlying SSL socket.
+
+
The configuration of each spec changes with each OkHttp release. This is annoying: upgrading + your OkHttp library can break connectivity to certain web servers! But it’s a necessary annoyance + because the TLS ecosystem is dynamic and staying up to date is necessary to stay secure. See + OkHttp's TLS + Configuration History to track these changes.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+ConnectionSpec.Builder |
+
| Modifier and Type | +Field and Description | +
|---|---|
static ConnectionSpec |
+CLEARTEXT
+Unencrypted, unauthenticated connections for
+http: URLs. |
+
static ConnectionSpec |
+COMPATIBLE_TLS
+A backwards-compatible fallback configuration that works on obsolete client platforms and can
+ connect to obsolete servers.
+ |
+
static ConnectionSpec |
+MODERN_TLS
+A modern TLS configuration that works on most client platforms and can connect to most servers.
+ |
+
static ConnectionSpec |
+RESTRICTED_TLS
+A secure TLS connection that requires a recent client platform and a recent server.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<CipherSuite> |
+cipherSuites()
+Returns the cipher suites to use for a connection.
+ |
+
boolean |
+equals(Object other) |
+
int |
+hashCode() |
+
boolean |
+isCompatible(SSLSocket socket)
+Returns
+true if the socket, as currently configured, supports this connection spec. |
+
boolean |
+isTls() |
+
boolean |
+supportsTlsExtensions() |
+
List<TlsVersion> |
+tlsVersions()
+Returns the TLS versions to use when negotiating a connection.
+ |
+
String |
+toString() |
+
public static final ConnectionSpec RESTRICTED_TLS+
public static final ConnectionSpec MODERN_TLS+
public static final ConnectionSpec COMPATIBLE_TLS+
public static final ConnectionSpec CLEARTEXT+
http: URLs.public boolean isTls()+
@Nullable +public List<CipherSuite> cipherSuites()+
@Nullable +public List<TlsVersion> tlsVersions()+
public boolean supportsTlsExtensions()+
public boolean isCompatible(SSLSocket socket)+
true if the socket, as currently configured, supports this connection spec. In
+ order for a socket to be compatible the enabled cipher suites and protocols must intersect.
+
+ For cipher suites, at least one of the required cipher suites must
+ match the socket's enabled cipher suites. If there are no required cipher suites the socket
+ must have at least one cipher suite enabled.
+
+
For protocols, at least one of the required protocols must match the
+ socket's enabled protocols.
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Cookie.Builder.html b/3.x/okhttp/okhttp3/Cookie.Builder.html new file mode 100644 index 000000000..be0ba0dbc --- /dev/null +++ b/3.x/okhttp/okhttp3/Cookie.Builder.html @@ -0,0 +1,388 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Cookie |
+build() |
+
Cookie.Builder |
+domain(String domain)
+Set the domain pattern for this cookie.
+ |
+
Cookie.Builder |
+expiresAt(long expiresAt) |
+
Cookie.Builder |
+hostOnlyDomain(String domain)
+Set the host-only domain for this cookie.
+ |
+
Cookie.Builder |
+httpOnly() |
+
Cookie.Builder |
+name(String name) |
+
Cookie.Builder |
+path(String path) |
+
Cookie.Builder |
+secure() |
+
Cookie.Builder |
+value(String value) |
+
public Cookie.Builder name(String name)+
public Cookie.Builder value(String value)+
public Cookie.Builder expiresAt(long expiresAt)+
public Cookie.Builder domain(String domain)+
domain and all of its
+ subdomains.public Cookie.Builder hostOnlyDomain(String domain)+
domain but none of
+ its subdomains.public Cookie.Builder path(String path)+
public Cookie.Builder secure()+
public Cookie.Builder httpOnly()+
public Cookie build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Cookie.html b/3.x/okhttp/okhttp3/Cookie.html new file mode 100644 index 000000000..dc2ded94d --- /dev/null +++ b/3.x/okhttp/okhttp3/Cookie.html @@ -0,0 +1,516 @@ + + + + + + +public final class Cookie +extends Object+
This class doesn't support additional attributes on cookies, like Chromium's Priority=HIGH + extension.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Cookie.Builder
+Builds a cookie.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
String |
+domain()
+Returns the cookie's domain.
+ |
+
boolean |
+equals(Object other) |
+
long |
+expiresAt()
+Returns the time that this cookie expires, in the same format as
+System.currentTimeMillis(). |
+
int |
+hashCode() |
+
boolean |
+hostOnly()
+Returns true if this cookie's domain should be interpreted as a single host name, or false if
+ it should be interpreted as a pattern.
+ |
+
boolean |
+httpOnly()
+Returns true if this cookie should be limited to only HTTP APIs.
+ |
+
boolean |
+matches(HttpUrl url)
+Returns true if this cookie should be included on a request to
+url. |
+
String |
+name()
+Returns a non-empty string with this cookie's name.
+ |
+
static Cookie |
+parse(HttpUrl url,
+ String setCookie)
+Attempt to parse a
+Set-Cookie HTTP header value setCookie as a cookie. |
+
static List<Cookie> |
+parseAll(HttpUrl url,
+ Headers headers)
+Returns all of the cookies from a set of HTTP response headers.
+ |
+
String |
+path()
+Returns this cookie's path.
+ |
+
boolean |
+persistent()
+Returns true if this cookie does not expire at the end of the current session.
+ |
+
boolean |
+secure()
+Returns true if this cookie should be limited to only HTTPS requests.
+ |
+
String |
+toString() |
+
String |
+value()
+Returns a possibly-empty string with this cookie's value.
+ |
+
public String name()+
public String value()+
public boolean persistent()+
public long expiresAt()+
System.currentTimeMillis(). This is December 31, 9999 if the cookie is not persistent, in which case it will expire at the end of the current session.
+
+ This may return a value less than the current time, in which case the cookie is already + expired. Webservers may return expired cookies as a mechanism to delete previously set cookies + that may or may not themselves be expired.
public boolean hostOnly()+
Set-Cookie header
+ included a domain attribute.
+
+ For example, suppose the cookie's domain is example.com. If this flag is true it
+ matches only example.com. If this flag is false it matches example.com and all subdomains including api.example.com, www.example.com, and
+ beta.api.example.com.
public String domain()+
hostOnly() returns true this is the only domain that
+ matches this cookie; otherwise it matches this domain and all subdomains.public String path()+
/foo this cookie matches requests to
+ /foo and /foo/bar, but not / or /football.public boolean httpOnly()+
public boolean secure()+
public boolean matches(HttpUrl url)+
url. In addition to this
+ check callers should also confirm that this cookie has not expired.@Nullable +public static Cookie parse(HttpUrl url, + String setCookie)+
Set-Cookie HTTP header value setCookie as a cookie. Returns
+ null if setCookie is not a well-formed cookie.public static List<Cookie> parseAll(HttpUrl url, + Headers headers)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/CookieJar.html b/3.x/okhttp/okhttp3/CookieJar.html new file mode 100644 index 000000000..584fa0210 --- /dev/null +++ b/3.x/okhttp/okhttp3/CookieJar.html @@ -0,0 +1,300 @@ + + + + + + +public interface CookieJar
+As policy, implementations of this interface are responsible for selecting which cookies to + accept and which to reject. A reasonable policy is to reject all cookies, though that may + interfere with session-based authentication schemes that require cookies. + +
As persistence, implementations of this interface must also provide storage of cookies. Simple + implementations may store cookies in memory; sophisticated ones may use the file system or + database to hold accepted cookies. The cookie storage model specifies + policies for updating and expiring cookies.
| Modifier and Type | +Field and Description | +
|---|---|
static CookieJar |
+NO_COOKIES
+A cookie jar that never accepts any cookies.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Cookie> |
+loadForRequest(HttpUrl url)
+Load cookies from the jar for an HTTP request to
+url. |
+
void |
+saveFromResponse(HttpUrl url,
+ List<Cookie> cookies)
+Saves
+cookies from an HTTP response to this store according to this jar's policy. |
+
static final CookieJar NO_COOKIES+
void saveFromResponse(HttpUrl url, + List<Cookie> cookies)+
cookies from an HTTP response to this store according to this jar's policy.
+
+ Note that this method may be called a second time for a single HTTP response if the response
+ includes a trailer. For this obscure HTTP feature, cookies contains only the trailer's
+ cookies.
List<Cookie> loadForRequest(HttpUrl url)+
url. This method returns a possibly
+ empty list of cookies for the network request.
+
+ Simple implementations will return the accepted cookies that have not yet expired and that
+ match url.
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Credentials.html b/3.x/okhttp/okhttp3/Credentials.html new file mode 100644 index 000000000..d9e7baf81 --- /dev/null +++ b/3.x/okhttp/okhttp3/Credentials.html @@ -0,0 +1,260 @@ + + + + + + +public final class Credentials +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
static String |
+basic(String username,
+ String password)
+Returns an auth credential for the Basic scheme.
+ |
+
static String |
+basic(String username,
+ String password,
+ Charset charset) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Dispatcher.html b/3.x/okhttp/okhttp3/Dispatcher.html new file mode 100644 index 000000000..e86f798a9 --- /dev/null +++ b/3.x/okhttp/okhttp3/Dispatcher.html @@ -0,0 +1,459 @@ + + + + + + +public final class Dispatcher +extends Object+
Each dispatcher uses an ExecutorService to run calls internally. If you supply your
+ own executor, it should be able to run the configured maximum number
+ of calls concurrently.
| Constructor and Description | +
|---|
Dispatcher() |
+
Dispatcher(ExecutorService executorService) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancelAll()
+Cancel all calls currently enqueued or executing.
+ |
+
ExecutorService |
+executorService() |
+
int |
+getMaxRequests() |
+
int |
+getMaxRequestsPerHost() |
+
List<Call> |
+queuedCalls()
+Returns a snapshot of the calls currently awaiting execution.
+ |
+
int |
+queuedCallsCount() |
+
List<Call> |
+runningCalls()
+Returns a snapshot of the calls currently being executed.
+ |
+
int |
+runningCallsCount() |
+
void |
+setIdleCallback(Runnable idleCallback)
+Set a callback to be invoked each time the dispatcher becomes idle (when the number of running
+ calls returns to zero).
+ |
+
void |
+setMaxRequests(int maxRequests)
+Set the maximum number of requests to execute concurrently.
+ |
+
void |
+setMaxRequestsPerHost(int maxRequestsPerHost)
+Set the maximum number of requests for each host to execute concurrently.
+ |
+
public Dispatcher(ExecutorService executorService)+
public Dispatcher()+
public ExecutorService executorService()+
public void setMaxRequests(int maxRequests)+
If more than maxRequests requests are in flight when this is invoked, those requests
+ will remain in flight.
public int getMaxRequests()+
public void setMaxRequestsPerHost(int maxRequestsPerHost)+
If more than maxRequestsPerHost requests are in flight when this is invoked, those
+ requests will remain in flight.
+
+
WebSocket connections to hosts do not count against this limit.
public int getMaxRequestsPerHost()+
public void setIdleCallback(@Nullable + Runnable idleCallback)+
Note: The time at which a call is considered idle is different depending
+ on whether it was run asynchronously or
+ synchronously. Asynchronous calls become idle after the
+ onResponse or onFailure callback has
+ returned. Synchronous calls become idle once execute() returns. This
+ means that if you are doing synchronous calls the network layer will not truly be idle until
+ every returned Response has been closed.
public void cancelAll()+
public List<Call> queuedCalls()+
public List<Call> runningCalls()+
public int queuedCallsCount()+
public int runningCallsCount()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Dns.html b/3.x/okhttp/okhttp3/Dns.html new file mode 100644 index 000000000..1b01eb066 --- /dev/null +++ b/3.x/okhttp/okhttp3/Dns.html @@ -0,0 +1,278 @@ + + + + + + +public interface Dns
+Implementations of this interface must be safe for concurrent use.
| Modifier and Type | +Field and Description | +
|---|---|
static Dns |
+SYSTEM
+A DNS that uses
+InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses. |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<InetAddress> |
+lookup(String hostname)
+Returns the IP addresses of
+hostname, in the order they will be attempted by OkHttp. |
+
static final Dns SYSTEM+
InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses. Most custom Dns implementations should delegate to this instance.List<InetAddress> lookup(String hostname) + throws UnknownHostException+
hostname, in the order they will be attempted by OkHttp. If
+ a connection to an address fails, OkHttp will retry the connection with the next address until
+ either a connection is made, the set of IP addresses is exhausted, or a limit is exceeded.UnknownHostExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/EventListener.Factory.html b/3.x/okhttp/okhttp3/EventListener.Factory.html new file mode 100644 index 000000000..5dc0e399f --- /dev/null +++ b/3.x/okhttp/okhttp3/EventListener.Factory.html @@ -0,0 +1,235 @@ + + + + + + +public static interface EventListener.Factory
+| Modifier and Type | +Method and Description | +
|---|---|
EventListener |
+create(Call call)
+Creates an instance of the
+EventListener for a particular Call. |
+
EventListener create(Call call)+
EventListener for a particular Call. The returned
+ EventListener instance will be used during the lifecycle of the call.
+
+ This method is invoked after the call is created. See
+ OkHttpClient.newCall(Request).
+
+
It is an error for implementations to issue any mutating operations on the
+ call instance from this method.
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/EventListener.html b/3.x/okhttp/okhttp3/EventListener.html new file mode 100644 index 000000000..3c9245619 --- /dev/null +++ b/3.x/okhttp/okhttp3/EventListener.html @@ -0,0 +1,840 @@ + + + + + + +public abstract class EventListener +extends Object+
All start/connect/acquire events will eventually receive a matching end/release event, + either successful (non-null parameters), or failed (non-null throwable). The first common + parameters of each event pair are used to link the event in case of concurrent or repeated + events e.g. dnsStart(call, domainName) -> dnsEnd(call, domainName, inetAddressList). + +
Nesting is as follows +
Request events are ordered: + requestHeaders -> requestBody -> responseHeaders -> responseBody + +
Since connections may be reused, the dns and connect events may not be present for a call, + or may be repeated in case of failure retries, even concurrently in case of happy eyeballs type + scenarios. A redirect cross domain, or to use https may cause additional connection and request + events. + +
All event methods must execute fast, without external locking, cannot throw exceptions, + attempt to mutate the event parameters, or be re-entrant back into the client. + Any IO - writing to files or network should be done asynchronously.
| Modifier and Type | +Class and Description | +
|---|---|
static interface |
+EventListener.Factory |
+
| Modifier and Type | +Field and Description | +
|---|---|
static EventListener |
+NONE |
+
| Constructor and Description | +
|---|
EventListener() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+callEnd(Call call)
+Invoked immediately after a call has completely ended.
+ |
+
void |
+callFailed(Call call,
+ IOException ioe)
+Invoked when a call fails permanently.
+ |
+
void |
+callStart(Call call)
+Invoked as soon as a call is enqueued or executed by a client.
+ |
+
void |
+connectEnd(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy,
+ Protocol protocol)
+Invoked immediately after a socket connection was attempted.
+ |
+
void |
+connectFailed(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy,
+ Protocol protocol,
+ IOException ioe)
+Invoked when a connection attempt fails.
+ |
+
void |
+connectionAcquired(Call call,
+ Connection connection)
+Invoked after a connection has been acquired for the
+call. |
+
void |
+connectionReleased(Call call,
+ Connection connection)
+Invoked after a connection has been released for the
+call. |
+
void |
+connectStart(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy)
+Invoked just prior to initiating a socket connection.
+ |
+
void |
+dnsEnd(Call call,
+ String domainName,
+ List<InetAddress> inetAddressList)
+Invoked immediately after a DNS lookup.
+ |
+
void |
+dnsStart(Call call,
+ String domainName)
+Invoked just prior to a DNS lookup.
+ |
+
void |
+requestBodyEnd(Call call,
+ long byteCount)
+Invoked immediately after sending a request body.
+ |
+
void |
+requestBodyStart(Call call)
+Invoked just prior to sending a request body.
+ |
+
void |
+requestFailed(Call call,
+ IOException ioe)
+Invoked when a request fails to be written.
+ |
+
void |
+requestHeadersEnd(Call call,
+ Request request)
+Invoked immediately after sending request headers.
+ |
+
void |
+requestHeadersStart(Call call)
+Invoked just prior to sending request headers.
+ |
+
void |
+responseBodyEnd(Call call,
+ long byteCount)
+Invoked immediately after receiving a response body and completing reading it.
+ |
+
void |
+responseBodyStart(Call call)
+Invoked just prior to receiving the response body.
+ |
+
void |
+responseFailed(Call call,
+ IOException ioe)
+Invoked when a response fails to be read.
+ |
+
void |
+responseHeadersEnd(Call call,
+ Response response)
+Invoked immediately after receiving response headers.
+ |
+
void |
+responseHeadersStart(Call call)
+Invoked just prior to receiving response headers.
+ |
+
void |
+secureConnectEnd(Call call,
+ Handshake handshake)
+Invoked immediately after a TLS connection was attempted.
+ |
+
void |
+secureConnectStart(Call call)
+Invoked just prior to initiating a TLS connection.
+ |
+
public static final EventListener NONE+
public void callStart(Call call)+
This will be invoked only once for a single Call. Retries of different routes
+ or redirects will be handled within the boundaries of a single callStart and callEnd(okhttp3.Call)/callFailed(okhttp3.Call, java.io.IOException) pair.
public void dnsStart(Call call, + String domainName)+
Dns.lookup(String).
+
+ This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different host.
+
+
If the Call is able to reuse an existing pooled connection, this method will not be
+ invoked. See ConnectionPool.
public void dnsEnd(Call call, + String domainName, + List<InetAddress> inetAddressList)+
This method is invoked after dnsStart(okhttp3.Call, java.lang.String).
public void connectStart(Call call, + InetSocketAddress inetSocketAddress, + Proxy proxy)+
This method will be invoked if no existing connection in the ConnectionPool can be
+ reused.
+
+
This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address, or a connection is retried.
public void secureConnectStart(Call call)+
This method is invoked if the following conditions are met: +
Call.request() requires TLS.ConnectionPool can be reused.This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address, or a connection is retried.
public void secureConnectEnd(Call call, + @Nullable + Handshake handshake)+
This method is invoked after secureConnectStart(okhttp3.Call).
public void connectEnd(Call call, + InetSocketAddress inetSocketAddress, + Proxy proxy, + @Nullable + Protocol protocol)+
If the call uses HTTPS, this will be invoked after
+ secureConnectEnd(Call, Handshake), otherwise it will invoked after
+ connectStart(Call, InetSocketAddress, Proxy).
public void connectFailed(Call call, + InetSocketAddress inetSocketAddress, + Proxy proxy, + @Nullable + Protocol protocol, + IOException ioe)+
If the call uses HTTPS, this will be invoked after secureConnectEnd(Call,
+ Handshake), otherwise it will invoked after connectStart(Call, InetSocketAddress,
+ Proxy).
public void connectionAcquired(Call call, + Connection connection)+
call.
+
+ This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address.
public void connectionReleased(Call call, + Connection connection)+
call.
+
+ This method is always invoked after connectionAcquired(Call, Connection).
+
+
This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address.
public void requestHeadersStart(Call call)+
The connection is implicit, and will generally relate to the last
+ connectionAcquired(Call, Connection) event.
+
+
This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address.
public void requestHeadersEnd(Call call, + Request request)+
This method is always invoked after requestHeadersStart(Call).
request - the request sent over the network. It is an error to access the body of this
+ request.public void requestBodyStart(Call call)+
The connection is implicit, and will generally relate to the last
+ connectionAcquired(Call, Connection) event.
+
+
This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address.
public void requestBodyEnd(Call call, + long byteCount)+
This method is always invoked after requestBodyStart(Call).
public void requestFailed(Call call, + IOException ioe)+
This method is invoked after requestHeadersStart(okhttp3.Call) or requestBodyStart(okhttp3.Call). Note
+ that request failures do not necessarily fail the entire call.
public void responseHeadersStart(Call call)+
The connection is implicit, and will generally relate to the last
+ connectionAcquired(Call, Connection) event.
+
+
This can be invoked more than 1 time for a single Call. For example, if the response
+ to the Call.request() is a redirect to a different address.
public void responseHeadersEnd(Call call, + Response response)+
This method is always invoked after responseHeadersStart(okhttp3.Call).
response - the response received over the network. It is an error to access the body of
+ this response.public void responseBodyStart(Call call)+
The connection is implicit, and will generally relate to the last
+ connectionAcquired(Call, Connection) event.
+
+
This will usually be invoked only 1 time for a single Call,
+ exceptions are a limited set of cases including failure recovery.
public void responseBodyEnd(Call call, + long byteCount)+
Will only be invoked for requests having a response body e.g. won't be invoked for a + websocket upgrade. + +
This method is always invoked after requestBodyStart(Call).
public void responseFailed(Call call, + IOException ioe)+
This method is invoked after responseHeadersStart(okhttp3.Call) or responseBodyStart(okhttp3.Call).
+ Note that response failures do not necessarily fail the entire call.
public void callEnd(Call call)+
This method is always invoked after callStart(Call).
public void callFailed(Call call, + IOException ioe)+
This method is always invoked after callStart(Call).
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/FormBody.Builder.html b/3.x/okhttp/okhttp3/FormBody.Builder.html new file mode 100644 index 000000000..eb89bbfac --- /dev/null +++ b/3.x/okhttp/okhttp3/FormBody.Builder.html @@ -0,0 +1,318 @@ + + + + + + +| Constructor and Description | +
|---|
Builder() |
+
Builder(Charset charset) |
+
| Modifier and Type | +Method and Description | +
|---|---|
FormBody.Builder |
+add(String name,
+ String value) |
+
FormBody.Builder |
+addEncoded(String name,
+ String value) |
+
FormBody |
+build() |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/FormBody.html b/3.x/okhttp/okhttp3/FormBody.html new file mode 100644 index 000000000..d8be64f3d --- /dev/null +++ b/3.x/okhttp/okhttp3/FormBody.html @@ -0,0 +1,391 @@ + + + + + + +public final class FormBody +extends RequestBody+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+FormBody.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+contentLength()
+Returns the number of bytes that will be written to
+sink in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown. |
+
MediaType |
+contentType()
+Returns the Content-Type header for this body.
+ |
+
String |
+encodedName(int index) |
+
String |
+encodedValue(int index) |
+
String |
+name(int index) |
+
int |
+size()
+The number of key-value pairs in this form-encoded body.
+ |
+
String |
+value(int index) |
+
void |
+writeTo(okio.BufferedSink sink)
+Writes the content of this request to
+sink. |
+
public int size()+
public String encodedName(int index)+
public String name(int index)+
public String encodedValue(int index)+
public String value(int index)+
public MediaType contentType()+
RequestBodycontentType in class RequestBodypublic long contentLength()+
RequestBodysink in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown.contentLength in class RequestBodypublic void writeTo(okio.BufferedSink sink) + throws IOException+
RequestBodysink.writeTo in class RequestBodyIOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Handshake.html b/3.x/okhttp/okhttp3/Handshake.html new file mode 100644 index 000000000..ae953d9b6 --- /dev/null +++ b/3.x/okhttp/okhttp3/Handshake.html @@ -0,0 +1,417 @@ + + + + + + +public final class Handshake +extends Object+
This value object describes a completed handshake. Use ConnectionSpec to set policy
+ for new handshakes.
| Modifier and Type | +Method and Description | +
|---|---|
CipherSuite |
+cipherSuite()
+Returns the cipher suite used for the connection.
+ |
+
boolean |
+equals(Object other) |
+
static Handshake |
+get(SSLSession session) |
+
static Handshake |
+get(TlsVersion tlsVersion,
+ CipherSuite cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
int |
+hashCode() |
+
List<Certificate> |
+localCertificates()
+Returns a possibly-empty list of certificates that identify this peer.
+ |
+
Principal |
+localPrincipal()
+Returns the local principle, or null if this peer is anonymous.
+ |
+
List<Certificate> |
+peerCertificates()
+Returns a possibly-empty list of certificates that identify the remote peer.
+ |
+
Principal |
+peerPrincipal()
+Returns the remote peer's principle, or null if that peer is anonymous.
+ |
+
TlsVersion |
+tlsVersion()
+Returns the TLS version used for this connection.
+ |
+
String |
+toString() |
+
public static Handshake get(SSLSession session) + throws IOException+
IOExceptionpublic static Handshake get(TlsVersion tlsVersion, + CipherSuite cipherSuite, + List<Certificate> peerCertificates, + List<Certificate> localCertificates)+
public TlsVersion tlsVersion()+
TlsVersion.SSL_3_0.public CipherSuite cipherSuite()+
public List<Certificate> peerCertificates()+
@Nullable +public Principal peerPrincipal()+
public List<Certificate> localCertificates()+
@Nullable +public Principal localPrincipal()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Headers.Builder.html b/3.x/okhttp/okhttp3/Headers.Builder.html new file mode 100644 index 000000000..b4f110747 --- /dev/null +++ b/3.x/okhttp/okhttp3/Headers.Builder.html @@ -0,0 +1,471 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Headers.Builder |
+add(String line)
+Add an header line containing a field name, a literal colon, and a value.
+ |
+
Headers.Builder |
+add(String name,
+ Date value)
+Add a header with the specified name and formatted date.
+ |
+
Headers.Builder |
+add(String name,
+ Instant value)
+Add a header with the specified name and formatted instant.
+ |
+
Headers.Builder |
+add(String name,
+ String value)
+Add a header with the specified name and value.
+ |
+
Headers.Builder |
+addAll(Headers headers)
+Adds all headers from an existing collection.
+ |
+
Headers.Builder |
+addUnsafeNonAscii(String name,
+ String value)
+Add a header with the specified name and value.
+ |
+
Headers |
+build() |
+
String |
+get(String name)
+Equivalent to
+build().get(name), but potentially faster. |
+
Headers.Builder |
+removeAll(String name) |
+
Headers.Builder |
+set(String name,
+ Date value)
+Set a field with the specified date.
+ |
+
Headers.Builder |
+set(String name,
+ Instant value)
+Set a field with the specified instant.
+ |
+
Headers.Builder |
+set(String name,
+ String value)
+Set a field with the specified value.
+ |
+
public Headers.Builder add(String line)+
public Headers.Builder add(String name, + String value)+
public Headers.Builder addUnsafeNonAscii(String name, + String value)+
public Headers.Builder addAll(Headers headers)+
public Headers.Builder add(String name, + Date value)+
@IgnoreJRERequirement +public Headers.Builder add(String name, + Instant value)+
public Headers.Builder set(String name, + Date value)+
@IgnoreJRERequirement +public Headers.Builder set(String name, + Instant value)+
public Headers.Builder removeAll(String name)+
public Headers.Builder set(String name, + String value)+
@Nullable +public String get(String name)+
build().get(name), but potentially faster.public Headers build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Headers.html b/3.x/okhttp/okhttp3/Headers.html new file mode 100644 index 000000000..d5421efc1 --- /dev/null +++ b/3.x/okhttp/okhttp3/Headers.html @@ -0,0 +1,549 @@ + + + + + + +public final class Headers +extends Object+
Request
+ and Response for interpreted headers. This class maintains the order of the header fields
+ within the HTTP message.
+
+ This class tracks header values line-by-line. A field with multiple comma- separated values on + the same line will be treated as a field with a single value by this class. It is the caller's + responsibility to detect and split on commas if their field permits multiple values. This + simplifies use of single-valued fields whose values routinely contain commas, such as cookies or + dates. + +
This class trims whitespace from values. It never returns values with leading or trailing + whitespace. + +
Instances of this class are immutable. Use Headers.Builder to create instances.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Headers.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+byteCount()
+Returns the number of bytes required to encode these headers using HTTP/1.1.
+ |
+
boolean |
+equals(Object other)
+Returns true if
+other is a Headers object with the same headers, with the same
+ casing, in the same order. |
+
String |
+get(String name)
+Returns the last value corresponding to the specified field, or null.
+ |
+
Date |
+getDate(String name)
+Returns the last value corresponding to the specified field parsed as an HTTP date, or null if
+ either the field is absent or cannot be parsed as a date.
+ |
+
Instant |
+getInstant(String name)
+Returns the last value corresponding to the specified field parsed as an HTTP date, or null if
+ either the field is absent or cannot be parsed as a date.
+ |
+
int |
+hashCode() |
+
String |
+name(int index)
+Returns the field at
+position. |
+
Set<String> |
+names()
+Returns an immutable case-insensitive set of header names.
+ |
+
Headers.Builder |
+newBuilder() |
+
static Headers |
+of(Map<String,String> headers)
+Returns headers for the header names and values in the
+Map. |
+
static Headers |
+of(String... namesAndValues)
+Returns headers for the alternating header names and values.
+ |
+
int |
+size()
+Returns the number of field values.
+ |
+
Map<String,List<String>> |
+toMultimap() |
+
String |
+toString() |
+
String |
+value(int index)
+Returns the value at
+index. |
+
List<String> |
+values(String name)
+Returns an immutable list of the header values for
+name. |
+
@Nullable +public String get(String name)+
@Nullable +public Date getDate(String name)+
@IgnoreJRERequirement + @Nullable +public Instant getInstant(String name)+
public int size()+
public String name(int index)+
position.public String value(int index)+
index.public Set<String> names()+
public List<String> values(String name)+
name.public long byteCount()+
public Headers.Builder newBuilder()+
public boolean equals(@Nullable + Object other)+
other is a Headers object with the same headers, with the same
+ casing, in the same order. Note that two headers instances may be semantically equal
+ but not equal according to this method. In particular, none of the following sets of headers
+ are equal according to this method:
+
+ 1. Original
+ Content-Type: text/html
+ Content-Length: 50
+
+ 2. Different order
+ Content-Length: 50
+ Content-Type: text/html
+
+ 3. Different case
+ content-type: text/html
+ content-length: 50
+
+ 4. Different values
+ Content-Type: text/html
+ Content-Length: 050
+
+
+ Applications that require semantically equal headers should convert them into a canonical form
+ before comparing them for equality.public static Headers of(String... namesAndValues)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/HttpUrl.Builder.html b/3.x/okhttp/okhttp3/HttpUrl.Builder.html new file mode 100644 index 000000000..dcc121dff --- /dev/null +++ b/3.x/okhttp/okhttp3/HttpUrl.Builder.html @@ -0,0 +1,657 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpUrl.Builder |
+addEncodedPathSegment(String encodedPathSegment) |
+
HttpUrl.Builder |
+addEncodedPathSegments(String encodedPathSegments)
+Adds a set of encoded path segments separated by a slash (either
+\ or /). |
+
HttpUrl.Builder |
+addEncodedQueryParameter(String encodedName,
+ String encodedValue)
+Adds the pre-encoded query parameter to this URL's query string.
+ |
+
HttpUrl.Builder |
+addPathSegment(String pathSegment) |
+
HttpUrl.Builder |
+addPathSegments(String pathSegments)
+Adds a set of path segments separated by a slash (either
+\ or /). |
+
HttpUrl.Builder |
+addQueryParameter(String name,
+ String value)
+Encodes the query parameter using UTF-8 and adds it to this URL's query string.
+ |
+
HttpUrl |
+build() |
+
HttpUrl.Builder |
+encodedFragment(String encodedFragment) |
+
HttpUrl.Builder |
+encodedPassword(String encodedPassword) |
+
HttpUrl.Builder |
+encodedPath(String encodedPath) |
+
HttpUrl.Builder |
+encodedQuery(String encodedQuery) |
+
HttpUrl.Builder |
+encodedUsername(String encodedUsername) |
+
HttpUrl.Builder |
+fragment(String fragment) |
+
HttpUrl.Builder |
+host(String host) |
+
HttpUrl.Builder |
+password(String password) |
+
HttpUrl.Builder |
+port(int port) |
+
HttpUrl.Builder |
+query(String query) |
+
HttpUrl.Builder |
+removeAllEncodedQueryParameters(String encodedName) |
+
HttpUrl.Builder |
+removeAllQueryParameters(String name) |
+
HttpUrl.Builder |
+removePathSegment(int index) |
+
HttpUrl.Builder |
+scheme(String scheme) |
+
HttpUrl.Builder |
+setEncodedPathSegment(int index,
+ String encodedPathSegment) |
+
HttpUrl.Builder |
+setEncodedQueryParameter(String encodedName,
+ String encodedValue) |
+
HttpUrl.Builder |
+setPathSegment(int index,
+ String pathSegment) |
+
HttpUrl.Builder |
+setQueryParameter(String name,
+ String value) |
+
String |
+toString() |
+
HttpUrl.Builder |
+username(String username) |
+
public HttpUrl.Builder scheme(String scheme)+
public HttpUrl.Builder username(String username)+
public HttpUrl.Builder encodedUsername(String encodedUsername)+
public HttpUrl.Builder password(String password)+
public HttpUrl.Builder encodedPassword(String encodedPassword)+
public HttpUrl.Builder host(String host)+
host - either a regular hostname, International Domain Name, IPv4 address, or IPv6
+ address.public HttpUrl.Builder port(int port)+
public HttpUrl.Builder addPathSegment(String pathSegment)+
public HttpUrl.Builder addPathSegments(String pathSegments)+
\ or /). If
+ pathSegments starts with a slash, the resulting URL will have empty path segment.public HttpUrl.Builder addEncodedPathSegment(String encodedPathSegment)+
public HttpUrl.Builder addEncodedPathSegments(String encodedPathSegments)+
\ or /). If
+ encodedPathSegments starts with a slash, the resulting URL will have empty path
+ segment.public HttpUrl.Builder setPathSegment(int index, + String pathSegment)+
public HttpUrl.Builder setEncodedPathSegment(int index, + String encodedPathSegment)+
public HttpUrl.Builder removePathSegment(int index)+
public HttpUrl.Builder encodedPath(String encodedPath)+
public HttpUrl.Builder query(@Nullable + String query)+
public HttpUrl.Builder encodedQuery(@Nullable + String encodedQuery)+
public HttpUrl.Builder addQueryParameter(String name, + @Nullable + String value)+
public HttpUrl.Builder addEncodedQueryParameter(String encodedName, + @Nullable + String encodedValue)+
public HttpUrl.Builder setQueryParameter(String name, + @Nullable + String value)+
public HttpUrl.Builder setEncodedQueryParameter(String encodedName, + @Nullable + String encodedValue)+
public HttpUrl.Builder removeAllQueryParameters(String name)+
public HttpUrl.Builder removeAllEncodedQueryParameters(String encodedName)+
public HttpUrl.Builder fragment(@Nullable + String fragment)+
public HttpUrl.Builder encodedFragment(@Nullable + String encodedFragment)+
public HttpUrl build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/HttpUrl.html b/3.x/okhttp/okhttp3/HttpUrl.html new file mode 100644 index 000000000..a62505a13 --- /dev/null +++ b/3.x/okhttp/okhttp3/HttpUrl.html @@ -0,0 +1,1318 @@ + + + + + + +public final class HttpUrl +extends Object+
http or https. Use this
+ class to compose and decompose Internet addresses. For example, this code will compose and print
+ a URL for Google search:
+
+ HttpUrl url = new HttpUrl.Builder()
+ .scheme("https")
+ .host("www.google.com")
+ .addPathSegment("search")
+ .addQueryParameter("q", "polar bears")
+ .build();
+ System.out.println(url);
+
+
+ which prints:
+
+ https://www.google.com/search?q=polar%20bears
+
+
+ As another example, this code prints the human-readable query parameters of a Twitter search:
+
+
+ HttpUrl url = HttpUrl.parse("https://twitter.com/search?q=cute%20%23puppies&f=images");
+ for (int i = 0, size = url.querySize(); i < size; i++) {
+ System.out.println(url.queryParameterName(i) + ": " + url.queryParameterValue(i));
+ }
+
+
+ which prints:
+
+ q: cute #puppies
+ f: images
+
+
+ In addition to composing URLs from their component parts and decomposing URLs into their
+ component parts, this class implements relative URL resolution: what address you'd reach by
+ clicking a relative link on a specified page. For example:
+
+ HttpUrl base = HttpUrl.parse("https://www.youtube.com/user/WatchTheDaily/videos");
+ HttpUrl link = base.resolve("../../watch?v=cbP2N1BQdYc");
+ System.out.println(link);
+
+
+ which prints:
+
+ https://www.youtube.com/watch?v=cbP2N1BQdYc
+
+
+ Sometimes referred to as protocol, A URL's scheme describes what mechanism should be
+ used to retrieve the resource. Although URLs have many schemes (mailto, file,
+ ftp), this class only supports http and https. Use java.net.URI for URLs with arbitrary schemes.
+
+
Username and password are either present, or the empty string "" if absent. This class
+ offers no mechanism to differentiate empty from absent. Neither of these components are popular
+ in practice. Typically HTTP applications use other mechanisms for user identification and
+ authentication.
+
+
The host identifies the webserver that serves the URL's resource. It is either a hostname like
+ square.com or localhost, an IPv4 address like 192.168.0.1, or an IPv6
+ address like ::1.
+
+
Usually a webserver is reachable with multiple identifiers: its IP addresses, registered
+ domain names, and even localhost when connecting from the server itself. Each of a
+ webserver's names is a distinct URL and they are not interchangeable. For example, even if http://square.github.io/dagger and http://google.github.io/dagger are served by the same
+ IP address, the two URLs identify different resources.
+
+
The port used to connect to the webserver. By default this is 80 for HTTP and 443 for HTTPS. + This class never returns -1 for the port: if no port is explicitly specified in the URL then the + scheme's default is used. + +
The path identifies a specific resource on the host. Paths have a hierarchical structure like + "/square/okhttp/issues/1486" and decompose into a list of segments like ["square", "okhttp", + "issues", "1486"]. + +
This class offers methods to compose and decompose paths by segment. It composes each path + from a list of segments by alternating between "/" and the encoded segment. For example the + segments ["a", "b"] build "/a/b" and the segments ["a", "b", ""] build "/a/b/". + +
If a path's last segment is the empty string then the path ends with "/". This class always + builds non-empty paths: if the path is omitted it defaults to "/". The default path's segment + list is a single empty string: [""]. + +
The query is optional: it can be null, empty, or non-empty. For many HTTP URLs the query + string is subdivided into a collection of name-value parameters. This class offers methods to set + the query as the single string, or as individual name-value parameters. With name-value + parameters the values are optional and names may be repeated. + +
The fragment is optional: it can be null, empty, or non-empty. Unlike host, port, path, and + query the fragment is not sent to the webserver: it's private to the client. + +
Each component must be encoded before it is embedded in the complete URL. As we saw above, the
+ string cute #puppies is encoded as cute%20%23puppies when used as a query
+ parameter value.
+
+
Percent encoding replaces a character (like 🍩) with its UTF-8 hex bytes
+ (like %F0%9F%8D%A9). This approach works for whitespace characters, control characters,
+ non-ASCII characters, and characters that already have another meaning in a particular context.
+
+
Percent encoding is used in every URL component except for the hostname. But the set of
+ characters that need to be encoded is different for each component. For example, the path
+ component must escape all of its ? characters, otherwise it could be interpreted as the
+ start of the URL's query. But within the query and fragment components, the ? character
+ doesn't delimit anything and doesn't need to be escaped.
+
+ HttpUrl url = HttpUrl.parse("http://who-let-the-dogs.out").newBuilder()
+ .addPathSegment("_Who?_")
+ .query("_Who?_")
+ .fragment("_Who?_")
+ .build();
+ System.out.println(url);
+
+
+ This prints:
+
+ http://who-let-the-dogs.out/_Who%3F_?_Who?_#_Who?_
+
+
+ When parsing URLs that lack percent encoding where it is required, this class will percent encode
+ the offending characters.
+
+ Hostnames have different requirements and use a different encoding scheme. It consists of IDNA + mapping and Punycode encoding. + +
In order to avoid confusion and discourage phishing attacks, IDNA Mapping transforms names to avoid
+ confusing characters. This includes basic case folding: transforming shouting SQUARE.COM
+ into cool and casual square.com. It also handles more exotic characters. For example, the
+ Unicode trademark sign (™) could be confused for the letters "TM" in http://ho™mail.com.
+ To mitigate this, the single character (™) maps to the string (tm). There is similar policy for
+ all of the 1.1 million Unicode code points. Note that some code points such as "🍩" are
+ not mapped and cannot be used in a hostname.
+
+
Punycode converts a Unicode string to an ASCII
+ string to make international domain names work everywhere. For example, "σ" encodes as "xn--4xa".
+ The encoded string is not human readable, but can be used with classes like InetAddress
+ to establish connections.
+
+
Java includes both java.net.URL and java.net.URI. We offer a new URL
+ model to address problems that the others don't.
+
+
Although they have different content, java.net.URL considers the following two URLs
+ equal, and the equals() method between them returns true:
+
+
java.net.URL unusable for many things. It shouldn't be used as a Map key or in a Set. Doing so is both inefficient because equality may
+ require a DNS lookup, and incorrect because unequal URLs may be equal because of how they are
+ hosted.
+
+ These two URLs are semantically identical, but java.net.URI disagrees:
+
+
:80) and the absent trailing slash (/)
+ cause URI to bucket the two URLs separately. This harms URI's usefulness in collections. Any
+ application that stores information-per-URL will need to either canonicalize manually, or suffer
+ unnecessary redundancy for such URLs.
+
+ Because they don't attempt canonical form, these classes are surprisingly difficult to use + securely. Suppose you're building a webservice that checks that incoming paths are prefixed + "/static/images/" before serving the corresponding assets from the filesystem.
+
+ String attack = "http://example.com/static/images/../../../../../etc/passwd";
+ System.out.println(new URL(attack).getPath());
+ System.out.println(new URI(attack).getPath());
+ System.out.println(HttpUrl.parse(attack).encodedPath());
+
+
+ By canonicalizing the input paths, they are complicit in directory traversal attacks. Code that
+ checks only the path prefix may suffer!
+
+
+ /static/images/../../../../../etc/passwd
+ /static/images/../../../../../etc/passwd
+ /etc/passwd
+
+
+ The java.net.URI class is strict around what URLs it accepts. It rejects URLs like
+ "http://example.com/abc|def" because the '|' character is unsupported. This class is more
+ forgiving: it will automatically percent-encode the '|', yielding "http://example.com/abc%7Cdef".
+ This kind behavior is consistent with web browsers. HttpUrl prefers consistency with
+ major web browsers over consistency with obsolete specifications.
+
+
Neither of the built-in URL models offer direct access to path segments or query parameters.
+ Manually using StringBuilder to assemble these components is cumbersome: do '+'
+ characters get silently replaced with spaces? If a query parameter contains a '&', does that
+ get escaped? By offering methods to read and write individual query parameters directly,
+ application developers are saved from the hassles of encoding and decoding.
+
+
The URL (JDK1.0) and URI (Java 1.4) classes predate builders and instead use telescoping + constructors. For example, there's no API to compose a URI with a custom port without also + providing a query and fragment. + +
Instances of HttpUrl are well-formed and always have a scheme, host, and path. With
+ java.net.URL it's possible to create an awkward URL like http:/ with scheme and
+ path but no hostname. Building APIs that consume such malformed values is difficult!
+
+
This class has a modern API. It avoids punitive checked exceptions: get()
+ throws IllegalArgumentException on invalid input or parse()
+ returns null if the input is an invalid URL. You can even be explicit about whether each
+ component has been encoded already.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+HttpUrl.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
static int |
+defaultPort(String scheme)
+Returns 80 if
+scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise. |
+
String |
+encodedFragment()
+Returns this URL's encoded fragment, like
+"abc" for http://host/#abc. |
+
String |
+encodedPassword()
+Returns the password, or an empty string if none is set.
+ |
+
String |
+encodedPath()
+Returns the entire path of this URL encoded for use in HTTP resource resolution.
+ |
+
List<String> |
+encodedPathSegments()
+Returns a list of encoded path segments like
+["a", "b", "c"] for the URL http://host/a/b/c. |
+
String |
+encodedQuery()
+Returns the query of this URL, encoded for use in HTTP resource resolution.
+ |
+
String |
+encodedUsername()
+Returns the username, or an empty string if none is set.
+ |
+
boolean |
+equals(Object other) |
+
String |
+fragment()
+Returns this URL's fragment, like
+"abc" for http://host/#abc. |
+
static HttpUrl |
+get(String url)
+Returns a new
+HttpUrl representing url. |
+
static HttpUrl |
+get(URI uri) |
+
static HttpUrl |
+get(URL url)
+Returns an
+HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol. |
+
int |
+hashCode() |
+
String |
+host()
+Returns the host address suitable for use with
+InetAddress.getAllByName(String). |
+
boolean |
+isHttps() |
+
HttpUrl.Builder |
+newBuilder() |
+
HttpUrl.Builder |
+newBuilder(String link)
+Returns a builder for the URL that would be retrieved by following
+link from this URL,
+ or null if the resulting URL is not well-formed. |
+
static HttpUrl |
+parse(String url)
+Returns a new
+HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't. |
+
String |
+password()
+Returns the decoded password, or an empty string if none is present.
+ |
+
List<String> |
+pathSegments()
+Returns a list of path segments like
+["a", "b", "c"] for the URL http://host/a/b/c. |
+
int |
+pathSize()
+Returns the number of segments in this URL's path.
+ |
+
int |
+port()
+Returns the explicitly-specified port if one was provided, or the default port for this URL's
+ scheme.
+ |
+
String |
+query()
+Returns this URL's query, like
+"abc" for http://host/?abc. |
+
String |
+queryParameter(String name)
+Returns the first query parameter named
+name decoded using UTF-8, or null if there is
+ no such query parameter. |
+
String |
+queryParameterName(int index)
+Returns the name of the query parameter at
+index. |
+
Set<String> |
+queryParameterNames()
+Returns the distinct query parameter names in this URL, like
+["a", "b"] for http://host/?a=apple&b=banana. |
+
String |
+queryParameterValue(int index)
+Returns the value of the query parameter at
+index. |
+
List<String> |
+queryParameterValues(String name)
+Returns all values for the query parameter
+name ordered by their appearance in this
+ URL. |
+
int |
+querySize()
+Returns the number of query parameters in this URL, like 2 for
+http://host/?a=apple&b=banana. |
+
String |
+redact()
+Returns a string with containing this URL with its username, password, query, and fragment
+ stripped, and its path replaced with
+/.... |
+
HttpUrl |
+resolve(String link)
+Returns the URL that would be retrieved by following
+link from this URL, or null if
+ the resulting URL is not well-formed. |
+
String |
+scheme()
+Returns either "http" or "https".
+ |
+
String |
+topPrivateDomain()
+Returns the domain name of this URL's
+host() that is one level beneath the public
+ suffix by consulting the public suffix list. |
+
String |
+toString() |
+
URI |
+uri()
+Returns this URL as a
+java.net.URI. |
+
URL |
+url()
+Returns this URL as a
+java.net.URL. |
+
String |
+username()
+Returns the decoded username, or an empty string if none is present.
+ |
+
public URL url()+
java.net.URL.public URI uri()+
java.net.URI. Because URI is more strict than this
+ class, the returned URI may be semantically different from this URL:
+
+ [ and | will be escaped.
+ %xx will be encoded like %25xx.
+ These differences may have a significant consequence when the URI is interpreted by a + webserver. For this reason the URI class and this method should be avoided.
public String scheme()+
public boolean isHttps()+
public String encodedUsername()+
| URL | encodedUsername() |
|---|---|
http://host/ | "" |
http://username@host/ | "username" |
http://username:password@host/ | "username" |
http://a%20b:c%20d@host/ | "a%20b" |
public String username()+
| URL | username() |
|---|---|
http://host/ | "" |
http://username@host/ | "username" |
http://username:password@host/ | "username" |
http://a%20b:c%20d@host/ | "a b" |
public String encodedPassword()+
| URL | encodedPassword() |
|---|---|
http://host/ | "" |
http://username@host/ | "" |
http://username:password@host/ | "password" |
http://a%20b:c%20d@host/ | "c%20d" |
public String password()+
| URL | password() |
|---|---|
http://host/ | "" |
http://username@host/ | "" |
http://username:password@host/ | "password" |
http://a%20b:c%20d@host/ | "c d" |
public String host()+
InetAddress.getAllByName(String). May
+ be:
+
+ android.com.
+ 127.0.0.1.
+ ::1. Note that there are no square braces.
+ xn--n3h.net.
+ | URL | host() |
|---|---|
http://android.com/ | "android.com" |
http://127.0.0.1/ | "127.0.0.1" |
http://[::1]/ | "::1" |
http://xn--n3h.net/ | "xn--n3h.net" |
public int port()+
https://square.com:8443/ and 443 for https://square.com/. The result is in [1..65535].
+
+ | URL | port() |
|---|---|
http://host/ | 80 |
http://host:8000/ | 8000 |
https://host/ | 443 |
public static int defaultPort(String scheme)+
scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise.public int pathSize()+
http://host/a/b/c. This is always at least 1.
+
+ | URL | pathSize() |
|---|---|
http://host/ | 1 |
http://host/a/b/c | 3 |
http://host/a/b/c/ | 4 |
public String encodedPath()+
"/".
+
+ | URL | encodedPath() |
|---|---|
http://host/ | "/" |
http://host/a/b/c | "/a/b/c" |
http://host/a/b%20c/d | "/a/b%20c/d" |
public List<String> encodedPathSegments()+
["a", "b", "c"] for the URL http://host/a/b/c. This list is never empty though it may contain a single empty string.
+
+ | URL | encodedPathSegments() |
|---|---|
http://host/ | [""] |
http://host/a/b/c | ["a", "b", "c"] |
http://host/a/b%20c/d | ["a", "b%20c", "d"] |
public List<String> pathSegments()+
["a", "b", "c"] for the URL http://host/a/b/c. This list is never empty though it may contain a single empty string.
+
+ | URL | pathSegments() |
|---|---|
http://host/ | [""] |
http://host/a/b/c" | ["a", "b", "c"] |
http://host/a/b%20c/d" | ["a", "b c", "d"] |
@Nullable +public String encodedQuery()+
| URL | encodedQuery() |
|---|---|
http://host/ | null |
http://host/? | "" |
http://host/?a=apple&k=key+lime | "a=apple&k=key+lime" |
http://host/?a=apple&a=apricot | "a=apple&a=apricot" |
http://host/?a=apple&b | "a=apple&b" |
@Nullable +public String query()+
"abc" for http://host/?abc. Most callers should
+ prefer queryParameterName(int) and queryParameterValue(int) because these methods offer
+ direct access to individual query parameters.
+
+ | URL | query() |
|---|---|
http://host/ | null |
http://host/? | "" |
http://host/?a=apple&k=key+lime | "a=apple&k=key
+ lime" |
http://host/?a=apple&a=apricot | "a=apple&a=apricot" |
http://host/?a=apple&b | "a=apple&b" |
public int querySize()+
http://host/?a=apple&b=banana. If this URL has no query this returns 0. Otherwise it returns
+ one more than the number of "&" separators in the query.
+
+ | URL | querySize() |
|---|---|
http://host/ | 0 |
http://host/? | 1 |
http://host/?a=apple&k=key+lime | 2 |
http://host/?a=apple&a=apricot | 2 |
http://host/?a=apple&b | 2 |
@Nullable +public String queryParameter(String name)+
name decoded using UTF-8, or null if there is
+ no such query parameter.
+
+ | URL | queryParameter("a") |
|---|---|
http://host/ | null |
http://host/? | null |
http://host/?a=apple&k=key+lime | "apple" |
http://host/?a=apple&a=apricot | "apple" |
http://host/?a=apple&b | "apple" |
public Set<String> queryParameterNames()+
["a", "b"] for http://host/?a=apple&b=banana. If this URL has no query this returns the empty set.
+
+ | URL | queryParameterNames() |
|---|---|
http://host/ | [] |
http://host/? | [""] |
http://host/?a=apple&k=key+lime | ["a", "k"] |
http://host/?a=apple&a=apricot | ["a"] |
http://host/?a=apple&b | ["a", "b"] |
public List<String> queryParameterValues(String name)+
name ordered by their appearance in this
+ URL. For example this returns ["banana"] for queryParameterValue("b") on http://host/?a=apple&b=banana.
+
+ | URL | queryParameterValues("a") | queryParameterValues("b") |
|---|---|---|
http://host/ | [] | [] |
http://host/? | [] | [] |
http://host/?a=apple&k=key+lime | ["apple"] | [] |
http://host/?a=apple&a=apricot | ["apple",
+ "apricot"] | [] |
http://host/?a=apple&b | ["apple"] | [null] |
public String queryParameterName(int index)+
index. For example this returns "a"
+ for queryParameterName(0) on http://host/?a=apple&b=banana. This throws if
+ index is not less than the query size.
+
+ | URL | queryParameterName(0) | queryParameterName(1) |
|---|---|---|
http://host/ | exception | exception |
http://host/? | "" | exception |
http://host/?a=apple&k=key+lime | "a" | "k" |
http://host/?a=apple&a=apricot | "a" | "a" |
http://host/?a=apple&b | "a" | "b" |
public String queryParameterValue(int index)+
index. For example this returns "apple" for queryParameterName(0) on http://host/?a=apple&b=banana. This
+ throws if index is not less than the query size.
+
+ | URL | queryParameterValue(0) | queryParameterValue(1) |
|---|---|---|
http://host/ | exception | exception |
http://host/? | null | exception |
http://host/?a=apple&k=key+lime | "apple" | "key lime" |
http://host/?a=apple&a=apricot | "apple" | "apricot" |
http://host/?a=apple&b | "apple" | null |
@Nullable +public String encodedFragment()+
"abc" for http://host/#abc. This
+ returns null if the URL has no fragment.
+
+ | URL | encodedFragment() |
|---|---|
http://host/ | null |
http://host/# | "" |
http://host/#abc | "abc" |
http://host/#abc|def | "abc|def" |
@Nullable +public String fragment()+
"abc" for http://host/#abc. This returns null
+ if the URL has no fragment.
+
+ | URL | fragment() |
|---|---|
http://host/ | null |
http://host/# | "" |
http://host/#abc | "abc" |
http://host/#abc|def | "abc|def" |
public String redact()+
/.... For example, redacting http://username:password@example.com/path returns http://example.com/....@Nullable +public HttpUrl resolve(String link)+
link from this URL, or null if
+ the resulting URL is not well-formed.public HttpUrl.Builder newBuilder()+
@Nullable +public HttpUrl.Builder newBuilder(String link)+
link from this URL,
+ or null if the resulting URL is not well-formed.@Nullable +public static HttpUrl parse(String url)+
HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't.public static HttpUrl get(String url)+
HttpUrl representing url.IllegalArgumentException - If url is not a well-formed HTTP or HTTPS URL.@Nullable +public static HttpUrl get(URL url)+
HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol.@Nullable +public String topPrivateDomain()+
host() that is one level beneath the public
+ suffix by consulting the public suffix list. Returns
+ null if this URL's host() is an IP address or is considered a public suffix by the
+ public suffix list.
+
+ In general this method should not be used to test whether a domain is valid + or routable. Instead, DNS is the recommended source for that information. + +
| URL | topPrivateDomain() |
|---|---|
http://google.com | "google.com" |
http://adwords.google.co.uk | "google.co.uk" |
http://square | null |
http://co.uk | null |
http://localhost | null |
http://127.0.0.1 | null |
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Interceptor.Chain.html b/3.x/okhttp/okhttp3/Interceptor.Chain.html new file mode 100644 index 000000000..b454de362 --- /dev/null +++ b/3.x/okhttp/okhttp3/Interceptor.Chain.html @@ -0,0 +1,358 @@ + + + + + + +public static interface Interceptor.Chain
+| Modifier and Type | +Method and Description | +
|---|---|
Call |
+call() |
+
Connection |
+connection()
+Returns the connection the request will be executed on.
+ |
+
int |
+connectTimeoutMillis() |
+
Response |
+proceed(Request request) |
+
int |
+readTimeoutMillis() |
+
Request |
+request() |
+
Interceptor.Chain |
+withConnectTimeout(int timeout,
+ TimeUnit unit) |
+
Interceptor.Chain |
+withReadTimeout(int timeout,
+ TimeUnit unit) |
+
Interceptor.Chain |
+withWriteTimeout(int timeout,
+ TimeUnit unit) |
+
int |
+writeTimeoutMillis() |
+
Request request()+
Response proceed(Request request) + throws IOException+
IOException@Nullable +Connection connection()+
Call call()+
int connectTimeoutMillis()+
Interceptor.Chain withConnectTimeout(int timeout, + TimeUnit unit)+
int readTimeoutMillis()+
Interceptor.Chain withReadTimeout(int timeout, + TimeUnit unit)+
int writeTimeoutMillis()+
Interceptor.Chain withWriteTimeout(int timeout, + TimeUnit unit)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Interceptor.html b/3.x/okhttp/okhttp3/Interceptor.html new file mode 100644 index 000000000..3ed8cf1e6 --- /dev/null +++ b/3.x/okhttp/okhttp3/Interceptor.html @@ -0,0 +1,248 @@ + + + + + + +public interface Interceptor
+| Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+Interceptor.Chain |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response |
+intercept(Interceptor.Chain chain) |
+
Response intercept(Interceptor.Chain chain) + throws IOException+
IOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/MediaType.html b/3.x/okhttp/okhttp3/MediaType.html new file mode 100644 index 000000000..03921c7c7 --- /dev/null +++ b/3.x/okhttp/okhttp3/MediaType.html @@ -0,0 +1,393 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Charset |
+charset()
+Returns the charset of this media type, or null if this media type doesn't specify a charset.
+ |
+
Charset |
+charset(Charset defaultValue)
+Returns the charset of this media type, or
+defaultValue if either this media type
+ doesn't specify a charset, of it its charset is unsupported by the current runtime. |
+
boolean |
+equals(Object other) |
+
static MediaType |
+get(String string)
+Returns a media type for
+string. |
+
int |
+hashCode() |
+
static MediaType |
+parse(String string)
+Returns a media type for
+string, or null if string is not a well-formed media
+ type. |
+
String |
+subtype()
+Returns a specific media subtype, such as "plain" or "png", "mpeg", "mp4" or "xml".
+ |
+
String |
+toString()
+Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a
+ Content-Type header.
+ |
+
String |
+type()
+Returns the high-level media type, such as "text", "image", "audio", "video", or
+ "application".
+ |
+
public static MediaType get(String string)+
string.IllegalArgumentException - if string is not a well-formed media type.@Nullable +public static MediaType parse(String string)+
string, or null if string is not a well-formed media
+ type.public String type()+
public String subtype()+
@Nullable +public Charset charset()+
@Nullable +public Charset charset(@Nullable + Charset defaultValue)+
defaultValue if either this media type
+ doesn't specify a charset, of it its charset is unsupported by the current runtime.public String toString()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/MultipartBody.Builder.html b/3.x/okhttp/okhttp3/MultipartBody.Builder.html new file mode 100644 index 000000000..cc540c882 --- /dev/null +++ b/3.x/okhttp/okhttp3/MultipartBody.Builder.html @@ -0,0 +1,396 @@ + + + + + + +public static final class MultipartBody.Builder +extends Object+
| Constructor and Description | +
|---|
Builder() |
+
Builder(String boundary) |
+
| Modifier and Type | +Method and Description | +
|---|---|
MultipartBody.Builder |
+addFormDataPart(String name,
+ String value)
+Add a form data part to the body.
+ |
+
MultipartBody.Builder |
+addFormDataPart(String name,
+ String filename,
+ RequestBody body)
+Add a form data part to the body.
+ |
+
MultipartBody.Builder |
+addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
MultipartBody.Builder |
+addPart(MultipartBody.Part part)
+Add a part to the body.
+ |
+
MultipartBody.Builder |
+addPart(RequestBody body)
+Add a part to the body.
+ |
+
MultipartBody |
+build()
+Assemble the specified parts into a request body.
+ |
+
MultipartBody.Builder |
+setType(MediaType type)
+Set the MIME type.
+ |
+
public Builder()+
public Builder(String boundary)+
public MultipartBody.Builder setType(MediaType type)+
type are MultipartBody.MIXED (the default), MultipartBody.ALTERNATIVE, MultipartBody.DIGEST, MultipartBody.PARALLEL and MultipartBody.FORM.public MultipartBody.Builder addPart(RequestBody body)+
public MultipartBody.Builder addPart(@Nullable + Headers headers, + RequestBody body)+
public MultipartBody.Builder addFormDataPart(String name, + String value)+
public MultipartBody.Builder addFormDataPart(String name, + @Nullable + String filename, + RequestBody body)+
public MultipartBody.Builder addPart(MultipartBody.Part part)+
public MultipartBody build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/MultipartBody.Part.html b/3.x/okhttp/okhttp3/MultipartBody.Part.html new file mode 100644 index 000000000..9253169c7 --- /dev/null +++ b/3.x/okhttp/okhttp3/MultipartBody.Part.html @@ -0,0 +1,317 @@ + + + + + + +public static final class MultipartBody.Part +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
RequestBody |
+body() |
+
static MultipartBody.Part |
+create(Headers headers,
+ RequestBody body) |
+
static MultipartBody.Part |
+create(RequestBody body) |
+
static MultipartBody.Part |
+createFormData(String name,
+ String value) |
+
static MultipartBody.Part |
+createFormData(String name,
+ String filename,
+ RequestBody body) |
+
Headers |
+headers() |
+
public static MultipartBody.Part create(RequestBody body)+
public static MultipartBody.Part create(@Nullable + Headers headers, + RequestBody body)+
public static MultipartBody.Part createFormData(String name, + String value)+
public static MultipartBody.Part createFormData(String name, + @Nullable + String filename, + RequestBody body)+
public RequestBody body()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/MultipartBody.html b/3.x/okhttp/okhttp3/MultipartBody.html new file mode 100644 index 000000000..2724534fe --- /dev/null +++ b/3.x/okhttp/okhttp3/MultipartBody.html @@ -0,0 +1,513 @@ + + + + + + +public final class MultipartBody +extends RequestBody+
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+MultipartBody.Builder |
+
static class |
+MultipartBody.Part |
+
| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+ALTERNATIVE
+The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the
+ semantics are different.
+ |
+
static MediaType |
+DIGEST
+This type is syntactically identical to "multipart/mixed", but the semantics are different.
+ |
+
static MediaType |
+FORM
+The media-type multipart/form-data follows the rules of all multipart MIME data streams as
+ outlined in RFC 2046.
+ |
+
static MediaType |
+MIXED
+The "mixed" subtype of "multipart" is intended for use when the body parts are independent and
+ need to be bundled in a particular order.
+ |
+
static MediaType |
+PARALLEL
+This type is syntactically identical to "multipart/mixed", but the semantics are different.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
String |
+boundary() |
+
long |
+contentLength()
+Returns the number of bytes that will be written to
+sink in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown. |
+
MediaType |
+contentType()
+A combination of
+type() and boundary(). |
+
MultipartBody.Part |
+part(int index) |
+
List<MultipartBody.Part> |
+parts() |
+
int |
+size()
+The number of parts in this multipart body.
+ |
+
MediaType |
+type() |
+
void |
+writeTo(okio.BufferedSink sink)
+Writes the content of this request to
+sink. |
+
public static final MediaType MIXED+
public static final MediaType ALTERNATIVE+
public static final MediaType DIGEST+
Content-Type value for a body part is changed from
+ "text/plain" to "message/rfc822".public static final MediaType PARALLEL+
public static final MediaType FORM+
public MediaType type()+
public String boundary()+
public int size()+
public List<MultipartBody.Part> parts()+
public MultipartBody.Part part(int index)+
public MediaType contentType()+
type() and boundary().contentType in class RequestBodypublic long contentLength() + throws IOException+
RequestBodysink in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown.contentLength in class RequestBodyIOExceptionpublic void writeTo(okio.BufferedSink sink) + throws IOException+
RequestBodysink.writeTo in class RequestBodyIOExceptionCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/OkHttpClient.Builder.html b/3.x/okhttp/okhttp3/OkHttpClient.Builder.html new file mode 100644 index 000000000..af80a52fc --- /dev/null +++ b/3.x/okhttp/okhttp3/OkHttpClient.Builder.html @@ -0,0 +1,1050 @@ + + + + + + +public static final class OkHttpClient.Builder +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+addInterceptor(Interceptor interceptor) |
+
OkHttpClient.Builder |
+addNetworkInterceptor(Interceptor interceptor) |
+
OkHttpClient.Builder |
+authenticator(Authenticator authenticator)
+Sets the authenticator used to respond to challenges from origin servers.
+ |
+
OkHttpClient |
+build() |
+
OkHttpClient.Builder |
+cache(Cache cache)
+Sets the response cache to be used to read and write cached responses.
+ |
+
OkHttpClient.Builder |
+callTimeout(Duration duration)
+Sets the default timeout for complete calls.
+ |
+
OkHttpClient.Builder |
+callTimeout(long timeout,
+ TimeUnit unit)
+Sets the default timeout for complete calls.
+ |
+
OkHttpClient.Builder |
+certificatePinner(CertificatePinner certificatePinner)
+Sets the certificate pinner that constrains which certificates are trusted.
+ |
+
OkHttpClient.Builder |
+connectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
OkHttpClient.Builder |
+connectionSpecs(List<ConnectionSpec> connectionSpecs) |
+
OkHttpClient.Builder |
+connectTimeout(Duration duration)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient.Builder |
+connectTimeout(long timeout,
+ TimeUnit unit)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient.Builder |
+cookieJar(CookieJar cookieJar)
+Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
+ outgoing HTTP requests.
+ |
+
OkHttpClient.Builder |
+dispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to set policy and execute asynchronous requests.
+ |
+
OkHttpClient.Builder |
+dns(Dns dns)
+Sets the DNS service used to lookup IP addresses for hostnames.
+ |
+
OkHttpClient.Builder |
+eventListener(EventListener eventListener)
+Configure a single client scoped listener that will receive all analytic events
+ for this client.
+ |
+
OkHttpClient.Builder |
+eventListenerFactory(EventListener.Factory eventListenerFactory)
+Configure a factory to provide per-call scoped listeners that will receive analytic events
+ for this client.
+ |
+
OkHttpClient.Builder |
+followRedirects(boolean followRedirects)
+Configure this client to follow redirects.
+ |
+
OkHttpClient.Builder |
+followSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
+ |
+
OkHttpClient.Builder |
+hostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to requested hostnames for
+ HTTPS connections.
+ |
+
List<Interceptor> |
+interceptors()
+Returns a modifiable list of interceptors that observe the full span of each call: from
+ before the connection is established (if any) until after the response source is selected
+ (either the origin server, cache, or both).
+ |
+
List<Interceptor> |
+networkInterceptors()
+Returns a modifiable list of interceptors that observe a single network request and response.
+ |
+
OkHttpClient.Builder |
+pingInterval(Duration duration)
+Sets the interval between HTTP/2 and web socket pings initiated by this client.
+ |
+
OkHttpClient.Builder |
+pingInterval(long interval,
+ TimeUnit unit)
+Sets the interval between HTTP/2 and web socket pings initiated by this client.
+ |
+
OkHttpClient.Builder |
+protocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote servers.
+ |
+
OkHttpClient.Builder |
+proxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this client.
+ |
+
OkHttpClient.Builder |
+proxyAuthenticator(Authenticator proxyAuthenticator)
+Sets the authenticator used to respond to challenges from proxy servers.
+ |
+
OkHttpClient.Builder |
+proxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy is specified
+ explicitly. |
+
OkHttpClient.Builder |
+readTimeout(Duration duration)
+Sets the default read timeout for new connections.
+ |
+
OkHttpClient.Builder |
+readTimeout(long timeout,
+ TimeUnit unit)
+Sets the default read timeout for new connections.
+ |
+
OkHttpClient.Builder |
+retryOnConnectionFailure(boolean retryOnConnectionFailure)
+Configure this client to retry or not when a connectivity problem is encountered.
+ |
+
OkHttpClient.Builder |
+socketFactory(SocketFactory socketFactory)
+Sets the socket factory used to create connections.
+ |
+
OkHttpClient.Builder |
+sslSocketFactory(SSLSocketFactory sslSocketFactory)
+Deprecated.
+
+SSLSocketFactory does not expose its X509TrustManager, which is
+ a field that OkHttp needs to build a clean certificate chain. This method instead must
+ use reflection to extract the trust manager. Applications should prefer to call sslSocketFactory(SSLSocketFactory, X509TrustManager), which avoids such reflection. |
+
OkHttpClient.Builder |
+sslSocketFactory(SSLSocketFactory sslSocketFactory,
+ X509TrustManager trustManager)
+Sets the socket factory and trust manager used to secure HTTPS connections.
+ |
+
OkHttpClient.Builder |
+writeTimeout(Duration duration)
+Sets the default write timeout for new connections.
+ |
+
OkHttpClient.Builder |
+writeTimeout(long timeout,
+ TimeUnit unit)
+Sets the default write timeout for new connections.
+ |
+
public OkHttpClient.Builder callTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.
+
+ The call timeout spans the entire call: resolving DNS, connecting, writing the request + body, server processing, and reading the response body. If the call requires redirects or + retries all must complete within one timeout period. + +
The default value is 0 which imposes no timeout.
@IgnoreJRERequirement +public OkHttpClient.Builder callTimeout(Duration duration)+
Integer.MAX_VALUE when converted to milliseconds.
+
+ The call timeout spans the entire call: resolving DNS, connecting, writing the request + body, server processing, and reading the response body. If the call requires redirects or + retries all must complete within one timeout period. + +
The default value is 0 which imposes no timeout.
public OkHttpClient.Builder connectTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to
+ milliseconds.
+
+ The connect timeout is applied when connecting a TCP socket to the target host. + The default value is 10 seconds.
@IgnoreJRERequirement +public OkHttpClient.Builder connectTimeout(Duration duration)+
Integer.MAX_VALUE when converted to
+ milliseconds.
+
+ The connect timeout is applied when connecting a TCP socket to the target host. + The default value is 10 seconds.
public OkHttpClient.Builder readTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.
+
+ The read timeout is applied to both the TCP socket and for individual read IO operations
+ including on Source of the Response. The default value is 10 seconds.
Socket.setSoTimeout(int),
+Source.timeout()@IgnoreJRERequirement +public OkHttpClient.Builder readTimeout(Duration duration)+
Integer.MAX_VALUE when converted to milliseconds.
+
+ The read timeout is applied to both the TCP socket and for individual read IO operations
+ including on Source of the Response. The default value is 10 seconds.
Socket.setSoTimeout(int),
+Source.timeout()public OkHttpClient.Builder writeTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.
+
+ The write timeout is applied for individual write IO operations. + The default value is 10 seconds.
Sink.timeout()@IgnoreJRERequirement +public OkHttpClient.Builder writeTimeout(Duration duration)+
Integer.MAX_VALUE when converted to milliseconds.
+
+ The write timeout is applied for individual write IO operations. + The default value is 10 seconds.
Sink.timeout()public OkHttpClient.Builder pingInterval(long interval, + TimeUnit unit)+
If the server does not respond to each ping with a pong within interval, this
+ client will assume that connectivity has been lost. When this happens on a web socket the
+ connection is canceled and its listener is notified
+ of the failure. When it happens on an HTTP/2 connection the connection is closed and any
+ calls it is carrying will fail with an IOException.
+
+
The default value of 0 disables client-initiated pings.
@IgnoreJRERequirement +public OkHttpClient.Builder pingInterval(Duration duration)+
If the server does not respond to each ping with a pong within interval, this
+ client will assume that connectivity has been lost. When this happens on a web socket the
+ connection is canceled and its listener is notified
+ of the failure. When it happens on an HTTP/2 connection the connection is closed and any
+ calls it is carrying will fail with an IOException.
+
+
The default value of 0 disables client-initiated pings.
public OkHttpClient.Builder proxy(@Nullable + Proxy proxy)+
proxySelector, which is only honored when this proxy is null (which
+ it is by default). To disable proxy use completely, call proxy(Proxy.NO_PROXY).public OkHttpClient.Builder proxySelector(ProxySelector proxySelector)+
proxy is specified
+ explicitly. The proxy selector may return multiple proxies; in that case they will be tried
+ in sequence until a successful connection is established.
+
+ If unset, the system-wide default proxy selector will
+ be used.
public OkHttpClient.Builder cookieJar(CookieJar cookieJar)+
If unset, no cookies will be accepted nor provided.
public OkHttpClient.Builder cache(@Nullable + Cache cache)+
public OkHttpClient.Builder dns(Dns dns)+
If unset, the system-wide default DNS will be used.
public OkHttpClient.Builder socketFactory(SocketFactory socketFactory)+
createSocket() method to create unconnected sockets. Overriding
+ this method, e. g., allows the socket to be bound to a specific local address.
+
+ If unset, the system-wide default socket factory will
+ be used.
public OkHttpClient.Builder sslSocketFactory(SSLSocketFactory sslSocketFactory)+
SSLSocketFactory does not expose its X509TrustManager, which is
+ a field that OkHttp needs to build a clean certificate chain. This method instead must
+ use reflection to extract the trust manager. Applications should prefer to call sslSocketFactory(SSLSocketFactory, X509TrustManager), which avoids such reflection.public OkHttpClient.Builder sslSocketFactory(SSLSocketFactory sslSocketFactory, + X509TrustManager trustManager)+
Most applications should not call this method, and instead use the system defaults. Those + classes include special optimizations that can be lost if the implementations are decorated. + +
If necessary, you can create and configure the defaults yourself with the following code: + +
+
+ TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(
+ TrustManagerFactory.getDefaultAlgorithm());
+ trustManagerFactory.init((KeyStore) null);
+ TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
+ if (trustManagers.length != 1 || !(trustManagers[0] instanceof X509TrustManager)) {
+ throw new IllegalStateException("Unexpected default trust managers:"
+ + Arrays.toString(trustManagers));
+ }
+ X509TrustManager trustManager = (X509TrustManager) trustManagers[0];
+
+ SSLContext sslContext = SSLContext.getInstance("TLS");
+ sslContext.init(null, new TrustManager[] { trustManager }, null);
+ SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
+
+ OkHttpClient client = new OkHttpClient.Builder()
+ .sslSocketFactory(sslSocketFactory, trustManager)
+ .build();
+ public OkHttpClient.Builder hostnameVerifier(HostnameVerifier hostnameVerifier)+
If unset, a default hostname verifier will be used.
public OkHttpClient.Builder certificatePinner(CertificatePinner certificatePinner)+
SSL socket factory to establish trust.
+ Pinning certificates avoids the need to trust certificate authorities.public OkHttpClient.Builder authenticator(Authenticator authenticator)+
proxyAuthenticator to set the authenticator for proxy servers.
+
+ If unset, the no authentication will be attempted.
public OkHttpClient.Builder proxyAuthenticator(Authenticator proxyAuthenticator)+
authenticator to set the authenticator for origin servers.
+
+ If unset, the no authentication will be attempted.
public OkHttpClient.Builder connectionPool(ConnectionPool connectionPool)+
If unset, a new connection pool will be used.
public OkHttpClient.Builder followSslRedirects(boolean followProtocolRedirects)+
If unset, protocol redirects will be followed. This is different than the built-in HttpURLConnection's default.
public OkHttpClient.Builder followRedirects(boolean followRedirects)+
public OkHttpClient.Builder retryOnConnectionFailure(boolean retryOnConnectionFailure)+
ConnectionPool reuses sockets
+ to decrease request latency, but these connections will occasionally time out.
+ ProxySelector can be used to
+ attempt multiple proxy servers in sequence, eventually falling back to a direct
+ connection.
+ public OkHttpClient.Builder dispatcher(Dispatcher dispatcher)+
public OkHttpClient.Builder protocols(List<Protocol> protocols)+
The following protocols are currently supported: + +
+ +This is an evolving set. Future releases include support for transitional + protocols. The http/1.1 transport will never be dropped. + +
If multiple protocols are specified, ALPN will be used to + negotiate a transport. Protocol negotiation is only attempted for HTTPS URLs. + +
Protocol.HTTP_1_0 is not supported in this set. Requests are initiated with HTTP/1.1. If the server responds with HTTP/1.0, that will be exposed by Response.protocol().
protocols - the protocols to use, in order of preference. If the list contains Protocol.H2_PRIOR_KNOWLEDGE then that must be the only protocol and HTTPS URLs will not
+ be supported. Otherwise the list must contain Protocol.HTTP_1_1. The list must
+ not contain null or Protocol.HTTP_1_0.public OkHttpClient.Builder connectionSpecs(List<ConnectionSpec> connectionSpecs)+
public List<Interceptor> interceptors()+
public OkHttpClient.Builder addInterceptor(Interceptor interceptor)+
public List<Interceptor> networkInterceptors()+
Interceptor.Chain.proceed(okhttp3.Request) exactly once: it is an error
+ for a network interceptor to short-circuit or repeat a network request.public OkHttpClient.Builder addNetworkInterceptor(Interceptor interceptor)+
public OkHttpClient.Builder eventListener(EventListener eventListener)+
public OkHttpClient.Builder eventListenerFactory(EventListener.Factory eventListenerFactory)+
public OkHttpClient build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/OkHttpClient.html b/3.x/okhttp/okhttp3/OkHttpClient.html new file mode 100644 index 000000000..2608a5f76 --- /dev/null +++ b/3.x/okhttp/okhttp3/OkHttpClient.html @@ -0,0 +1,773 @@ + + + + + + +public class OkHttpClient +extends Object +implements Cloneable, Call.Factory, WebSocket.Factory+
OkHttp performs best when you create a single OkHttpClient instance and reuse it for
+ all of your HTTP calls. This is because each client holds its own connection pool and thread
+ pools. Reusing connections and threads reduces latency and saves memory. Conversely, creating a
+ client for each request wastes resources on idle pools.
+
+
Use new OkHttpClient() to create a shared instance with the default settings:
+
+
+ // The singleton HTTP client.
+ public final OkHttpClient client = new OkHttpClient();
+
+
+ Or use new OkHttpClient.Builder() to create a shared instance with custom settings:
+
+
+ // The singleton HTTP client.
+ public final OkHttpClient client = new OkHttpClient.Builder()
+ .addInterceptor(new HttpLoggingInterceptor())
+ .cache(new Cache(cacheDir, cacheSize))
+ .build();
+
+
+ You can customize a shared OkHttpClient instance with newBuilder(). This builds a
+ client that shares the same connection pool, thread pools, and configuration. Use the builder
+ methods to configure the derived client for a specific purpose.
+
+
This example shows a call with a short 500 millisecond timeout:
+
+ OkHttpClient eagerClient = client.newBuilder()
+ .readTimeout(500, TimeUnit.MILLISECONDS)
+ .build();
+ Response response = eagerClient.newCall(request).execute();
+
+
+ The threads and connections that are held will be released automatically if they remain idle. + But if you are writing a application that needs to aggressively release unused resources you may + do so. + +
Shutdown the dispatcher's executor service with shutdown().
+ This will also cause future calls to the client to be rejected.
+
+ client.dispatcher().executorService().shutdown();
+
+
+ Clear the connection pool with evictAll(). Note that the
+ connection pool's daemon thread may not exit immediately.
+
+ client.connectionPool().evictAll();
+
+
+ If your client has a cache, call close(). Note that it is an error to
+ create calls against a cache that is closed, and doing so will cause the call to crash.
+
+
+ client.cache().close();
+
+
+ OkHttp also uses daemon threads for HTTP/2 connections. These will exit automatically if they + remain idle.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+OkHttpClient.Builder |
+
| Constructor and Description | +
|---|
OkHttpClient() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Authenticator |
+authenticator() |
+
Cache |
+cache() |
+
int |
+callTimeoutMillis()
+Default call timeout (in milliseconds).
+ |
+
CertificatePinner |
+certificatePinner() |
+
ConnectionPool |
+connectionPool() |
+
List<ConnectionSpec> |
+connectionSpecs() |
+
int |
+connectTimeoutMillis()
+Default connect timeout (in milliseconds).
+ |
+
CookieJar |
+cookieJar() |
+
Dispatcher |
+dispatcher() |
+
Dns |
+dns() |
+
EventListener.Factory |
+eventListenerFactory() |
+
boolean |
+followRedirects() |
+
boolean |
+followSslRedirects() |
+
HostnameVerifier |
+hostnameVerifier() |
+
List<Interceptor> |
+interceptors()
+Returns an immutable list of interceptors that observe the full span of each call: from before
+ the connection is established (if any) until after the response source is selected (either the
+ origin server, cache, or both).
+ |
+
List<Interceptor> |
+networkInterceptors()
+Returns an immutable list of interceptors that observe a single network request and response.
+ |
+
OkHttpClient.Builder |
+newBuilder() |
+
Call |
+newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
WebSocket |
+newWebSocket(Request request,
+ WebSocketListener listener)
+Uses
+request to connect a new web socket. |
+
int |
+pingIntervalMillis()
+Web socket and HTTP/2 ping interval (in milliseconds).
+ |
+
List<Protocol> |
+protocols() |
+
Proxy |
+proxy() |
+
Authenticator |
+proxyAuthenticator() |
+
ProxySelector |
+proxySelector() |
+
int |
+readTimeoutMillis()
+Default read timeout (in milliseconds).
+ |
+
boolean |
+retryOnConnectionFailure() |
+
SocketFactory |
+socketFactory() |
+
SSLSocketFactory |
+sslSocketFactory() |
+
int |
+writeTimeoutMillis()
+Default write timeout (in milliseconds).
+ |
+
public int callTimeoutMillis()+
public int connectTimeoutMillis()+
public int readTimeoutMillis()+
public int writeTimeoutMillis()+
public int pingIntervalMillis()+
public ProxySelector proxySelector()+
public CookieJar cookieJar()+
public Dns dns()+
public SocketFactory socketFactory()+
public SSLSocketFactory sslSocketFactory()+
public HostnameVerifier hostnameVerifier()+
public CertificatePinner certificatePinner()+
public Authenticator authenticator()+
public Authenticator proxyAuthenticator()+
public ConnectionPool connectionPool()+
public boolean followSslRedirects()+
public boolean followRedirects()+
public boolean retryOnConnectionFailure()+
public Dispatcher dispatcher()+
public List<ConnectionSpec> connectionSpecs()+
public List<Interceptor> interceptors()+
public List<Interceptor> networkInterceptors()+
Interceptor.Chain.proceed(okhttp3.Request) exactly once: it is an error for
+ a network interceptor to short-circuit or repeat a network request.public EventListener.Factory eventListenerFactory()+
public Call newCall(Request request)+
request to be executed at some point in the future.newCall in interface Call.Factorypublic WebSocket newWebSocket(Request request, + WebSocketListener listener)+
request to connect a new web socket.newWebSocket in interface WebSocket.Factorypublic OkHttpClient.Builder newBuilder()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Protocol.html b/3.x/okhttp/okhttp3/Protocol.html new file mode 100644 index 000000000..ddf801d6f --- /dev/null +++ b/3.x/okhttp/okhttp3/Protocol.html @@ -0,0 +1,486 @@ + + + + + + +public enum Protocol +extends Enum<Protocol>+
URL.getProtocol() returns the
+ scheme (http, https, etc.) of the URL, not the protocol
+ (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol to identify how HTTP messages
+ are framed.| Enum Constant and Description | +
|---|
H2_PRIOR_KNOWLEDGE
+Cleartext HTTP/2 with no "upgrade" round trip.
+ |
+
HTTP_1_0
+An obsolete plaintext framing that does not use persistent sockets by default.
+ |
+
HTTP_1_1
+A plaintext framing that includes persistent connections.
+ |
+
HTTP_2
+The IETF's binary-framed protocol that includes header compression, multiplexing multiple
+ requests on the same socket, and server-push.
+ |
+
QUIC
+QUIC (Quick UDP Internet Connection) is a new multiplexed and secure transport atop UDP,
+ designed from the ground up and optimized for HTTP/2 semantics.
+ |
+
SPDY_3
+Deprecated.
+
+OkHttp has dropped support for SPDY. Prefer
+HTTP_2. |
+
| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+get(String protocol)
+Returns the protocol identified by
+protocol. |
+
String |
+toString()
+Returns the string used to identify this protocol for ALPN, like "http/1.1", "spdy/3.1" or
+ "h2".
+ |
+
static Protocol |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final Protocol HTTP_1_0+
public static final Protocol HTTP_1_1+
This version of OkHttp implements RFC + 7230, and tracks revisions to that spec.
public static final Protocol SPDY_3+
HTTP_2.Current versions of OkHttp do not support this protocol.
public static final Protocol HTTP_2+
HTTP/2 requires deployments of HTTP/2 that use TLS 1.2 support CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 , present in Java 8+ and Android 5+. Servers
+ that enforce this may send an exception message including the string INADEQUATE_SECURITY.
public static final Protocol H2_PRIOR_KNOWLEDGE+
public static final Protocol QUIC+
QUIC is not natively supported by OkHttp, but provided to allow a theoretical + interceptor that provides support.
public static Protocol[] values()+
+for (Protocol c : Protocol.values()) + System.out.println(c); +
public static Protocol valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Protocol get(String protocol) + throws IOException+
protocol.IOException - if protocol is unknown.public String toString()+
toString in class Enum<Protocol>Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Request.Builder.html b/3.x/okhttp/okhttp3/Request.Builder.html new file mode 100644 index 000000000..5db46e7f5 --- /dev/null +++ b/3.x/okhttp/okhttp3/Request.Builder.html @@ -0,0 +1,571 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Request |
+build() |
+
Request.Builder |
+cacheControl(CacheControl cacheControl)
+Sets this request's
+Cache-Control header, replacing any cache control headers already
+ present. |
+
Request.Builder |
+delete() |
+
Request.Builder |
+delete(RequestBody body) |
+
Request.Builder |
+get() |
+
Request.Builder |
+head() |
+
Request.Builder |
+header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Request.Builder |
+headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Request.Builder |
+method(String method,
+ RequestBody body) |
+
Request.Builder |
+patch(RequestBody body) |
+
Request.Builder |
+post(RequestBody body) |
+
Request.Builder |
+put(RequestBody body) |
+
Request.Builder |
+removeHeader(String name)
+Removes all headers named
+name on this builder. |
+
<T> Request.Builder |
+tag(Class<? super T> type,
+ T tag)
+Attaches
+tag to the request using type as a key. |
+
Request.Builder |
+tag(Object tag)
+Attaches
+tag to the request using Object.class as a key. |
+
Request.Builder |
+url(HttpUrl url) |
+
Request.Builder |
+url(String url)
+Sets the URL target of this request.
+ |
+
Request.Builder |
+url(URL url)
+Sets the URL target of this request.
+ |
+
public Request.Builder url(HttpUrl url)+
public Request.Builder url(String url)+
IllegalArgumentException - if url is not a valid HTTP or HTTPS URL. Avoid this
+ exception by calling HttpUrl.parse(java.lang.String); it returns null for invalid URLs.public Request.Builder url(URL url)+
IllegalArgumentException - if the scheme of url is not http or https.public Request.Builder header(String name, + String value)+
name to value. If this request already has any headers
+ with that name, they are all replaced.public Request.Builder addHeader(String name, + String value)+
name and value. Prefer this method for multiply-valued
+ headers like "Cookie".
+
+ Note that for some headers including Content-Length and Content-Encoding,
+ OkHttp may replace value with a header derived from the request body.
public Request.Builder removeHeader(String name)+
name on this builder.public Request.Builder headers(Headers headers)+
headers.public Request.Builder cacheControl(CacheControl cacheControl)+
Cache-Control header, replacing any cache control headers already
+ present. If cacheControl doesn't define any directives, this clears this request's
+ cache-control headers.public Request.Builder get()+
public Request.Builder head()+
public Request.Builder post(RequestBody body)+
public Request.Builder delete(@Nullable + RequestBody body)+
public Request.Builder delete()+
public Request.Builder put(RequestBody body)+
public Request.Builder patch(RequestBody body)+
public Request.Builder method(String method, + @Nullable + RequestBody body)+
public Request.Builder tag(@Nullable + Object tag)+
tag to the request using Object.class as a key.public <T> Request.Builder tag(Class<? super T> type, + @Nullable + T tag)+
tag to the request using type as a key. Tags can be read from a
+ request using Request.tag(). Use null to remove any existing tag assigned for type.
+
+ Use this API to attach timing, debugging, or other application data to a request so that + you may read it in interceptors, event listeners, or callbacks.
public Request build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Request.html b/3.x/okhttp/okhttp3/Request.html new file mode 100644 index 000000000..a501aaf19 --- /dev/null +++ b/3.x/okhttp/okhttp3/Request.html @@ -0,0 +1,426 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Request.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
RequestBody |
+body() |
+
CacheControl |
+cacheControl()
+Returns the cache control directives for this response.
+ |
+
String |
+header(String name) |
+
Headers |
+headers() |
+
List<String> |
+headers(String name) |
+
boolean |
+isHttps() |
+
String |
+method() |
+
Request.Builder |
+newBuilder() |
+
Object |
+tag()
+Returns the tag attached with
+Object.class as a key, or null if no tag is attached with
+ that key. |
+
<T> T |
+tag(Class<? extends T> type)
+Returns the tag attached with
+type as a key, or null if no tag is attached with that
+ key. |
+
String |
+toString() |
+
HttpUrl |
+url() |
+
public HttpUrl url()+
public String method()+
public Headers headers()+
@Nullable +public RequestBody body()+
@Nullable +public Object tag()+
Object.class as a key, or null if no tag is attached with
+ that key.
+
+ Prior to OkHttp 3.11, this method never returned null if no tag was attached. Instead it
+ returned either this request, or the request upon which this request was derived with newBuilder().
@Nullable +public <T> T tag(Class<? extends T> type)+
type as a key, or null if no tag is attached with that
+ key.public Request.Builder newBuilder()+
public CacheControl cacheControl()+
Cache-Control header.public boolean isHttps()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/RequestBody.html b/3.x/okhttp/okhttp3/RequestBody.html new file mode 100644 index 000000000..9154a6e50 --- /dev/null +++ b/3.x/okhttp/okhttp3/RequestBody.html @@ -0,0 +1,493 @@ + + + + + + +public abstract class RequestBody +extends Object+
| Constructor and Description | +
|---|
RequestBody() |
+
| Modifier and Type | +Method and Description | +
|---|---|
long |
+contentLength()
+Returns the number of bytes that will be written to
+sink in a call to writeTo(okio.BufferedSink),
+ or -1 if that count is unknown. |
+
abstract MediaType |
+contentType()
+Returns the Content-Type header for this body.
+ |
+
static RequestBody |
+create(MediaType contentType,
+ byte[] content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+create(MediaType contentType,
+ byte[] content,
+ int offset,
+ int byteCount)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+create(MediaType contentType,
+ okio.ByteString content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+create(MediaType contentType,
+ File file)
+Returns a new request body that transmits the content of
+file. |
+
static RequestBody |
+create(MediaType contentType,
+ String content)
+Returns a new request body that transmits
+content. |
+
boolean |
+isDuplex()
+A duplex request body is special in how it is transmitted on the network and
+ in the API contract between OkHttp and the application.
+ |
+
boolean |
+isOneShot()
+Returns true if this body expects at most one call to
+writeTo(okio.BufferedSink) and can be transmitted
+ at most once. |
+
abstract void |
+writeTo(okio.BufferedSink sink)
+Writes the content of this request to
+sink. |
+
@Nullable +public abstract MediaType contentType()+
public long contentLength() + throws IOException+
sink in a call to writeTo(okio.BufferedSink),
+ or -1 if that count is unknown.IOExceptionpublic abstract void writeTo(okio.BufferedSink sink) + throws IOException+
sink.IOExceptionpublic boolean isDuplex()+
This method returns false unless it is overridden by a subclass. + +
With regular HTTP calls the request always completes sending before the response may begin + receiving. With duplex the request and response may be interleaved! That is, request body bytes + may be sent after response headers or body bytes have been received. + +
Though any call may be initiated as a duplex call, only web servers that are specially + designed for this nonstandard interaction will use it. As of 2019-01, the only widely-used + implementation of this pattern is gRPC. + +
Because the encoding of interleaved data is not well-defined for HTTP/1, duplex request + bodies may only be used with HTTP/2. Calls to HTTP/1 servers will fail before the HTTP request + is transmitted. If you cannot ensure that your client and server both support HTTP/2, do not + use this feature. + +
Duplex APIs
+ +With regular request bodies it is not legal to write bytes to the sink passed to writeTo(okio.BufferedSink) after that method returns. For duplex requests bodies that condition is
+ lifted. Such writes occur on an application-provided thread and may occur concurrently with
+ reads of the ResponseBody. For duplex request bodies, writeTo(okio.BufferedSink) should return
+ quickly, possibly by handing off the provided request body to another thread to perform
+ writing.
public boolean isOneShot()+
writeTo(okio.BufferedSink) and can be transmitted
+ at most once. This is typically used when writing the request body is destructive and it is not
+ possible to recreate the request body after it has been sent.
+
+ This method returns false unless it is overridden by a subclass. + +
By default OkHttp will attempt to retransmit request bodies when the original request fails
+ due to a stale connection, a client timeout (HTTP 408), a satisfied authorization challenge
+ (HTTP 401 and 407), or a retryable server failure (HTTP 503 with a Retry-After: 0
+ header).
public static RequestBody create(@Nullable + MediaType contentType, + String content)+
content. If contentType is non-null
+ and lacks a charset, this will use UTF-8.public static RequestBody create(@Nullable + MediaType contentType, + okio.ByteString content)+
content.public static RequestBody create(@Nullable + MediaType contentType, + byte[] content)+
content.public static RequestBody create(@Nullable + MediaType contentType, + byte[] content, + int offset, + int byteCount)+
content.public static RequestBody create(@Nullable + MediaType contentType, + File file)+
file.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Response.Builder.html b/3.x/okhttp/okhttp3/Response.Builder.html new file mode 100644 index 000000000..c946710f9 --- /dev/null +++ b/3.x/okhttp/okhttp3/Response.Builder.html @@ -0,0 +1,493 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Response.Builder |
+body(ResponseBody body) |
+
Response |
+build() |
+
Response.Builder |
+cacheResponse(Response cacheResponse) |
+
Response.Builder |
+code(int code) |
+
Response.Builder |
+handshake(Handshake handshake) |
+
Response.Builder |
+header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Response.Builder |
+headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Response.Builder |
+message(String message) |
+
Response.Builder |
+networkResponse(Response networkResponse) |
+
Response.Builder |
+priorResponse(Response priorResponse) |
+
Response.Builder |
+protocol(Protocol protocol) |
+
Response.Builder |
+receivedResponseAtMillis(long receivedResponseAtMillis) |
+
Response.Builder |
+removeHeader(String name)
+Removes all headers named
+name on this builder. |
+
Response.Builder |
+request(Request request) |
+
Response.Builder |
+sentRequestAtMillis(long sentRequestAtMillis) |
+
public Response.Builder request(Request request)+
public Response.Builder protocol(Protocol protocol)+
public Response.Builder code(int code)+
public Response.Builder message(String message)+
public Response.Builder handshake(@Nullable + Handshake handshake)+
public Response.Builder header(String name, + String value)+
name to value. If this request already has any headers
+ with that name, they are all replaced.public Response.Builder addHeader(String name, + String value)+
name and value. Prefer this method for multiply-valued
+ headers like "Set-Cookie".public Response.Builder removeHeader(String name)+
name on this builder.public Response.Builder headers(Headers headers)+
headers.public Response.Builder body(@Nullable + ResponseBody body)+
public Response.Builder networkResponse(@Nullable + Response networkResponse)+
public Response.Builder cacheResponse(@Nullable + Response cacheResponse)+
public Response.Builder priorResponse(@Nullable + Response priorResponse)+
public Response.Builder sentRequestAtMillis(long sentRequestAtMillis)+
public Response.Builder receivedResponseAtMillis(long receivedResponseAtMillis)+
public Response build()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Response.html b/3.x/okhttp/okhttp3/Response.html new file mode 100644 index 000000000..6b7166af3 --- /dev/null +++ b/3.x/okhttp/okhttp3/Response.html @@ -0,0 +1,702 @@ + + + + + + +public final class Response +extends Object +implements Closeable+
This class implements Closeable. Closing it simply closes its response body. See
+ ResponseBody for an explanation and examples.
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+Response.Builder |
+
| Modifier and Type | +Method and Description | +
|---|---|
ResponseBody |
+body()
+Returns a non-null value if this response was passed to
+Callback.onResponse(okhttp3.Call, okhttp3.Response) or returned
+ from Call.execute(). |
+
CacheControl |
+cacheControl()
+Returns the cache control directives for this response.
+ |
+
Response |
+cacheResponse()
+Returns the raw response received from the cache.
+ |
+
List<Challenge> |
+challenges()
+Returns the RFC 7235 authorization challenges appropriate for this response's code.
+ |
+
void |
+close()
+Closes the response body.
+ |
+
int |
+code()
+Returns the HTTP status code.
+ |
+
Handshake |
+handshake()
+Returns the TLS handshake of the connection that carried this response, or null if the response
+ was received without TLS.
+ |
+
String |
+header(String name) |
+
String |
+header(String name,
+ String defaultValue) |
+
Headers |
+headers() |
+
List<String> |
+headers(String name) |
+
boolean |
+isRedirect()
+Returns true if this response redirects to another resource.
+ |
+
boolean |
+isSuccessful()
+Returns true if the code is in [200..300), which means the request was successfully received,
+ understood, and accepted.
+ |
+
String |
+message()
+Returns the HTTP status message.
+ |
+
Response |
+networkResponse()
+Returns the raw response received from the network.
+ |
+
Response.Builder |
+newBuilder() |
+
ResponseBody |
+peekBody(long byteCount)
+Peeks up to
+byteCount bytes from the response body and returns them as a new response
+ body. |
+
Response |
+priorResponse()
+Returns the response for the HTTP redirect or authorization challenge that triggered this
+ response, or null if this response wasn't triggered by an automatic retry.
+ |
+
Protocol |
+protocol()
+Returns the HTTP protocol, such as
+Protocol.HTTP_1_1 or Protocol.HTTP_1_0. |
+
long |
+receivedResponseAtMillis()
+Returns a timestamp taken immediately after OkHttp
+ received this response's headers from the network.
+ |
+
Request |
+request()
+The wire-level request that initiated this HTTP response.
+ |
+
long |
+sentRequestAtMillis()
+Returns a timestamp taken immediately before OkHttp
+ transmitted the initiating request over the network.
+ |
+
String |
+toString() |
+
Headers |
+trailers()
+Returns the trailers after the HTTP response, which may be empty.
+ |
+
public Request request()+
Content-Length from the request body.
+ public Protocol protocol()+
Protocol.HTTP_1_1 or Protocol.HTTP_1_0.public int code()+
public boolean isSuccessful()+
public String message()+
@Nullable +public Handshake handshake()+
public Headers headers()+
public Headers trailers() + throws IOException+
IOExceptionpublic ResponseBody peekBody(long byteCount) + throws IOException+
byteCount bytes from the response body and returns them as a new response
+ body. If fewer than byteCount bytes are in the response body, the full response body is
+ returned. If more than byteCount bytes are in the response body, the returned value
+ will be truncated to byteCount bytes.
+
+ It is an error to call this method after the body has been consumed. + +
Warning: this method loads the requested bytes into memory. Most
+ applications should set a modest limit on byteCount, such as 1 MiB.
IOException@Nullable +public ResponseBody body()+
Callback.onResponse(okhttp3.Call, okhttp3.Response) or returned
+ from Call.execute(). Response bodies must be closed and may
+ be consumed only once.
+
+ This always returns null on responses returned from cacheResponse, networkResponse, and priorResponse().
public Response.Builder newBuilder()+
public boolean isRedirect()+
@Nullable +public Response networkResponse()+
@Nullable +public Response cacheResponse()+
@Nullable +public Response priorResponse()+
public List<Challenge> challenges()+
If a challenge uses the token68 variant instead of auth params, there is exactly one
+ auth param in the challenge at key null. Invalid headers and challenges are ignored.
+ No semantic validation is done, for example that Basic auth must have a realm
+ auth param, this is up to the caller that interprets these challenges.
public CacheControl cacheControl()+
Cache-Control header.public long sentRequestAtMillis()+
public long receivedResponseAtMillis()+
public void close()+
body().close().
+
+ It is an error to close a response that is not eligible for a body. This includes the
+ responses returned from cacheResponse, networkResponse, and priorResponse().
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/ResponseBody.html b/3.x/okhttp/okhttp3/ResponseBody.html new file mode 100644 index 000000000..493472e55 --- /dev/null +++ b/3.x/okhttp/okhttp3/ResponseBody.html @@ -0,0 +1,568 @@ + + + + + + +public abstract class ResponseBody +extends Object +implements Closeable+
Both this class and Response implement Closeable. Closing a response simply
+ closes its response body. If you invoke Call.execute() or implement Callback.onResponse(okhttp3.Call, okhttp3.Response) you must close this body by calling any of the following methods:
+
+
There is no benefit to invoking multiple close() methods for the same response body.
+
+
For synchronous calls, the easiest way to make sure a response body is closed is with a try block. With this structure the compiler inserts an implicit finally clause that
+ calls close() for you.
+
+
+
+ Call call = client.newCall(request);
+ try (Response response = call.execute()) {
+ ... // Use the response.
+ }
+
+
+ You can use a similar block for asynchronous calls:
+
+ Call call = client.newCall(request);
+ call.enqueue(new Callback() {
+ public void onResponse(Call call, Response response) throws IOException {
+ try (ResponseBody responseBody = response.body()) {
+ ... // Use the response.
+ }
+ }
+
+ public void onFailure(Call call, IOException e) {
+ ... // Handle the failure.
+ }
+ });
+
+
+ These examples will not work if you're consuming the response body on another thread. In such
+ cases the consuming thread must call close() when it has finished reading the response
+ body.
+
+ This class may be used to stream very large responses. For example, it is possible to use this + class to read a response that is larger than the entire memory allocated to the current process. + It can even stream a response larger than the total storage on the current device, which is a + common requirement for video streaming applications. + +
Because this class does not buffer the full response in memory, the application may not
+ re-read the bytes of the response. Use this one shot to read the entire response into memory with
+ bytes() or string(). Or stream the response with either source(),
+ byteStream(), or charStream().
| Constructor and Description | +
|---|
ResponseBody() |
+
| Modifier and Type | +Method and Description | +
|---|---|
byte[] |
+bytes()
+Returns the response as a byte array.
+ |
+
InputStream |
+byteStream() |
+
Reader |
+charStream()
+Returns the response as a character stream.
+ |
+
void |
+close() |
+
abstract long |
+contentLength()
+Returns the number of bytes in that will returned by
+bytes(), or byteStream(), or
+ -1 if unknown. |
+
abstract MediaType |
+contentType() |
+
static ResponseBody |
+create(MediaType contentType,
+ byte[] content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+create(MediaType contentType,
+ okio.ByteString content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+create(MediaType contentType,
+ long contentLength,
+ okio.BufferedSource content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+create(MediaType contentType,
+ String content)
+Returns a new response body that transmits
+content. |
+
abstract okio.BufferedSource |
+source() |
+
String |
+string()
+Returns the response as a string.
+ |
+
public abstract long contentLength()+
bytes(), or byteStream(), or
+ -1 if unknown.public final InputStream byteStream()+
public abstract okio.BufferedSource source()+
public final byte[] bytes() + throws IOException+
This method loads entire response body into memory. If the response body is very large this
+ may trigger an OutOfMemoryError. Prefer to stream the response body if this is a
+ possibility for your response.
IOExceptionpublic final Reader charStream()+
If the response starts with a Byte + Order Mark (BOM), it is consumed and used to determine the charset of the response bytes. + +
Otherwise if the response has a Content-Type header that specifies a charset, that is used + to determine the charset of the response bytes. + +
Otherwise the response bytes are decoded as UTF-8.
public final String string() + throws IOException+
If the response starts with a Byte + Order Mark (BOM), it is consumed and used to determine the charset of the response bytes. + +
Otherwise if the response has a Content-Type header that specifies a charset, that is used + to determine the charset of the response bytes. + +
Otherwise the response bytes are decoded as UTF-8. + +
This method loads entire response body into memory. If the response body is very large this
+ may trigger an OutOfMemoryError. Prefer to stream the response body if this is a
+ possibility for your response.
IOExceptionpublic void close()+
close in interface Closeableclose in interface AutoCloseablepublic static ResponseBody create(@Nullable + MediaType contentType, + String content)+
content. If contentType is non-null
+ and lacks a charset, this will use UTF-8.public static ResponseBody create(@Nullable + MediaType contentType, + byte[] content)+
content.public static ResponseBody create(@Nullable + MediaType contentType, + okio.ByteString content)+
content.public static ResponseBody create(@Nullable + MediaType contentType, + long contentLength, + okio.BufferedSource content)+
content.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/Route.html b/3.x/okhttp/okhttp3/Route.html new file mode 100644 index 000000000..fd953712b --- /dev/null +++ b/3.x/okhttp/okhttp3/Route.html @@ -0,0 +1,389 @@ + + + + + + +public final class Route +extends Object+
Each route is a specific selection of these options.
| Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Address |
+address() |
+
boolean |
+equals(Object other) |
+
int |
+hashCode() |
+
Proxy |
+proxy()
+Returns the
+Proxy of this route. |
+
boolean |
+requiresTunnel()
+Returns true if this route tunnels HTTPS through an HTTP proxy.
+ |
+
InetSocketAddress |
+socketAddress() |
+
String |
+toString() |
+
public Route(Address address, + Proxy proxy, + InetSocketAddress inetSocketAddress)+
public Address address()+
public Proxy proxy()+
Proxy of this route.
+
+ Warning: This may disagree with Address.proxy when it is null. When
+ the address's proxy is null, the proxy selector is used.public InetSocketAddress socketAddress()+
public boolean requiresTunnel()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/TlsVersion.html b/3.x/okhttp/okhttp3/TlsVersion.html new file mode 100644 index 000000000..91a356d98 --- /dev/null +++ b/3.x/okhttp/okhttp3/TlsVersion.html @@ -0,0 +1,404 @@ + + + + + + +public enum TlsVersion +extends Enum<TlsVersion>+
SSLSocket.setEnabledProtocols(java.lang.String[]).| Enum Constant and Description | +
|---|
SSL_3_0 |
+
TLS_1_0 |
+
TLS_1_1 |
+
TLS_1_2 |
+
TLS_1_3 |
+
| Modifier and Type | +Method and Description | +
|---|---|
static TlsVersion |
+forJavaName(String javaName) |
+
String |
+javaName() |
+
static TlsVersion |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static TlsVersion[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final TlsVersion TLS_1_3+
public static final TlsVersion TLS_1_2+
public static final TlsVersion TLS_1_1+
public static final TlsVersion TLS_1_0+
public static final TlsVersion SSL_3_0+
public static TlsVersion[] values()+
+for (TlsVersion c : TlsVersion.values()) + System.out.println(c); +
public static TlsVersion valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TlsVersion forJavaName(String javaName)+
public String javaName()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/WebSocket.Factory.html b/3.x/okhttp/okhttp3/WebSocket.Factory.html new file mode 100644 index 000000000..a21fa9f04 --- /dev/null +++ b/3.x/okhttp/okhttp3/WebSocket.Factory.html @@ -0,0 +1,237 @@ + + + + + + +public static interface WebSocket.Factory
+| Modifier and Type | +Method and Description | +
|---|---|
WebSocket |
+newWebSocket(Request request,
+ WebSocketListener listener)
+Creates a new web socket and immediately returns it.
+ |
+
WebSocket newWebSocket(Request request, + WebSocketListener listener)+
listener
+ will be notified. The caller must either close or cancel the returned web socket when it is
+ no longer in use.Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/WebSocket.html b/3.x/okhttp/okhttp3/WebSocket.html new file mode 100644 index 000000000..278908685 --- /dev/null +++ b/3.x/okhttp/okhttp3/WebSocket.html @@ -0,0 +1,394 @@ + + + + + + +public interface WebSocket
+OkHttpClient.
+
+ | Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+WebSocket.Factory |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+cancel()
+Immediately and violently release resources held by this web socket, discarding any enqueued
+ messages.
+ |
+
boolean |
+close(int code,
+ String reason)
+Attempts to initiate a graceful shutdown of this web socket.
+ |
+
long |
+queueSize()
+Returns the size in bytes of all messages enqueued to be transmitted to the server.
+ |
+
Request |
+request()
+Returns the original request that initiated this web socket.
+ |
+
boolean |
+send(okio.ByteString bytes)
+Attempts to enqueue
+bytes to be sent as a the data of a binary (type 0x2)
+ message. |
+
boolean |
+send(String text)
+Attempts to enqueue
+text to be UTF-8 encoded and sent as a the data of a text (type
+ 0x1) message. |
+
Request request()+
long queueSize()+
boolean send(String text)+
text to be UTF-8 encoded and sent as a the data of a text (type
+ 0x1) message.
+
+ This method returns true if the message was enqueued. Messages that would overflow the + outgoing message buffer will be rejected and trigger a graceful shutdown of + this web socket. This method returns false in that case, and in any other case where this + web socket is closing, closed, or canceled. + +
This method returns immediately.
boolean send(okio.ByteString bytes)+
bytes to be sent as a the data of a binary (type 0x2)
+ message.
+
+ This method returns true if the message was enqueued. Messages that would overflow the + outgoing message buffer (16 MiB) will be rejected and trigger a + graceful shutdown of this web socket. This method returns false in that + case, and in any other case where this web socket is closing, closed, or canceled. + +
This method returns immediately.
boolean close(int code, + @Nullable + String reason)+
send(java.lang.String) will
+ return false and their messages will not be enqueued.
+
+ This returns true if a graceful shutdown was initiated by this call. It returns false if + a graceful shutdown was already underway or if the web socket is already closed or canceled.
code - Status code as defined by Section 7.4 of RFC 6455.reason - Reason for shutting down or null.IllegalArgumentException - if code is invalid.void cancel()+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/WebSocketListener.html b/3.x/okhttp/okhttp3/WebSocketListener.html new file mode 100644 index 000000000..4bebf3432 --- /dev/null +++ b/3.x/okhttp/okhttp3/WebSocketListener.html @@ -0,0 +1,382 @@ + + + + + + +public abstract class WebSocketListener +extends Object+
| Constructor and Description | +
|---|
WebSocketListener() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+onClosed(WebSocket webSocket,
+ int code,
+ String reason)
+Invoked when both peers have indicated that no more messages will be transmitted and the
+ connection has been successfully released.
+ |
+
void |
+onClosing(WebSocket webSocket,
+ int code,
+ String reason)
+Invoked when the remote peer has indicated that no more incoming messages will be
+ transmitted.
+ |
+
void |
+onFailure(WebSocket webSocket,
+ Throwable t,
+ Response response)
+Invoked when a web socket has been closed due to an error reading from or writing to the
+ network.
+ |
+
void |
+onMessage(WebSocket webSocket,
+ okio.ByteString bytes)
+Invoked when a binary (type
+0x2) message has been received. |
+
void |
+onMessage(WebSocket webSocket,
+ String text)
+Invoked when a text (type
+0x1) message has been received. |
+
void |
+onOpen(WebSocket webSocket,
+ Response response)
+Invoked when a web socket has been accepted by the remote peer and may begin transmitting
+ messages.
+ |
+
public void onOpen(WebSocket webSocket, + Response response)+
public void onMessage(WebSocket webSocket, + String text)+
0x1) message has been received.public void onMessage(WebSocket webSocket, + okio.ByteString bytes)+
0x2) message has been received.public void onClosing(WebSocket webSocket, + int code, + String reason)+
public void onClosed(WebSocket webSocket, + int code, + String reason)+
public void onFailure(WebSocket webSocket, + Throwable t, + @Nullable + Response response)+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Address.html b/3.x/okhttp/okhttp3/class-use/Address.html new file mode 100644 index 000000000..e0eeb4c8c --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Address.html @@ -0,0 +1,162 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Address |
+Route.address() |
+
| Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Authenticator.html b/3.x/okhttp/okhttp3/class-use/Authenticator.html new file mode 100644 index 000000000..14e85621d --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Authenticator.html @@ -0,0 +1,217 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static Authenticator |
+Authenticator.NONE
+An authenticator that knows no credentials and makes no attempt to authenticate.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Authenticator |
+OkHttpClient.authenticator() |
+
Authenticator |
+OkHttpClient.proxyAuthenticator() |
+
Authenticator |
+Address.proxyAuthenticator()
+Returns the client's proxy authenticator.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.authenticator(Authenticator authenticator)
+Sets the authenticator used to respond to challenges from origin servers.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.proxyAuthenticator(Authenticator proxyAuthenticator)
+Sets the authenticator used to respond to challenges from proxy servers.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator proxyAuthenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Cache.html b/3.x/okhttp/okhttp3/class-use/Cache.html new file mode 100644 index 000000000..5ba987a6e --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Cache.html @@ -0,0 +1,164 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+OkHttpClient.cache() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.cache(Cache cache)
+Sets the response cache to be used to read and write cached responses.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/CacheControl.Builder.html b/3.x/okhttp/okhttp3/class-use/CacheControl.Builder.html new file mode 100644 index 000000000..5c3edf705 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CacheControl.Builder.html @@ -0,0 +1,194 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
CacheControl.Builder |
+CacheControl.Builder.immutable() |
+
CacheControl.Builder |
+CacheControl.Builder.maxAge(int maxAge,
+ TimeUnit timeUnit)
+Sets the maximum age of a cached response.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.maxStale(int maxStale,
+ TimeUnit timeUnit)
+Accept cached responses that have exceeded their freshness lifetime by up to
+maxStale. |
+
CacheControl.Builder |
+CacheControl.Builder.minFresh(int minFresh,
+ TimeUnit timeUnit)
+Sets the minimum number of seconds that a response will continue to be fresh for.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.noCache()
+Don't accept an unvalidated cached response.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.noStore()
+Don't store the server's response in any cache.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.noTransform()
+Don't accept a transformed response.
+ |
+
CacheControl.Builder |
+CacheControl.Builder.onlyIfCached()
+Only accept the response if it is in the cache.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/CacheControl.html b/3.x/okhttp/okhttp3/class-use/CacheControl.html new file mode 100644 index 000000000..f712d69a9 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CacheControl.html @@ -0,0 +1,205 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static CacheControl |
+CacheControl.FORCE_CACHE
+Cache control request directives that uses the cache only, even if the cached response is
+ stale.
+ |
+
static CacheControl |
+CacheControl.FORCE_NETWORK
+Cache control request directives that require network validation of responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
CacheControl |
+CacheControl.Builder.build() |
+
CacheControl |
+Request.cacheControl()
+Returns the cache control directives for this response.
+ |
+
CacheControl |
+Response.cacheControl()
+Returns the cache control directives for this response.
+ |
+
static CacheControl |
+CacheControl.parse(Headers headers)
+Returns the cache directives of
+headers. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+Request.Builder.cacheControl(CacheControl cacheControl)
+Sets this request's
+Cache-Control header, replacing any cache control headers already
+ present. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Call.Factory.html b/3.x/okhttp/okhttp3/class-use/Call.Factory.html new file mode 100644 index 000000000..2426da526 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Call.Factory.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+OkHttpClient
+Factory for calls, which can be used to send HTTP requests and read their
+ responses.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Call.html b/3.x/okhttp/okhttp3/class-use/Call.html new file mode 100644 index 000000000..f9eb34478 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Call.html @@ -0,0 +1,371 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Call |
+Interceptor.Chain.call() |
+
Call |
+Call.clone()
+Create a new, identical call to this one which can be enqueued or executed even if this call
+ has already been.
+ |
+
Call |
+OkHttpClient.newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
Call |
+Call.Factory.newCall(Request request) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Call> |
+Dispatcher.queuedCalls()
+Returns a snapshot of the calls currently awaiting execution.
+ |
+
List<Call> |
+Dispatcher.runningCalls()
+Returns a snapshot of the calls currently being executed.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+EventListener.callEnd(Call call)
+Invoked immediately after a call has completely ended.
+ |
+
void |
+EventListener.callFailed(Call call,
+ IOException ioe)
+Invoked when a call fails permanently.
+ |
+
void |
+EventListener.callStart(Call call)
+Invoked as soon as a call is enqueued or executed by a client.
+ |
+
void |
+EventListener.connectEnd(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy,
+ Protocol protocol)
+Invoked immediately after a socket connection was attempted.
+ |
+
void |
+EventListener.connectFailed(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy,
+ Protocol protocol,
+ IOException ioe)
+Invoked when a connection attempt fails.
+ |
+
void |
+EventListener.connectionAcquired(Call call,
+ Connection connection)
+Invoked after a connection has been acquired for the
+call. |
+
void |
+EventListener.connectionReleased(Call call,
+ Connection connection)
+Invoked after a connection has been released for the
+call. |
+
void |
+EventListener.connectStart(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy)
+Invoked just prior to initiating a socket connection.
+ |
+
EventListener |
+EventListener.Factory.create(Call call)
+Creates an instance of the
+EventListener for a particular Call. |
+
void |
+EventListener.dnsEnd(Call call,
+ String domainName,
+ List<InetAddress> inetAddressList)
+Invoked immediately after a DNS lookup.
+ |
+
void |
+EventListener.dnsStart(Call call,
+ String domainName)
+Invoked just prior to a DNS lookup.
+ |
+
void |
+Callback.onFailure(Call call,
+ IOException e)
+Called when the request could not be executed due to cancellation, a connectivity problem or
+ timeout.
+ |
+
void |
+Callback.onResponse(Call call,
+ Response response)
+Called when the HTTP response was successfully returned by the remote server.
+ |
+
void |
+EventListener.requestBodyEnd(Call call,
+ long byteCount)
+Invoked immediately after sending a request body.
+ |
+
void |
+EventListener.requestBodyStart(Call call)
+Invoked just prior to sending a request body.
+ |
+
void |
+EventListener.requestFailed(Call call,
+ IOException ioe)
+Invoked when a request fails to be written.
+ |
+
void |
+EventListener.requestHeadersEnd(Call call,
+ Request request)
+Invoked immediately after sending request headers.
+ |
+
void |
+EventListener.requestHeadersStart(Call call)
+Invoked just prior to sending request headers.
+ |
+
void |
+EventListener.responseBodyEnd(Call call,
+ long byteCount)
+Invoked immediately after receiving a response body and completing reading it.
+ |
+
void |
+EventListener.responseBodyStart(Call call)
+Invoked just prior to receiving the response body.
+ |
+
void |
+EventListener.responseFailed(Call call,
+ IOException ioe)
+Invoked when a response fails to be read.
+ |
+
void |
+EventListener.responseHeadersEnd(Call call,
+ Response response)
+Invoked immediately after receiving response headers.
+ |
+
void |
+EventListener.responseHeadersStart(Call call)
+Invoked just prior to receiving response headers.
+ |
+
void |
+EventListener.secureConnectEnd(Call call,
+ Handshake handshake)
+Invoked immediately after a TLS connection was attempted.
+ |
+
void |
+EventListener.secureConnectStart(Call call)
+Invoked just prior to initiating a TLS connection.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Callback.html b/3.x/okhttp/okhttp3/class-use/Callback.html new file mode 100644 index 000000000..cf9c0b973 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Callback.html @@ -0,0 +1,151 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/CertificatePinner.Builder.html b/3.x/okhttp/okhttp3/class-use/CertificatePinner.Builder.html new file mode 100644 index 000000000..033c8029f --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CertificatePinner.Builder.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner.Builder |
+CertificatePinner.Builder.add(String pattern,
+ String... pins)
+Pins certificates for
+pattern. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/CertificatePinner.html b/3.x/okhttp/okhttp3/class-use/CertificatePinner.html new file mode 100644 index 000000000..3bbcf5dc7 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CertificatePinner.html @@ -0,0 +1,209 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static CertificatePinner |
+CertificatePinner.DEFAULT |
+
| Modifier and Type | +Method and Description | +
|---|---|
CertificatePinner |
+CertificatePinner.Builder.build() |
+
CertificatePinner |
+OkHttpClient.certificatePinner() |
+
CertificatePinner |
+Address.certificatePinner()
+Returns this address's certificate pinner, or null if this is not an HTTPS address.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.certificatePinner(CertificatePinner certificatePinner)
+Sets the certificate pinner that constrains which certificates are trusted.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator proxyAuthenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Challenge.html b/3.x/okhttp/okhttp3/class-use/Challenge.html new file mode 100644 index 000000000..162af2418 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Challenge.html @@ -0,0 +1,166 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Challenge |
+Challenge.withCharset(Charset charset)
+Returns a copy of this charset that expects a credential encoded with
+charset. |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Challenge> |
+Response.challenges()
+Returns the RFC 7235 authorization challenges appropriate for this response's code.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/CipherSuite.html b/3.x/okhttp/okhttp3/class-use/CipherSuite.html new file mode 100644 index 000000000..bc9edad54 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CipherSuite.html @@ -0,0 +1,675 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
CipherSuite |
+Handshake.cipherSuite()
+Returns the cipher suite used for the connection.
+ |
+
static CipherSuite |
+CipherSuite.forJavaName(String javaName) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<CipherSuite> |
+ConnectionSpec.cipherSuites()
+Returns the cipher suites to use for a connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+ConnectionSpec.Builder.cipherSuites(CipherSuite... cipherSuites) |
+
static Handshake |
+Handshake.get(TlsVersion tlsVersion,
+ CipherSuite cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Connection.html b/3.x/okhttp/okhttp3/class-use/Connection.html new file mode 100644 index 000000000..f86574a00 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Connection.html @@ -0,0 +1,174 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+Interceptor.Chain.connection()
+Returns the connection the request will be executed on.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+EventListener.connectionAcquired(Call call,
+ Connection connection)
+Invoked after a connection has been acquired for the
+call. |
+
void |
+EventListener.connectionReleased(Call call,
+ Connection connection)
+Invoked after a connection has been released for the
+call. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/ConnectionPool.html b/3.x/okhttp/okhttp3/class-use/ConnectionPool.html new file mode 100644 index 000000000..ec459ae76 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/ConnectionPool.html @@ -0,0 +1,164 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ConnectionPool |
+OkHttpClient.connectionPool() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.connectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/ConnectionSpec.Builder.html b/3.x/okhttp/okhttp3/class-use/ConnectionSpec.Builder.html new file mode 100644 index 000000000..f3f25de67 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/ConnectionSpec.Builder.html @@ -0,0 +1,179 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec.Builder |
+ConnectionSpec.Builder.allEnabledCipherSuites() |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.allEnabledTlsVersions() |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.cipherSuites(CipherSuite... cipherSuites) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.cipherSuites(String... cipherSuites) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.supportsTlsExtensions(boolean supportsTlsExtensions)
+Deprecated.
+
+since OkHttp 3.13 all TLS-connections are expected to support TLS extensions.
+ In a future release setting this to true will be unnecessary and setting it to false will
+ have no effect.
+ |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.tlsVersions(String... tlsVersions) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.tlsVersions(TlsVersion... tlsVersions) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/ConnectionSpec.html b/3.x/okhttp/okhttp3/class-use/ConnectionSpec.html new file mode 100644 index 000000000..e55198cb1 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/ConnectionSpec.html @@ -0,0 +1,246 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static ConnectionSpec |
+ConnectionSpec.CLEARTEXT
+Unencrypted, unauthenticated connections for
+http: URLs. |
+
static ConnectionSpec |
+ConnectionSpec.COMPATIBLE_TLS
+A backwards-compatible fallback configuration that works on obsolete client platforms and can
+ connect to obsolete servers.
+ |
+
static ConnectionSpec |
+ConnectionSpec.MODERN_TLS
+A modern TLS configuration that works on most client platforms and can connect to most servers.
+ |
+
static ConnectionSpec |
+ConnectionSpec.RESTRICTED_TLS
+A secure TLS connection that requires a recent client platform and a recent server.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
ConnectionSpec |
+ConnectionSpec.Builder.build() |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<ConnectionSpec> |
+OkHttpClient.connectionSpecs() |
+
List<ConnectionSpec> |
+Address.connectionSpecs() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.connectionSpecs(List<ConnectionSpec> connectionSpecs) |
+
| Constructor and Description | +
|---|
Builder(ConnectionSpec connectionSpec) |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator proxyAuthenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Cookie.Builder.html b/3.x/okhttp/okhttp3/class-use/Cookie.Builder.html new file mode 100644 index 000000000..6974ee78c --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Cookie.Builder.html @@ -0,0 +1,181 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Cookie.Builder |
+Cookie.Builder.domain(String domain)
+Set the domain pattern for this cookie.
+ |
+
Cookie.Builder |
+Cookie.Builder.expiresAt(long expiresAt) |
+
Cookie.Builder |
+Cookie.Builder.hostOnlyDomain(String domain)
+Set the host-only domain for this cookie.
+ |
+
Cookie.Builder |
+Cookie.Builder.httpOnly() |
+
Cookie.Builder |
+Cookie.Builder.name(String name) |
+
Cookie.Builder |
+Cookie.Builder.path(String path) |
+
Cookie.Builder |
+Cookie.Builder.secure() |
+
Cookie.Builder |
+Cookie.Builder.value(String value) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Cookie.html b/3.x/okhttp/okhttp3/class-use/Cookie.html new file mode 100644 index 000000000..bf16d74d6 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Cookie.html @@ -0,0 +1,194 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Cookie |
+Cookie.Builder.build() |
+
static Cookie |
+Cookie.parse(HttpUrl url,
+ String setCookie)
+Attempt to parse a
+Set-Cookie HTTP header value setCookie as a cookie. |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Cookie> |
+CookieJar.loadForRequest(HttpUrl url)
+Load cookies from the jar for an HTTP request to
+url. |
+
static List<Cookie> |
+Cookie.parseAll(HttpUrl url,
+ Headers headers)
+Returns all of the cookies from a set of HTTP response headers.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+CookieJar.saveFromResponse(HttpUrl url,
+ List<Cookie> cookies)
+Saves
+cookies from an HTTP response to this store according to this jar's policy. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/CookieJar.html b/3.x/okhttp/okhttp3/class-use/CookieJar.html new file mode 100644 index 000000000..45ab6b117 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CookieJar.html @@ -0,0 +1,180 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static CookieJar |
+CookieJar.NO_COOKIES
+A cookie jar that never accepts any cookies.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
CookieJar |
+OkHttpClient.cookieJar() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.cookieJar(CookieJar cookieJar)
+Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
+ outgoing HTTP requests.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Credentials.html b/3.x/okhttp/okhttp3/class-use/Credentials.html new file mode 100644 index 000000000..3eb1e3bdf --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Credentials.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Dispatcher.html b/3.x/okhttp/okhttp3/class-use/Dispatcher.html new file mode 100644 index 000000000..14469e821 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Dispatcher.html @@ -0,0 +1,164 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Dispatcher |
+OkHttpClient.dispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.dispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to set policy and execute asynchronous requests.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Dns.html b/3.x/okhttp/okhttp3/class-use/Dns.html new file mode 100644 index 000000000..31fca0900 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Dns.html @@ -0,0 +1,208 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static Dns |
+Dns.SYSTEM
+A DNS that uses
+InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
+ lookup IP addresses. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Dns |
+OkHttpClient.dns() |
+
Dns |
+Address.dns()
+Returns the service that will be used to resolve IP addresses for hostnames.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.dns(Dns dns)
+Sets the DNS service used to lookup IP addresses for hostnames.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator proxyAuthenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/EventListener.Factory.html b/3.x/okhttp/okhttp3/class-use/EventListener.Factory.html new file mode 100644 index 000000000..c26dcc55a --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/EventListener.Factory.html @@ -0,0 +1,165 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
EventListener.Factory |
+OkHttpClient.eventListenerFactory() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.eventListenerFactory(EventListener.Factory eventListenerFactory)
+Configure a factory to provide per-call scoped listeners that will receive analytic events
+ for this client.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/EventListener.html b/3.x/okhttp/okhttp3/class-use/EventListener.html new file mode 100644 index 000000000..2e4dc9e16 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/EventListener.html @@ -0,0 +1,180 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static EventListener |
+EventListener.NONE |
+
| Modifier and Type | +Method and Description | +
|---|---|
EventListener |
+EventListener.Factory.create(Call call)
+Creates an instance of the
+EventListener for a particular Call. |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.eventListener(EventListener eventListener)
+Configure a single client scoped listener that will receive all analytic events
+ for this client.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/FormBody.Builder.html b/3.x/okhttp/okhttp3/class-use/FormBody.Builder.html new file mode 100644 index 000000000..4d11c954d --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/FormBody.Builder.html @@ -0,0 +1,155 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
FormBody.Builder |
+FormBody.Builder.add(String name,
+ String value) |
+
FormBody.Builder |
+FormBody.Builder.addEncoded(String name,
+ String value) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/FormBody.html b/3.x/okhttp/okhttp3/class-use/FormBody.html new file mode 100644 index 000000000..38a0871d2 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/FormBody.html @@ -0,0 +1,149 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Handshake.html b/3.x/okhttp/okhttp3/class-use/Handshake.html new file mode 100644 index 000000000..08736daa4 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Handshake.html @@ -0,0 +1,190 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Handshake |
+Handshake.get(SSLSession session) |
+
static Handshake |
+Handshake.get(TlsVersion tlsVersion,
+ CipherSuite cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
Handshake |
+Connection.handshake()
+Returns the TLS handshake used to establish this connection, or null if the connection is not
+ HTTPS.
+ |
+
Handshake |
+Response.handshake()
+Returns the TLS handshake of the connection that carried this response, or null if the response
+ was received without TLS.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.handshake(Handshake handshake) |
+
void |
+EventListener.secureConnectEnd(Call call,
+ Handshake handshake)
+Invoked immediately after a TLS connection was attempted.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Headers.Builder.html b/3.x/okhttp/okhttp3/class-use/Headers.Builder.html new file mode 100644 index 000000000..1411a3bc1 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Headers.Builder.html @@ -0,0 +1,214 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Headers.Builder |
+Headers.Builder.add(String line)
+Add an header line containing a field name, a literal colon, and a value.
+ |
+
Headers.Builder |
+Headers.Builder.add(String name,
+ Date value)
+Add a header with the specified name and formatted date.
+ |
+
Headers.Builder |
+Headers.Builder.add(String name,
+ Instant value)
+Add a header with the specified name and formatted instant.
+ |
+
Headers.Builder |
+Headers.Builder.add(String name,
+ String value)
+Add a header with the specified name and value.
+ |
+
Headers.Builder |
+Headers.Builder.addAll(Headers headers)
+Adds all headers from an existing collection.
+ |
+
Headers.Builder |
+Headers.Builder.addUnsafeNonAscii(String name,
+ String value)
+Add a header with the specified name and value.
+ |
+
Headers.Builder |
+Headers.newBuilder() |
+
Headers.Builder |
+Headers.Builder.removeAll(String name) |
+
Headers.Builder |
+Headers.Builder.set(String name,
+ Date value)
+Set a field with the specified date.
+ |
+
Headers.Builder |
+Headers.Builder.set(String name,
+ Instant value)
+Set a field with the specified instant.
+ |
+
Headers.Builder |
+Headers.Builder.set(String name,
+ String value)
+Set a field with the specified value.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Headers.html b/3.x/okhttp/okhttp3/class-use/Headers.html new file mode 100644 index 000000000..90e55e911 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Headers.html @@ -0,0 +1,231 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Headers |
+Headers.Builder.build() |
+
Headers |
+Request.headers() |
+
Headers |
+MultipartBody.Part.headers() |
+
Headers |
+Response.headers() |
+
static Headers |
+Headers.of(Map<String,String> headers)
+Returns headers for the header names and values in the
+Map. |
+
static Headers |
+Headers.of(String... namesAndValues)
+Returns headers for the alternating header names and values.
+ |
+
Headers |
+Response.trailers()
+Returns the trailers after the HTTP response, which may be empty.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Headers.Builder |
+Headers.Builder.addAll(Headers headers)
+Adds all headers from an existing collection.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
static MultipartBody.Part |
+MultipartBody.Part.create(Headers headers,
+ RequestBody body) |
+
Request.Builder |
+Request.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Response.Builder |
+Response.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
static CacheControl |
+CacheControl.parse(Headers headers)
+Returns the cache directives of
+headers. |
+
static List<Cookie> |
+Cookie.parseAll(HttpUrl url,
+ Headers headers)
+Returns all of the cookies from a set of HTTP response headers.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/HttpUrl.Builder.html b/3.x/okhttp/okhttp3/class-use/HttpUrl.Builder.html new file mode 100644 index 000000000..9ed2c9551 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/HttpUrl.Builder.html @@ -0,0 +1,270 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpUrl.Builder |
+HttpUrl.Builder.addEncodedPathSegment(String encodedPathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.addEncodedPathSegments(String encodedPathSegments)
+Adds a set of encoded path segments separated by a slash (either
+\ or /). |
+
HttpUrl.Builder |
+HttpUrl.Builder.addEncodedQueryParameter(String encodedName,
+ String encodedValue)
+Adds the pre-encoded query parameter to this URL's query string.
+ |
+
HttpUrl.Builder |
+HttpUrl.Builder.addPathSegment(String pathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.addPathSegments(String pathSegments)
+Adds a set of path segments separated by a slash (either
+\ or /). |
+
HttpUrl.Builder |
+HttpUrl.Builder.addQueryParameter(String name,
+ String value)
+Encodes the query parameter using UTF-8 and adds it to this URL's query string.
+ |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedFragment(String encodedFragment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedPassword(String encodedPassword) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedPath(String encodedPath) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedQuery(String encodedQuery) |
+
HttpUrl.Builder |
+HttpUrl.Builder.encodedUsername(String encodedUsername) |
+
HttpUrl.Builder |
+HttpUrl.Builder.fragment(String fragment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.host(String host) |
+
HttpUrl.Builder |
+HttpUrl.newBuilder() |
+
HttpUrl.Builder |
+HttpUrl.newBuilder(String link)
+Returns a builder for the URL that would be retrieved by following
+link from this URL,
+ or null if the resulting URL is not well-formed. |
+
HttpUrl.Builder |
+HttpUrl.Builder.password(String password) |
+
HttpUrl.Builder |
+HttpUrl.Builder.port(int port) |
+
HttpUrl.Builder |
+HttpUrl.Builder.query(String query) |
+
HttpUrl.Builder |
+HttpUrl.Builder.removeAllEncodedQueryParameters(String encodedName) |
+
HttpUrl.Builder |
+HttpUrl.Builder.removeAllQueryParameters(String name) |
+
HttpUrl.Builder |
+HttpUrl.Builder.removePathSegment(int index) |
+
HttpUrl.Builder |
+HttpUrl.Builder.scheme(String scheme) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setEncodedPathSegment(int index,
+ String encodedPathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setEncodedQueryParameter(String encodedName,
+ String encodedValue) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setPathSegment(int index,
+ String pathSegment) |
+
HttpUrl.Builder |
+HttpUrl.Builder.setQueryParameter(String name,
+ String value) |
+
HttpUrl.Builder |
+HttpUrl.Builder.username(String username) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/HttpUrl.html b/3.x/okhttp/okhttp3/class-use/HttpUrl.html new file mode 100644 index 000000000..142b59fc4 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/HttpUrl.html @@ -0,0 +1,240 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
HttpUrl |
+HttpUrl.Builder.build() |
+
static HttpUrl |
+HttpUrl.get(String url)
+Returns a new
+HttpUrl representing url. |
+
static HttpUrl |
+HttpUrl.get(URI uri) |
+
static HttpUrl |
+HttpUrl.get(URL url)
+Returns an
+HttpUrl for url if its protocol is http or https, or
+ null if it has any other protocol. |
+
static HttpUrl |
+HttpUrl.parse(String url)
+Returns a new
+HttpUrl representing url if it is a well-formed HTTP or HTTPS
+ URL, or null if it isn't. |
+
HttpUrl |
+HttpUrl.resolve(String link)
+Returns the URL that would be retrieved by following
+link from this URL, or null if
+ the resulting URL is not well-formed. |
+
HttpUrl |
+Request.url() |
+
HttpUrl |
+Address.url()
+Returns a URL with the hostname and port of the origin server.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static String |
+Cache.key(HttpUrl url) |
+
List<Cookie> |
+CookieJar.loadForRequest(HttpUrl url)
+Load cookies from the jar for an HTTP request to
+url. |
+
boolean |
+Cookie.matches(HttpUrl url)
+Returns true if this cookie should be included on a request to
+url. |
+
static Cookie |
+Cookie.parse(HttpUrl url,
+ String setCookie)
+Attempt to parse a
+Set-Cookie HTTP header value setCookie as a cookie. |
+
static List<Cookie> |
+Cookie.parseAll(HttpUrl url,
+ Headers headers)
+Returns all of the cookies from a set of HTTP response headers.
+ |
+
void |
+CookieJar.saveFromResponse(HttpUrl url,
+ List<Cookie> cookies)
+Saves
+cookies from an HTTP response to this store according to this jar's policy. |
+
Request.Builder |
+Request.Builder.url(HttpUrl url) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Interceptor.Chain.html b/3.x/okhttp/okhttp3/class-use/Interceptor.Chain.html new file mode 100644 index 000000000..edf6f36d3 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Interceptor.Chain.html @@ -0,0 +1,173 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Interceptor.Chain |
+Interceptor.Chain.withConnectTimeout(int timeout,
+ TimeUnit unit) |
+
Interceptor.Chain |
+Interceptor.Chain.withReadTimeout(int timeout,
+ TimeUnit unit) |
+
Interceptor.Chain |
+Interceptor.Chain.withWriteTimeout(int timeout,
+ TimeUnit unit) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response |
+Interceptor.intercept(Interceptor.Chain chain) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Interceptor.html b/3.x/okhttp/okhttp3/class-use/Interceptor.html new file mode 100644 index 000000000..b35df4115 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Interceptor.html @@ -0,0 +1,190 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
List<Interceptor> |
+OkHttpClient.interceptors()
+Returns an immutable list of interceptors that observe the full span of each call: from before
+ the connection is established (if any) until after the response source is selected (either the
+ origin server, cache, or both).
+ |
+
List<Interceptor> |
+OkHttpClient.Builder.interceptors()
+Returns a modifiable list of interceptors that observe the full span of each call: from
+ before the connection is established (if any) until after the response source is selected
+ (either the origin server, cache, or both).
+ |
+
List<Interceptor> |
+OkHttpClient.networkInterceptors()
+Returns an immutable list of interceptors that observe a single network request and response.
+ |
+
List<Interceptor> |
+OkHttpClient.Builder.networkInterceptors()
+Returns a modifiable list of interceptors that observe a single network request and response.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.addInterceptor(Interceptor interceptor) |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.addNetworkInterceptor(Interceptor interceptor) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/MediaType.html b/3.x/okhttp/okhttp3/class-use/MediaType.html new file mode 100644 index 000000000..9491f6a8d --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/MediaType.html @@ -0,0 +1,305 @@ + + + + + + +| Modifier and Type | +Field and Description | +
|---|---|
static MediaType |
+MultipartBody.ALTERNATIVE
+The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the
+ semantics are different.
+ |
+
static MediaType |
+MultipartBody.DIGEST
+This type is syntactically identical to "multipart/mixed", but the semantics are different.
+ |
+
static MediaType |
+MultipartBody.FORM
+The media-type multipart/form-data follows the rules of all multipart MIME data streams as
+ outlined in RFC 2046.
+ |
+
static MediaType |
+MultipartBody.MIXED
+The "mixed" subtype of "multipart" is intended for use when the body parts are independent and
+ need to be bundled in a particular order.
+ |
+
static MediaType |
+MultipartBody.PARALLEL
+This type is syntactically identical to "multipart/mixed", but the semantics are different.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MediaType |
+MultipartBody.contentType()
+A combination of
+MultipartBody.type() and MultipartBody.boundary(). |
+
abstract MediaType |
+RequestBody.contentType()
+Returns the Content-Type header for this body.
+ |
+
abstract MediaType |
+ResponseBody.contentType() |
+
MediaType |
+FormBody.contentType() |
+
static MediaType |
+MediaType.get(String string)
+Returns a media type for
+string. |
+
static MediaType |
+MediaType.parse(String string)
+Returns a media type for
+string, or null if string is not a well-formed media
+ type. |
+
MediaType |
+MultipartBody.type() |
+
| Modifier and Type | +Method and Description | +
|---|---|
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content)
+Returns a new request body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ byte[] content)
+Returns a new response body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content,
+ int offset,
+ int byteCount)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ okio.ByteString content)
+Returns a new request body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ okio.ByteString content)
+Returns a new response body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ File file)
+Returns a new request body that transmits the content of
+file. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ long contentLength,
+ okio.BufferedSource content)
+Returns a new response body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ String content)
+Returns a new request body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ String content)
+Returns a new response body that transmits
+content. |
+
MultipartBody.Builder |
+MultipartBody.Builder.setType(MediaType type)
+Set the MIME type.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/MultipartBody.Builder.html b/3.x/okhttp/okhttp3/class-use/MultipartBody.Builder.html new file mode 100644 index 000000000..7d41f9ceb --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/MultipartBody.Builder.html @@ -0,0 +1,185 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
MultipartBody.Builder |
+MultipartBody.Builder.addFormDataPart(String name,
+ String value)
+Add a form data part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addFormDataPart(String name,
+ String filename,
+ RequestBody body)
+Add a form data part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addPart(MultipartBody.Part part)
+Add a part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addPart(RequestBody body)
+Add a part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.setType(MediaType type)
+Set the MIME type.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/MultipartBody.Part.html b/3.x/okhttp/okhttp3/class-use/MultipartBody.Part.html new file mode 100644 index 000000000..eb30d151c --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/MultipartBody.Part.html @@ -0,0 +1,197 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static MultipartBody.Part |
+MultipartBody.Part.create(Headers headers,
+ RequestBody body) |
+
static MultipartBody.Part |
+MultipartBody.Part.create(RequestBody body) |
+
static MultipartBody.Part |
+MultipartBody.Part.createFormData(String name,
+ String value) |
+
static MultipartBody.Part |
+MultipartBody.Part.createFormData(String name,
+ String filename,
+ RequestBody body) |
+
MultipartBody.Part |
+MultipartBody.part(int index) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<MultipartBody.Part> |
+MultipartBody.parts() |
+
| Modifier and Type | +Method and Description | +
|---|---|
MultipartBody.Builder |
+MultipartBody.Builder.addPart(MultipartBody.Part part)
+Add a part to the body.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/MultipartBody.html b/3.x/okhttp/okhttp3/class-use/MultipartBody.html new file mode 100644 index 000000000..ea4c5c749 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/MultipartBody.html @@ -0,0 +1,151 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
MultipartBody |
+MultipartBody.Builder.build()
+Assemble the specified parts into a request body.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/OkHttpClient.Builder.html b/3.x/okhttp/okhttp3/class-use/OkHttpClient.Builder.html new file mode 100644 index 000000000..a5b413d7e --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/OkHttpClient.Builder.html @@ -0,0 +1,356 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.addInterceptor(Interceptor interceptor) |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.addNetworkInterceptor(Interceptor interceptor) |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.authenticator(Authenticator authenticator)
+Sets the authenticator used to respond to challenges from origin servers.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.cache(Cache cache)
+Sets the response cache to be used to read and write cached responses.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.callTimeout(Duration duration)
+Sets the default timeout for complete calls.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.callTimeout(long timeout,
+ TimeUnit unit)
+Sets the default timeout for complete calls.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.certificatePinner(CertificatePinner certificatePinner)
+Sets the certificate pinner that constrains which certificates are trusted.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.connectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.connectionSpecs(List<ConnectionSpec> connectionSpecs) |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.connectTimeout(Duration duration)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.connectTimeout(long timeout,
+ TimeUnit unit)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.cookieJar(CookieJar cookieJar)
+Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
+ outgoing HTTP requests.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.dispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to set policy and execute asynchronous requests.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.dns(Dns dns)
+Sets the DNS service used to lookup IP addresses for hostnames.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.eventListener(EventListener eventListener)
+Configure a single client scoped listener that will receive all analytic events
+ for this client.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.eventListenerFactory(EventListener.Factory eventListenerFactory)
+Configure a factory to provide per-call scoped listeners that will receive analytic events
+ for this client.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.followRedirects(boolean followRedirects)
+Configure this client to follow redirects.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.followSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.hostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to requested hostnames for
+ HTTPS connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.newBuilder() |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.pingInterval(Duration duration)
+Sets the interval between HTTP/2 and web socket pings initiated by this client.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.pingInterval(long interval,
+ TimeUnit unit)
+Sets the interval between HTTP/2 and web socket pings initiated by this client.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.protocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote servers.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.proxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this client.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.proxyAuthenticator(Authenticator proxyAuthenticator)
+Sets the authenticator used to respond to challenges from proxy servers.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.proxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy is specified
+ explicitly. |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.readTimeout(Duration duration)
+Sets the default read timeout for new connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.readTimeout(long timeout,
+ TimeUnit unit)
+Sets the default read timeout for new connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.retryOnConnectionFailure(boolean retryOnConnectionFailure)
+Configure this client to retry or not when a connectivity problem is encountered.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.socketFactory(SocketFactory socketFactory)
+Sets the socket factory used to create connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory sslSocketFactory)
+Deprecated.
+
+SSLSocketFactory does not expose its X509TrustManager, which is
+ a field that OkHttp needs to build a clean certificate chain. This method instead must
+ use reflection to extract the trust manager. Applications should prefer to call sslSocketFactory(SSLSocketFactory, X509TrustManager), which avoids such reflection. |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory sslSocketFactory,
+ X509TrustManager trustManager)
+Sets the socket factory and trust manager used to secure HTTPS connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.writeTimeout(Duration duration)
+Sets the default write timeout for new connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.writeTimeout(long timeout,
+ TimeUnit unit)
+Sets the default write timeout for new connections.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/OkHttpClient.html b/3.x/okhttp/okhttp3/class-use/OkHttpClient.html new file mode 100644 index 000000000..21318e75d --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/OkHttpClient.html @@ -0,0 +1,149 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.Builder.build() |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Protocol.html b/3.x/okhttp/okhttp3/class-use/Protocol.html new file mode 100644 index 000000000..39b7a7c70 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Protocol.html @@ -0,0 +1,265 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+Protocol.get(String protocol)
+Returns the protocol identified by
+protocol. |
+
Protocol |
+Connection.protocol()
+Returns the protocol negotiated by this connection, or
+HTTP_1_1 if no protocol
+ has been negotiated. |
+
Protocol |
+Response.protocol()
+
+ |
+
static Protocol |
+Protocol.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+Protocol.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Protocol> |
+OkHttpClient.protocols() |
+
List<Protocol> |
+Address.protocols()
+Returns the protocols the client supports.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+EventListener.connectEnd(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy,
+ Protocol protocol)
+Invoked immediately after a socket connection was attempted.
+ |
+
void |
+EventListener.connectFailed(Call call,
+ InetSocketAddress inetSocketAddress,
+ Proxy proxy,
+ Protocol protocol,
+ IOException ioe)
+Invoked when a connection attempt fails.
+ |
+
Response.Builder |
+Response.Builder.protocol(Protocol protocol) |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.protocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote servers.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ Dns dns,
+ SocketFactory socketFactory,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ CertificatePinner certificatePinner,
+ Authenticator proxyAuthenticator,
+ Proxy proxy,
+ List<Protocol> protocols,
+ List<ConnectionSpec> connectionSpecs,
+ ProxySelector proxySelector) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Request.Builder.html b/3.x/okhttp/okhttp3/class-use/Request.Builder.html new file mode 100644 index 000000000..5a62c87ff --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Request.Builder.html @@ -0,0 +1,244 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Request.Builder |
+Request.Builder.addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Request.Builder |
+Request.Builder.cacheControl(CacheControl cacheControl)
+Sets this request's
+Cache-Control header, replacing any cache control headers already
+ present. |
+
Request.Builder |
+Request.Builder.delete() |
+
Request.Builder |
+Request.Builder.delete(RequestBody body) |
+
Request.Builder |
+Request.Builder.get() |
+
Request.Builder |
+Request.Builder.head() |
+
Request.Builder |
+Request.Builder.header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Request.Builder |
+Request.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Request.Builder |
+Request.Builder.method(String method,
+ RequestBody body) |
+
Request.Builder |
+Request.newBuilder() |
+
Request.Builder |
+Request.Builder.patch(RequestBody body) |
+
Request.Builder |
+Request.Builder.post(RequestBody body) |
+
Request.Builder |
+Request.Builder.put(RequestBody body) |
+
Request.Builder |
+Request.Builder.removeHeader(String name)
+Removes all headers named
+name on this builder. |
+
<T> Request.Builder |
+Request.Builder.tag(Class<? super T> type,
+ T tag)
+Attaches
+tag to the request using type as a key. |
+
Request.Builder |
+Request.Builder.tag(Object tag)
+Attaches
+tag to the request using Object.class as a key. |
+
Request.Builder |
+Request.Builder.url(HttpUrl url) |
+
Request.Builder |
+Request.Builder.url(String url)
+Sets the URL target of this request.
+ |
+
Request.Builder |
+Request.Builder.url(URL url)
+Sets the URL target of this request.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Request.html b/3.x/okhttp/okhttp3/class-use/Request.html new file mode 100644 index 000000000..546cbf65f --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Request.html @@ -0,0 +1,226 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Request |
+Authenticator.authenticate(Route route,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication challenge in
+response. |
+
Request |
+Request.Builder.build() |
+
Request |
+WebSocket.request()
+Returns the original request that initiated this web socket.
+ |
+
Request |
+Call.request()
+Returns the original request that initiated this call.
+ |
+
Request |
+Response.request()
+The wire-level request that initiated this HTTP response.
+ |
+
Request |
+Interceptor.Chain.request() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Call |
+OkHttpClient.newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
Call |
+Call.Factory.newCall(Request request) |
+
WebSocket |
+OkHttpClient.newWebSocket(Request request,
+ WebSocketListener listener)
+Uses
+request to connect a new web socket. |
+
WebSocket |
+WebSocket.Factory.newWebSocket(Request request,
+ WebSocketListener listener)
+Creates a new web socket and immediately returns it.
+ |
+
Response |
+Interceptor.Chain.proceed(Request request) |
+
Response.Builder |
+Response.Builder.request(Request request) |
+
void |
+EventListener.requestHeadersEnd(Call call,
+ Request request)
+Invoked immediately after sending request headers.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/RequestBody.html b/3.x/okhttp/okhttp3/class-use/RequestBody.html new file mode 100644 index 000000000..80a05cd12 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/RequestBody.html @@ -0,0 +1,275 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+FormBody |
+
class |
+MultipartBody
+An RFC 2387-compliant request body.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
RequestBody |
+Request.body() |
+
RequestBody |
+MultipartBody.Part.body() |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ byte[] content,
+ int offset,
+ int byteCount)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ okio.ByteString content)
+Returns a new request body that transmits
+content. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ File file)
+Returns a new request body that transmits the content of
+file. |
+
static RequestBody |
+RequestBody.create(MediaType contentType,
+ String content)
+Returns a new request body that transmits
+content. |
+
| Modifier and Type | +Method and Description | +
|---|---|
MultipartBody.Builder |
+MultipartBody.Builder.addFormDataPart(String name,
+ String filename,
+ RequestBody body)
+Add a form data part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addPart(Headers headers,
+ RequestBody body)
+Add a part to the body.
+ |
+
MultipartBody.Builder |
+MultipartBody.Builder.addPart(RequestBody body)
+Add a part to the body.
+ |
+
static MultipartBody.Part |
+MultipartBody.Part.create(Headers headers,
+ RequestBody body) |
+
static MultipartBody.Part |
+MultipartBody.Part.create(RequestBody body) |
+
static MultipartBody.Part |
+MultipartBody.Part.createFormData(String name,
+ String filename,
+ RequestBody body) |
+
Request.Builder |
+Request.Builder.delete(RequestBody body) |
+
Request.Builder |
+Request.Builder.method(String method,
+ RequestBody body) |
+
Request.Builder |
+Request.Builder.patch(RequestBody body) |
+
Request.Builder |
+Request.Builder.post(RequestBody body) |
+
Request.Builder |
+Request.Builder.put(RequestBody body) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Response.Builder.html b/3.x/okhttp/okhttp3/class-use/Response.Builder.html new file mode 100644 index 000000000..f0884f831 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Response.Builder.html @@ -0,0 +1,219 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.addHeader(String name,
+ String value)
+Adds a header with
+name and value. |
+
Response.Builder |
+Response.Builder.body(ResponseBody body) |
+
Response.Builder |
+Response.Builder.cacheResponse(Response cacheResponse) |
+
Response.Builder |
+Response.Builder.code(int code) |
+
Response.Builder |
+Response.Builder.handshake(Handshake handshake) |
+
Response.Builder |
+Response.Builder.header(String name,
+ String value)
+Sets the header named
+name to value. |
+
Response.Builder |
+Response.Builder.headers(Headers headers)
+Removes all headers on this builder and adds
+headers. |
+
Response.Builder |
+Response.Builder.message(String message) |
+
Response.Builder |
+Response.Builder.networkResponse(Response networkResponse) |
+
Response.Builder |
+Response.newBuilder() |
+
Response.Builder |
+Response.Builder.priorResponse(Response priorResponse) |
+
Response.Builder |
+Response.Builder.protocol(Protocol protocol) |
+
Response.Builder |
+Response.Builder.receivedResponseAtMillis(long receivedResponseAtMillis) |
+
Response.Builder |
+Response.Builder.removeHeader(String name)
+Removes all headers named
+name on this builder. |
+
Response.Builder |
+Response.Builder.request(Request request) |
+
Response.Builder |
+Response.Builder.sentRequestAtMillis(long sentRequestAtMillis) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Response.html b/3.x/okhttp/okhttp3/class-use/Response.html new file mode 100644 index 000000000..910348c3d --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Response.html @@ -0,0 +1,242 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Response |
+Response.Builder.build() |
+
Response |
+Response.cacheResponse()
+Returns the raw response received from the cache.
+ |
+
Response |
+Call.execute()
+Invokes the request immediately, and blocks until the response can be processed or is in
+ error.
+ |
+
Response |
+Interceptor.intercept(Interceptor.Chain chain) |
+
Response |
+Response.networkResponse()
+Returns the raw response received from the network.
+ |
+
Response |
+Response.priorResponse()
+Returns the response for the HTTP redirect or authorization challenge that triggered this
+ response, or null if this response wasn't triggered by an automatic retry.
+ |
+
Response |
+Interceptor.Chain.proceed(Request request) |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request |
+Authenticator.authenticate(Route route,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication challenge in
+response. |
+
Response.Builder |
+Response.Builder.cacheResponse(Response cacheResponse) |
+
Response.Builder |
+Response.Builder.networkResponse(Response networkResponse) |
+
void |
+WebSocketListener.onFailure(WebSocket webSocket,
+ Throwable t,
+ Response response)
+Invoked when a web socket has been closed due to an error reading from or writing to the
+ network.
+ |
+
void |
+WebSocketListener.onOpen(WebSocket webSocket,
+ Response response)
+Invoked when a web socket has been accepted by the remote peer and may begin transmitting
+ messages.
+ |
+
void |
+Callback.onResponse(Call call,
+ Response response)
+Called when the HTTP response was successfully returned by the remote server.
+ |
+
Response.Builder |
+Response.Builder.priorResponse(Response priorResponse) |
+
void |
+EventListener.responseHeadersEnd(Call call,
+ Response response)
+Invoked immediately after receiving response headers.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/ResponseBody.html b/3.x/okhttp/okhttp3/class-use/ResponseBody.html new file mode 100644 index 000000000..ead87bb42 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/ResponseBody.html @@ -0,0 +1,201 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ResponseBody |
+Response.body()
+Returns a non-null value if this response was passed to
+Callback.onResponse(okhttp3.Call, okhttp3.Response) or returned
+ from Call.execute(). |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ byte[] content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ okio.ByteString content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ long contentLength,
+ okio.BufferedSource content)
+Returns a new response body that transmits
+content. |
+
static ResponseBody |
+ResponseBody.create(MediaType contentType,
+ String content)
+Returns a new response body that transmits
+content. |
+
ResponseBody |
+Response.peekBody(long byteCount)
+Peeks up to
+byteCount bytes from the response body and returns them as a new response
+ body. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.body(ResponseBody body) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/Route.html b/3.x/okhttp/okhttp3/class-use/Route.html new file mode 100644 index 000000000..9c8f4e4f7 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Route.html @@ -0,0 +1,167 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Route |
+Connection.route()
+Returns the route used by this connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Request |
+Authenticator.authenticate(Route route,
+ Response response)
+Returns a request that includes a credential to satisfy an authentication challenge in
+response. |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/TlsVersion.html b/3.x/okhttp/okhttp3/class-use/TlsVersion.html new file mode 100644 index 000000000..ec8381922 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/TlsVersion.html @@ -0,0 +1,203 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static TlsVersion |
+TlsVersion.forJavaName(String javaName) |
+
TlsVersion |
+Handshake.tlsVersion()
+Returns the TLS version used for this connection.
+ |
+
static TlsVersion |
+TlsVersion.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static TlsVersion[] |
+TlsVersion.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<TlsVersion> |
+ConnectionSpec.tlsVersions()
+Returns the TLS versions to use when negotiating a connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static Handshake |
+Handshake.get(TlsVersion tlsVersion,
+ CipherSuite cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
ConnectionSpec.Builder |
+ConnectionSpec.Builder.tlsVersions(TlsVersion... tlsVersions) |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/WebSocket.Factory.html b/3.x/okhttp/okhttp3/class-use/WebSocket.Factory.html new file mode 100644 index 000000000..f050b25d0 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/WebSocket.Factory.html @@ -0,0 +1,152 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+OkHttpClient
+Factory for calls, which can be used to send HTTP requests and read their
+ responses.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/WebSocket.html b/3.x/okhttp/okhttp3/class-use/WebSocket.html new file mode 100644 index 000000000..8ef24c872 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/WebSocket.html @@ -0,0 +1,217 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
WebSocket |
+OkHttpClient.newWebSocket(Request request,
+ WebSocketListener listener)
+Uses
+request to connect a new web socket. |
+
WebSocket |
+WebSocket.Factory.newWebSocket(Request request,
+ WebSocketListener listener)
+Creates a new web socket and immediately returns it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+WebSocketListener.onClosed(WebSocket webSocket,
+ int code,
+ String reason)
+Invoked when both peers have indicated that no more messages will be transmitted and the
+ connection has been successfully released.
+ |
+
void |
+WebSocketListener.onClosing(WebSocket webSocket,
+ int code,
+ String reason)
+Invoked when the remote peer has indicated that no more incoming messages will be
+ transmitted.
+ |
+
void |
+WebSocketListener.onFailure(WebSocket webSocket,
+ Throwable t,
+ Response response)
+Invoked when a web socket has been closed due to an error reading from or writing to the
+ network.
+ |
+
void |
+WebSocketListener.onMessage(WebSocket webSocket,
+ okio.ByteString bytes)
+Invoked when a binary (type
+0x2) message has been received. |
+
void |
+WebSocketListener.onMessage(WebSocket webSocket,
+ String text)
+Invoked when a text (type
+0x1) message has been received. |
+
void |
+WebSocketListener.onOpen(WebSocket webSocket,
+ Response response)
+Invoked when a web socket has been accepted by the remote peer and may begin transmitting
+ messages.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/class-use/WebSocketListener.html b/3.x/okhttp/okhttp3/class-use/WebSocketListener.html new file mode 100644 index 000000000..1dabc8701 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/WebSocketListener.html @@ -0,0 +1,159 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
WebSocket |
+OkHttpClient.newWebSocket(Request request,
+ WebSocketListener listener)
+Uses
+request to connect a new web socket. |
+
WebSocket |
+WebSocket.Factory.newWebSocket(Request request,
+ WebSocketListener listener)
+Creates a new web socket and immediately returns it.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/package-frame.html b/3.x/okhttp/okhttp3/package-frame.html new file mode 100644 index 000000000..31a74c639 --- /dev/null +++ b/3.x/okhttp/okhttp3/package-frame.html @@ -0,0 +1,77 @@ + + + + + + +@EverythingIsNonNull +
+See: Description
+| Interface | +Description | +
|---|---|
| Authenticator | +
+ Performs either preemptive authentication before connecting to a proxy server,
+ or reactive authentication after receiving a challenge from either an origin web
+ server or proxy server.
+ |
+
| Call | +
+ A call is a request that has been prepared for execution.
+ |
+
| Call.Factory | ++ |
| Callback | ++ |
| Connection | +
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
+ |
+
| CookieJar | +
+ Provides policy and persistence for HTTP cookies.
+ |
+
| Dns | +
+ A domain name service that resolves IP addresses for host names.
+ |
+
| EventListener.Factory | ++ |
| Interceptor | +
+ Observes, modifies, and potentially short-circuits requests going out and the corresponding
+ responses coming back in.
+ |
+
| Interceptor.Chain | ++ |
| WebSocket | +
+ A non-blocking interface to a web socket.
+ |
+
| WebSocket.Factory | ++ |
| Class | +Description | +
|---|---|
| Address | +
+ A specification for a connection to an origin server.
+ |
+
| Cache | +
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
+ bandwidth.
+ |
+
| CacheControl | +
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| CacheControl.Builder | +
+ Builds a
+Cache-Control request header. |
+
| CertificatePinner | +
+ Constrains which certificates are trusted.
+ |
+
| CertificatePinner.Builder | +
+ Builds a configured certificate pinner.
+ |
+
| Challenge | +
+ An RFC 7235 challenge.
+ |
+
| CipherSuite | ++ + | +
| ConnectionPool | +
+ Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
+ |
+
| ConnectionSpec | +
+ Specifies configuration for the socket connection that HTTP traffic travels through.
+ |
+
| ConnectionSpec.Builder | ++ |
| Cookie | +
+ An RFC 6265 Cookie.
+ |
+
| Cookie.Builder | +
+ Builds a cookie.
+ |
+
| Credentials | +
+ Factory for HTTP authorization credentials.
+ |
+
| Dispatcher | +
+ Policy on when async requests are executed.
+ |
+
| EventListener | +
+ Listener for metrics events.
+ |
+
| FormBody | ++ |
| FormBody.Builder | ++ |
| Handshake | +
+ A record of a TLS handshake.
+ |
+
| Headers | +
+ The header fields of a single HTTP message.
+ |
+
| Headers.Builder | ++ |
| HttpUrl | +
+ A uniform resource locator (URL) with a scheme of either
+http or https. |
+
| HttpUrl.Builder | ++ |
| MediaType | +
+ An RFC 2045 Media Type, appropriate to describe
+ the content type of an HTTP request or response body.
+ |
+
| MultipartBody | +
+ An RFC 2387-compliant request body.
+ |
+
| MultipartBody.Builder | ++ |
| MultipartBody.Part | ++ |
| OkHttpClient | +
+ Factory for calls, which can be used to send HTTP requests and read their
+ responses.
+ |
+
| OkHttpClient.Builder | ++ |
| Request | +
+ An HTTP request.
+ |
+
| Request.Builder | ++ |
| RequestBody | ++ |
| Response | +
+ An HTTP response.
+ |
+
| Response.Builder | ++ |
| ResponseBody | +
+ A one-shot stream from the origin server to the client application with the raw bytes of the
+ response body.
+ |
+
| Route | +
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| WebSocketListener | ++ |
| Enum | +Description | +
|---|---|
| Protocol | +
+ Protocols that OkHttp implements for ALPN selection.
+ |
+
| TlsVersion | +
+ Versions of TLS that can be offered when negotiating a secure socket.
+ |
+
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/package-tree.html b/3.x/okhttp/okhttp3/package-tree.html new file mode 100644 index 000000000..a40e21a42 --- /dev/null +++ b/3.x/okhttp/okhttp3/package-tree.html @@ -0,0 +1,204 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/okhttp3/package-use.html b/3.x/okhttp/okhttp3/package-use.html new file mode 100644 index 000000000..e985a4e59 --- /dev/null +++ b/3.x/okhttp/okhttp3/package-use.html @@ -0,0 +1,364 @@ + + + + + + +| Class and Description | +
|---|
| Address
+ A specification for a connection to an origin server.
+ |
+
| Authenticator
+ Performs either preemptive authentication before connecting to a proxy server,
+ or reactive authentication after receiving a challenge from either an origin web
+ server or proxy server.
+ |
+
| Cache
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
+ bandwidth.
+ |
+
| CacheControl
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| CacheControl.Builder
+ Builds a
+Cache-Control request header. |
+
| Call
+ A call is a request that has been prepared for execution.
+ |
+
| Call.Factory | +
| Callback | +
| CertificatePinner
+ Constrains which certificates are trusted.
+ |
+
| CertificatePinner.Builder
+ Builds a configured certificate pinner.
+ |
+
| Challenge
+ An RFC 7235 challenge.
+ |
+
| CipherSuite + + | +
| Connection
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
+ |
+
| ConnectionPool
+ Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
+ |
+
| ConnectionSpec
+ Specifies configuration for the socket connection that HTTP traffic travels through.
+ |
+
| ConnectionSpec.Builder | +
| Cookie
+ An RFC 6265 Cookie.
+ |
+
| Cookie.Builder
+ Builds a cookie.
+ |
+
| CookieJar
+ Provides policy and persistence for HTTP cookies.
+ |
+
| Dispatcher
+ Policy on when async requests are executed.
+ |
+
| Dns
+ A domain name service that resolves IP addresses for host names.
+ |
+
| EventListener
+ Listener for metrics events.
+ |
+
| EventListener.Factory | +
| FormBody | +
| FormBody.Builder | +
| Handshake
+ A record of a TLS handshake.
+ |
+
| Headers
+ The header fields of a single HTTP message.
+ |
+
| Headers.Builder | +
| HttpUrl
+ A uniform resource locator (URL) with a scheme of either
+http or https. |
+
| HttpUrl.Builder | +
| Interceptor
+ Observes, modifies, and potentially short-circuits requests going out and the corresponding
+ responses coming back in.
+ |
+
| Interceptor.Chain | +
| MediaType
+ An RFC 2045 Media Type, appropriate to describe
+ the content type of an HTTP request or response body.
+ |
+
| MultipartBody
+ An RFC 2387-compliant request body.
+ |
+
| MultipartBody.Builder | +
| MultipartBody.Part | +
| OkHttpClient
+ Factory for calls, which can be used to send HTTP requests and read their
+ responses.
+ |
+
| OkHttpClient.Builder | +
| Protocol
+ Protocols that OkHttp implements for ALPN selection.
+ |
+
| Request
+ An HTTP request.
+ |
+
| Request.Builder | +
| RequestBody | +
| Response
+ An HTTP response.
+ |
+
| Response.Builder | +
| ResponseBody
+ A one-shot stream from the origin server to the client application with the raw bytes of the
+ response body.
+ |
+
| Route
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| TlsVersion
+ Versions of TLS that can be offered when negotiating a secure socket.
+ |
+
| WebSocket
+ A non-blocking interface to a web socket.
+ |
+
| WebSocket.Factory | +
| WebSocketListener | +
Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/overview-tree.html b/3.x/okhttp/overview-tree.html new file mode 100644 index 000000000..518e5fcea --- /dev/null +++ b/3.x/okhttp/overview-tree.html @@ -0,0 +1,208 @@ + + + + + + +Copyright © 2019. All rights reserved.
+ + diff --git a/3.x/okhttp/package-list b/3.x/okhttp/package-list new file mode 100644 index 000000000..80c510a07 --- /dev/null +++ b/3.x/okhttp/package-list @@ -0,0 +1 @@ +okhttp3 diff --git a/3.x/okhttp/script.js b/3.x/okhttp/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/3.x/okhttp/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/3.x/okhttp/stylesheet.css b/3.x/okhttp/stylesheet.css new file mode 100644 index 000000000..8841f37c4 --- /dev/null +++ b/3.x/okhttp/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/3.x/okhttp/version.txt b/3.x/okhttp/version.txt new file mode 100644 index 000000000..f982feb41 --- /dev/null +++ b/3.x/okhttp/version.txt @@ -0,0 +1 @@ +3.14.0