diff --git a/3.x/benchmarks/META-INF/MANIFEST.MF b/3.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /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_45 + diff --git a/3.x/benchmarks/allclasses-frame.html b/3.x/benchmarks/allclasses-frame.html new file mode 100644 index 000000000..47dcfa3bd --- /dev/null +++ b/3.x/benchmarks/allclasses-frame.html @@ -0,0 +1,20 @@ + + + +
+ + +Copyright © 2016. 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..86c469a35 --- /dev/null +++ b/3.x/benchmarks/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..c28505bcb --- /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 © 2016. 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..6d236c5ac --- /dev/null +++ b/3.x/benchmarks/index-all.html @@ -0,0 +1,165 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/benchmarks/index.html b/3.x/benchmarks/index.html new file mode 100644 index 000000000..ea82a901c --- /dev/null +++ b/3.x/benchmarks/index.html @@ -0,0 +1,72 @@ + + + + + + +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/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..b7b25d5e6 --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/class-use/Benchmark.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..af95e6da4 --- /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 © 2016. 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..5e449f390 --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2016. 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..d39d2cbb1 --- /dev/null +++ b/3.x/benchmarks/okhttp3/benchmarks/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..61b8737e9 --- /dev/null +++ b/3.x/benchmarks/overview-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2016. 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..cebb4fd8d --- /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; + 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/3.x/benchmarks/version.txt b/3.x/benchmarks/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/benchmarks/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file diff --git a/3.x/logging-interceptor/META-INF/MANIFEST.MF b/3.x/logging-interceptor/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/3.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/3.x/logging-interceptor/allclasses-frame.html b/3.x/logging-interceptor/allclasses-frame.html new file mode 100644 index 000000000..347d8d14c --- /dev/null +++ b/3.x/logging-interceptor/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +Copyright © 2016. 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..2eb605a46 --- /dev/null +++ b/3.x/logging-interceptor/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..bf6e4db8b --- /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 © 2016. 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..e43fad1ac --- /dev/null +++ b/3.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/3.x/logging-interceptor/index.html b/3.x/logging-interceptor/index.html new file mode 100644 index 000000000..e686776b3 --- /dev/null +++ b/3.x/logging-interceptor/index.html @@ -0,0 +1,72 @@ + + + + + + +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/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..9e847ca58 --- /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(String message) |
+
static final HttpLoggingInterceptor.Logger DEFAULT+
HttpLoggingInterceptor.Logger defaults output appropriate for the current platform.Copyright © 2016. 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..740bf5574 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/HttpLoggingInterceptor.html @@ -0,0 +1,358 @@ + + + + + + +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/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..fd8c333fa --- /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(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/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..57e54738e --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/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/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..f09f8c4ce --- /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 © 2016. 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..e048f31ba --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/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/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..68fdc1627 --- /dev/null +++ b/3.x/logging-interceptor/okhttp3/logging/package-tree.html @@ -0,0 +1,149 @@ + + + + + + +Copyright © 2016. 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..aec7d7883 --- /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 © 2016. 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..ceb1ab637 --- /dev/null +++ b/3.x/logging-interceptor/overview-tree.html @@ -0,0 +1,153 @@ + + + + + + +Copyright © 2016. 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..cebb4fd8d --- /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; + 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/3.x/logging-interceptor/version.txt b/3.x/logging-interceptor/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/logging-interceptor/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file diff --git a/3.x/mockwebserver/META-INF/MANIFEST.MF b/3.x/mockwebserver/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /dev/null +++ b/3.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/3.x/mockwebserver/allclasses-frame.html b/3.x/mockwebserver/allclasses-frame.html new file mode 100644 index 000000000..11575cb6a --- /dev/null +++ b/3.x/mockwebserver/allclasses-frame.html @@ -0,0 +1,28 @@ + + + + + + +Copyright © 2016. 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..5fe4ac580 --- /dev/null +++ b/3.x/mockwebserver/deprecated-list.html @@ -0,0 +1,150 @@ + + + + + + +| Method and Description | +
|---|
| okhttp3.mockwebserver.RecordedRequest.getUtf8Body()
+ Use
+getBody().readUtf8(). |
+
Copyright © 2016. 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..9c7990702 --- /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 © 2016. 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..b9ac88009 --- /dev/null +++ b/3.x/mockwebserver/index-all.html @@ -0,0 +1,565 @@ + + + + + + +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.hostName containing keyPair's public key, signed by
+ keyPair's private key.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 transferred.protocols include Protocol.HTTP_2, this attaches a pushed stream to this response.Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/index.html b/3.x/mockwebserver/index.html new file mode 100644 index 000000000..8319de306 --- /dev/null +++ b/3.x/mockwebserver/index.html @@ -0,0 +1,75 @@ + + + + + + +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() |
+
KeyPair |
+generateKeyPair() |
+
static SSLContext |
+localhost()
+Returns a new SSL context for this host's current localhost address.
+ |
+
X509Certificate |
+selfSignedCertificate(KeyPair keyPair,
+ String serialNumber)
+Generates a certificate for
+hostName containing keyPair's public key, signed by
+ keyPair's private key. |
+
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+
GeneralSecurityExceptionpublic KeyPair generateKeyPair() + throws GeneralSecurityException+
GeneralSecurityExceptionpublic X509Certificate selfSignedCertificate(KeyPair keyPair, + String serialNumber) + throws GeneralSecurityException+
hostName containing keyPair's public key, signed by
+ keyPair's private key.GeneralSecurityExceptionCopyright © 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..c4f78c75b --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/class-use/SslContextBuilder.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..bafe6a0ee --- /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..a71f7d08c --- /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..dcf6134c9 --- /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..e0fcd73fb --- /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..0578ccda5 --- /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/package-frame.html b/3.x/mockwebserver/okhttp3/internal/package-frame.html new file mode 100644 index 000000000..19241a8cb --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| 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..fed0cd16f --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +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..0d2f6ea3c --- /dev/null +++ b/3.x/mockwebserver/okhttp3/internal/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..b3dd9a32d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/Dispatcher.html @@ -0,0 +1,307 @@ + + + + + + +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/3.x/mockwebserver/okhttp3/mockwebserver/MockResponse.html b/3.x/mockwebserver/okhttp3/mockwebserver/MockResponse.html new file mode 100644 index 000000000..cc7495397 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/MockResponse.html @@ -0,0 +1,763 @@ + + + + + + +| 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() |
+
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.
+ |
+
okhttp3.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(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(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 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.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 Buffer getBody()+
public MockResponse setBody(Buffer body)+
public MockResponse setBody(String body)+
body.public MockResponse setChunkedBody(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 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 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.framed.Settings settings)+ +
public okhttp3.internal.framed.Settings getSettings()+
public MockResponse withWebSocketUpgrade(WebSocketListener listener)+
public WebSocketListener getWebSocketListener()+
Copyright © 2016. 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..b64a2d9ee --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/MockWebServer.html @@ -0,0 +1,656 @@ + + + + + + +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 |
+getHostName() |
+
int |
+getPort() |
+
int |
+getRequestCount()
+Returns the number of HTTP requests received thus far by this server.
+ |
+
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)+
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 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/3.x/mockwebserver/okhttp3/mockwebserver/PushPromise.html b/3.x/mockwebserver/okhttp3/mockwebserver/PushPromise.html new file mode 100644 index 000000000..27909ad42 --- /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 © 2016. 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..b2fc5d9ba --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/QueueDispatcher.html @@ -0,0 +1,391 @@ + + + + + + +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/3.x/mockwebserver/okhttp3/mockwebserver/RecordedRequest.html b/3.x/mockwebserver/okhttp3/mockwebserver/RecordedRequest.html new file mode 100644 index 000000000..3d546952d --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/RecordedRequest.html @@ -0,0 +1,462 @@ + + + + + + +public final class RecordedRequest +extends Object+
| Constructor and Description | +
|---|
RecordedRequest(String requestLine,
+ Headers headers,
+ List<Integer> chunkSizes,
+ long bodySize,
+ Buffer body,
+ int sequenceNumber,
+ Socket socket) |
+
| Modifier and Type | +Method and Description | +
|---|---|
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 Buffer getBody()+
public String getUtf8Body()+
getBody().readUtf8().public int getSequenceNumber()+
public TlsVersion getTlsVersion()+
Copyright © 2016. 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..1379c9e28 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/SocketPolicy.html @@ -0,0 +1,505 @@ + + + + + + +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 | +
|---|
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+
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 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/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..408deed24 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/Dispatcher.html @@ -0,0 +1,183 @@ + + + + + + +| 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 | +
|---|---|
void |
+MockWebServer.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
Copyright © 2016. 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..07d7e7ab4 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockResponse.html @@ -0,0 +1,357 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.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 |
+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 |
+PushPromise.response() |
+
MockResponse |
+MockResponse.setBody(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(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 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.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/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..297faf922 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/MockWebServer.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..f697cdc64 --- /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 © 2016. 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..7bb4c0d96 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/QueueDispatcher.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..4fa2ffbc6 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/class-use/RecordedRequest.html @@ -0,0 +1,195 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.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/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..f01d3dbab --- /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 © 2016. 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..30ad353fd --- /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 © 2016. 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..b71242626 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/package-tree.html @@ -0,0 +1,159 @@ + + + + + + +Copyright © 2016. 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..27dcc3c65 --- /dev/null +++ b/3.x/mockwebserver/okhttp3/mockwebserver/package-use.html @@ -0,0 +1,181 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3.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/3.x/mockwebserver/overview-frame.html b/3.x/mockwebserver/overview-frame.html new file mode 100644 index 000000000..b4ccc9f55 --- /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..90475e11f --- /dev/null +++ b/3.x/mockwebserver/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3.internal | ++ |
| okhttp3.internal.framed | ++ |
| okhttp3.mockwebserver | ++ |
Copyright © 2016. 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..a600766b6 --- /dev/null +++ b/3.x/mockwebserver/overview-tree.html @@ -0,0 +1,167 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/mockwebserver/package-list b/3.x/mockwebserver/package-list new file mode 100644 index 000000000..d48f354ec --- /dev/null +++ b/3.x/mockwebserver/package-list @@ -0,0 +1,3 @@ +okhttp3.internal +okhttp3.internal.framed +okhttp3.mockwebserver 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..cebb4fd8d --- /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; + 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/3.x/mockwebserver/version.txt b/3.x/mockwebserver/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/mockwebserver/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file diff --git a/3.x/okcurl/META-INF/MANIFEST.MF b/3.x/okcurl/META-INF/MANIFEST.MF new file mode 100644 index 000000000..aaa8bf6f7 --- /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_45 + diff --git a/3.x/okcurl/allclasses-frame.html b/3.x/okcurl/allclasses-frame.html new file mode 100644 index 000000000..088bce353 --- /dev/null +++ b/3.x/okcurl/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +Copyright © 2016. 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..c1dee5d40 --- /dev/null +++ b/3.x/okcurl/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..1a4278315 --- /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 © 2016. 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..446f536a9 --- /dev/null +++ b/3.x/okcurl/index-all.html @@ -0,0 +1,223 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okcurl/index.html b/3.x/okcurl/index.html new file mode 100644 index 000000000..d1262be0d --- /dev/null +++ b/3.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.
+| 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/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..179650170 --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/class-use/Main.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..d31b43ae6 --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| Main | ++ |
Copyright © 2016. 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..e71259cac --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2016. 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..7dc632735 --- /dev/null +++ b/3.x/okcurl/okhttp3/curl/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..5279a9fc6 --- /dev/null +++ b/3.x/okcurl/overview-tree.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2016. 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..cebb4fd8d --- /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; + 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/3.x/okcurl/version.txt b/3.x/okcurl/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okcurl/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file 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..aaa8bf6f7 --- /dev/null +++ b/3.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/3.x/okhttp-android-support/allclasses-frame.html b/3.x/okhttp-android-support/allclasses-frame.html new file mode 100644 index 000000000..3750dc5a5 --- /dev/null +++ b/3.x/okhttp-android-support/allclasses-frame.html @@ -0,0 +1,22 @@ + + + + + + +Copyright © 2016. 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..77620b389 --- /dev/null +++ b/3.x/okhttp-android-support/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..d83576296 --- /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 © 2016. 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..25323e407 --- /dev/null +++ b/3.x/okhttp-android-support/index-all.html @@ -0,0 +1,245 @@ + + + + + + +ResponseCache
+ with stats.ResponseCache contains a Cache.Copyright © 2016. 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..736ef7c34 --- /dev/null +++ b/3.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.
+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/3.x/okhttp-android-support/okhttp3/AndroidShimResponseCache.html b/3.x/okhttp-android-support/okhttp3/AndroidShimResponseCache.html new file mode 100644 index 000000000..f1554bba6 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/AndroidShimResponseCache.html @@ -0,0 +1,487 @@ + + + + + + +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/3.x/okhttp-android-support/okhttp3/OkCacheContainer.html b/3.x/okhttp-android-support/okhttp3/OkCacheContainer.html new file mode 100644 index 000000000..62037b5de --- /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 © 2016. 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..d810225a0 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/class-use/AndroidInternal.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..234f3cf80 --- /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 © 2016. 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..e4e3b58a6 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/class-use/OkCacheContainer.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..7daa7c3ae --- /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 © 2016. 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..04f6f9a76 --- /dev/null +++ b/3.x/okhttp-android-support/okhttp3/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +Copyright © 2016. 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..09dc5d58c --- /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 © 2016. 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..fe1ec9d0f --- /dev/null +++ b/3.x/okhttp-android-support/overview-tree.html @@ -0,0 +1,146 @@ + + + + + + +Copyright © 2016. 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..cebb4fd8d --- /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; + 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/3.x/okhttp-android-support/version.txt b/3.x/okhttp-android-support/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okhttp-android-support/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ 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..aaa8bf6f7 --- /dev/null +++ b/3.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/3.x/okhttp-apache/allclasses-frame.html b/3.x/okhttp-apache/allclasses-frame.html new file mode 100644 index 000000000..f3f647ece --- /dev/null +++ b/3.x/okhttp-apache/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +Copyright © 2016. 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..94c9801d0 --- /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 © 2016. 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..6f30ce89c --- /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 © 2016. 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..151454e3b --- /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 © 2016. 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..c7fee6d74 --- /dev/null +++ b/3.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.
+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 HttpClient+
| Constructor and Description | +
|---|
OkApacheClient()
+Deprecated.
+ |
+
OkApacheClient(OkHttpClient client)
+Deprecated.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
HttpResponse |
+execute(HttpHost host,
+ HttpRequest request)
+Deprecated.
+ |
+
HttpResponse |
+execute(HttpHost host,
+ HttpRequest request,
+ HttpContext context)
+Deprecated.
+ |
+
<T> T |
+execute(HttpHost host,
+ HttpRequest request,
+ ResponseHandler<? extends T> handler)
+Deprecated.
+ |
+
<T> T |
+execute(HttpHost host,
+ HttpRequest request,
+ ResponseHandler<? extends T> handler,
+ HttpContext context)
+Deprecated.
+ |
+
HttpResponse |
+execute(HttpUriRequest request)
+Deprecated.
+ |
+
HttpResponse |
+execute(HttpUriRequest request,
+ HttpContext context)
+Deprecated.
+ |
+
<T> T |
+execute(HttpUriRequest request,
+ ResponseHandler<? extends T> handler)
+Deprecated.
+ |
+
<T> T |
+execute(HttpUriRequest request,
+ ResponseHandler<? extends T> handler,
+ HttpContext context)
+Deprecated.
+ |
+
ClientConnectionManager |
+getConnectionManager()
+Deprecated.
+ |
+
HttpParams |
+getParams()
+Deprecated.
+ |
+
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/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..ccf86bb8c --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/class-use/OkApacheClient.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..169dc0948 --- /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 © 2016. 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..10335eaf6 --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +Copyright © 2016. 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..0e3308215 --- /dev/null +++ b/3.x/okhttp-apache/okhttp3/apache/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..101a94ad1 --- /dev/null +++ b/3.x/okhttp-apache/overview-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2016. 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..cebb4fd8d --- /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; + 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/3.x/okhttp-apache/version.txt b/3.x/okhttp-apache/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okhttp-apache/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file 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..aaa8bf6f7 --- /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_45 + 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..e68ac40e8 --- /dev/null +++ b/3.x/okhttp-testing-support/allclasses-frame.html @@ -0,0 +1,23 @@ + + + + + + +Copyright © 2016. 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..f566455ae --- /dev/null +++ b/3.x/okhttp-testing-support/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..68b9f3fcd --- /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 © 2016. 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..6946b6bf0 --- /dev/null +++ b/3.x/okhttp-testing-support/index-all.html @@ -0,0 +1,255 @@ + + + + + + +RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android.Copyright © 2016. 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..ed36b0ac8 --- /dev/null +++ b/3.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.
+NO_COOKIES| Constructor and Description | +
|---|
RecordingCookieJar() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+assertResponseCookies(String... cookies) |
+
void |
+enqueueRequestCookies(Cookie... cookies) |
+
List<Cookie> |
+loadForRequest(HttpUrl url) |
+
void |
+saveFromResponse(HttpUrl url,
+ List<Cookie> cookies) |
+
List<Cookie> |
+takeResponseCookies() |
+
public void enqueueRequestCookies(Cookie... cookies)+
public void assertResponseCookies(String... cookies)+
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-testing-support/okhttp3/class-use/RecordingCookieJar.html b/3.x/okhttp-testing-support/okhttp3/class-use/RecordingCookieJar.html new file mode 100644 index 000000000..42b7d6907 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/class-use/RecordingCookieJar.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..aed18b1ac --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/InMemoryFileSystem.html @@ -0,0 +1,472 @@ + + + + + + +public final class InMemoryFileSystem +extends Object +implements okhttp3.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 okhttp3.internal.io.FileSystemFileNotFoundExceptionpublic okio.Sink sink(File file) + throws FileNotFoundException+
sink in interface okhttp3.internal.io.FileSystemFileNotFoundExceptionpublic okio.Sink appendingSink(File file) + throws FileNotFoundException+
appendingSink in interface okhttp3.internal.io.FileSystemFileNotFoundExceptionpublic void delete(File file) + throws IOException+
delete in interface okhttp3.internal.io.FileSystemIOExceptionpublic boolean exists(File file) + throws IOException+
exists in interface okhttp3.internal.io.FileSystemIOExceptionpublic long size(File file)+
size in interface okhttp3.internal.io.FileSystempublic void rename(File from, + File to) + throws IOException+
rename in interface okhttp3.internal.io.FileSystemIOExceptionpublic void deleteContents(File directory) + throws IOException+
deleteContents in interface okhttp3.internal.io.FileSystemIOExceptionCopyright © 2016. 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..fc93b1f07 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/class-use/InMemoryFileSystem.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..576b84089 --- /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 © 2016. 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..641031990 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2016. 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..4ab0bc254 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/internal/io/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..dbefdb72e --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +| Class | +Description | +
|---|---|
| RecordingCookieJar | ++ |
Copyright © 2016. 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..134c332de --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +Copyright © 2016. 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..e286f645e --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..6476a2072 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/InstallUncaughtExceptionHandlerListener.html @@ -0,0 +1,334 @@ + + + + + + +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/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..e54bab785 --- /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..a409d8a72 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/class-use/InstallUncaughtExceptionHandlerListener.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..5edde2883 --- /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..2eee7a1fa --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/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/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..1a5432b29 --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/package-tree.html @@ -0,0 +1,144 @@ + + + + + + +Copyright © 2016. 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..70379208d --- /dev/null +++ b/3.x/okhttp-testing-support/okhttp3/testing/package-use.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..a90cb2b91 --- /dev/null +++ b/3.x/okhttp-testing-support/overview-frame.html @@ -0,0 +1,24 @@ + + + + + + ++ + 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..28523fe09 --- /dev/null +++ b/3.x/okhttp-testing-support/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +
| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| okhttp3.internal.io | ++ |
| okhttp3.testing | ++ |
Copyright © 2016. 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..db24e73c3 --- /dev/null +++ b/3.x/okhttp-testing-support/overview-tree.html @@ -0,0 +1,148 @@ + + + + + + +Copyright © 2016. 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..02ca62acc --- /dev/null +++ b/3.x/okhttp-testing-support/package-list @@ -0,0 +1,3 @@ +okhttp3 +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..cebb4fd8d --- /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; + 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/3.x/okhttp-testing-support/version.txt b/3.x/okhttp-testing-support/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okhttp-testing-support/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file 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..aaa8bf6f7 --- /dev/null +++ b/3.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/3.x/okhttp-urlconnection/allclasses-frame.html b/3.x/okhttp-urlconnection/allclasses-frame.html new file mode 100644 index 000000000..7b98cc56b --- /dev/null +++ b/3.x/okhttp-urlconnection/allclasses-frame.html @@ -0,0 +1,24 @@ + + + + + + +Copyright © 2016. 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..b4ff48e50 --- /dev/null +++ b/3.x/okhttp-urlconnection/deprecated-list.html @@ -0,0 +1,152 @@ + + + + + + +| Class and Description | +
|---|
| okhttp3.OkUrlFactory
+ OkHttp will be dropping its ability to be used with
+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. |
+
Copyright © 2016. 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..86eb57408 --- /dev/null +++ b/3.x/okhttp-urlconnection/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/3.x/okhttp-urlconnection/index-all.html b/3.x/okhttp-urlconnection/index-all.html new file mode 100644 index 000000000..6b5ca0bea --- /dev/null +++ b/3.x/okhttp-urlconnection/index-all.html @@ -0,0 +1,243 @@ + + + + + + +URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).Authenticator to Authenticator.CookieHandler.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.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/index.html b/3.x/okhttp-urlconnection/index.html new file mode 100644 index 000000000..19ea7dcc2 --- /dev/null +++ b/3.x/okhttp-urlconnection/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.
+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 © 2016. 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..1a1987765 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/OkUrlFactory.html @@ -0,0 +1,374 @@ + + + + + + +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.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 © 2016. 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..d04f92ee0 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/class-use/JavaNetAuthenticator.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2016. 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..351fbdb78 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/class-use/OkUrlFactory.html @@ -0,0 +1,176 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| 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 © 2016. 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..45db477bc --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/package-frame.html @@ -0,0 +1,22 @@ + + + + + + +| Class | +Description | +
|---|---|
| JavaNetAuthenticator | +
+ Adapts
+Authenticator to Authenticator. |
+
| OkUrlFactory | +Deprecated
+ OkHttp will be dropping its ability to be used with
+HttpURLConnection in an
+ upcoming release. |
+
Copyright © 2016. 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..670f87b9a --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/package-tree.html @@ -0,0 +1,140 @@ + + + + + + +Copyright © 2016. 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..b06d91634 --- /dev/null +++ b/3.x/okhttp-urlconnection/okhttp3/package-use.html @@ -0,0 +1,165 @@ + + + + + + +| Package | +Description | +
|---|---|
| okhttp3 | ++ |
| Class and Description | +
|---|
| OkUrlFactory
+ Deprecated.
+
+OkHttp will be dropping its ability to be used with
+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. |
+
Copyright © 2016. 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..a5d9e03dd --- /dev/null +++ b/3.x/okhttp-urlconnection/overview-tree.html @@ -0,0 +1,144 @@ + + + + + + +Copyright © 2016. 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..a4a21955e --- /dev/null +++ b/3.x/okhttp-urlconnection/package-list @@ -0,0 +1,2 @@ +okhttp3 +okhttp3.internal 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..cebb4fd8d --- /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; + 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/3.x/okhttp-urlconnection/version.txt b/3.x/okhttp-urlconnection/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okhttp-urlconnection/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file 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..aaa8bf6f7 --- /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_45 + diff --git a/3.x/okhttp-ws/allclasses-frame.html b/3.x/okhttp-ws/allclasses-frame.html new file mode 100644 index 000000000..dd7853697 --- /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..6d82c8cc0 --- /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..c2143a682 --- /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..5288e96f4 --- /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..d398dd5ed --- /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..5b529cb92 --- /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..c1da93649 --- /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..e8ce99f50 --- /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..b8bac4e5a --- /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..09bfe4725 --- /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..28f059a0e --- /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..95a3316b4 --- /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..1eb9f1ccd --- /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..d393108aa --- /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..cebb4fd8d --- /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; + 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/3.x/okhttp-ws/version.txt b/3.x/okhttp-ws/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okhttp-ws/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ 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..aaa8bf6f7 --- /dev/null +++ b/3.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/3.x/okhttp/allclasses-frame.html b/3.x/okhttp/allclasses-frame.html new file mode 100644 index 000000000..f7e523287 --- /dev/null +++ b/3.x/okhttp/allclasses-frame.html @@ -0,0 +1,65 @@ + + + + + + +Copyright © 2016. 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..d36944001 --- /dev/null +++ b/3.x/okhttp/deprecated-list.html @@ -0,0 +1,148 @@ + + + + + + +| Method and Description | +
|---|
| okhttp3.CertificatePinner.check(String, Certificate...)
+ replaced with
+CertificatePinner.check(String, List). |
+
Copyright © 2016. 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..9bbe16421 --- /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 © 2016. 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..93a5a19d0 --- /dev/null +++ b/3.x/okhttp/index-all.html @@ -0,0 +1,1784 @@ + + + + + + +hostname.name and value.name and value.response.Cache-Control header, replacing any cache control headers already
+ present.Cache-Control request header.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.MultipartBody.type() and MultipartBody.boundary().content.content.content.content.file.content.content.content.scheme.equals("http"), 443 if scheme.equals("https") and -1
+ otherwise.System.currentTimeMillis().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.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.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.Map.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.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.name decoded using UTF-8, or null if there is
+ no such query parameter.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.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.name.out.Copyright © 2016. All Rights Reserved.
+ + diff --git a/3.x/okhttp/index.html b/3.x/okhttp/index.html new file mode 100644 index 000000000..7bfbab3f9 --- /dev/null +++ b/3.x/okhttp/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 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.
+ |
+
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 proxyAuthenticator, + 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()+
public Proxy proxy()+
public SSLSocketFactory sslSocketFactory()+
public HostnameVerifier hostnameVerifier()+
public CertificatePinner certificatePinner()+
Copyright © 2016. 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..7d86e69b5 --- /dev/null +++ b/3.x/okhttp/okhttp3/Authenticator.html @@ -0,0 +1,297 @@ + + + + + + +public interface Authenticator
+When authentication is requested by an origin server, the response code is 401 and the + implementation should respond with a new request that sets the "Authorization" header. +
+
+ String credential = Credentials.basic(...)
+ return response.request().newBuilder()
+ .header("Authorization", credential)
+ .build();
+
+
+ Whn 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. +
+
+ String credential = Credentials.basic(...)
+ return response.request().newBuilder()
+ .header("Proxy-Authorization", credential)
+ .build();
+
+
+ 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+
Request authenticate(Route route, + Response response) + throws IOException+
response. Returns null if the challenge cannot be satisfied.IOExceptionCopyright © 2016. 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..d34ee0ad3 --- /dev/null +++ b/3.x/okhttp/okhttp3/Cache.html @@ -0,0 +1,598 @@ + + + + + + +public final class Cache +extends Object+
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) |
+
| 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() |
+
long |
+maxSize() |
+
int |
+networkCount() |
+
int |
+requestCount() |
+
long |
+size() |
+
Iterator<String> |
+urls()
+Returns an iterator over the URLs in this cache.
+ |
+
int |
+writeAbortCount() |
+
int |
+writeSuccessCount() |
+
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+
IOExceptionpublic void close() + throws IOException+
IOExceptionpublic File directory()+
public boolean isClosed()+
public int networkCount()+
public int hitCount()+
public int requestCount()+
Copyright © 2016. 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..0775d6e4a --- /dev/null +++ b/3.x/okhttp/okhttp3/CacheControl.Builder.html @@ -0,0 +1,409 @@ + + + + + + +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/3.x/okhttp/okhttp3/CacheControl.html b/3.x/okhttp/okhttp3/CacheControl.html new file mode 100644 index 000000000..afa2b9a2f --- /dev/null +++ b/3.x/okhttp/okhttp3/CacheControl.html @@ -0,0 +1,509 @@ + + + + + + +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/3.x/okhttp/okhttp3/Call.Factory.html b/3.x/okhttp/okhttp3/Call.Factory.html new file mode 100644 index 000000000..3d1a5a6ba --- /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 © 2016. 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..1115cff78 --- /dev/null +++ b/3.x/okhttp/okhttp3/Call.html @@ -0,0 +1,351 @@ + + + + + + +public interface Call
+| Modifier and Type | +Interface and Description | +
|---|---|
static interface |
+Call.Factory |
+
| 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()
+
+ |
+
Request |
+request()
+Returns the original request that initiated this call.
+ |
+
Request request()+
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.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.void cancel()+
boolean isExecuted()+ +
boolean isCanceled()+
Copyright © 2016. 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..608709754 --- /dev/null +++ b/3.x/okhttp/okhttp3/Callback.html @@ -0,0 +1,257 @@ + + + + + + +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/3.x/okhttp/okhttp3/CertificatePinner.Builder.html b/3.x/okhttp/okhttp3/CertificatePinner.Builder.html new file mode 100644 index 000000000..15d64fc35 --- /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 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/3.x/okhttp/okhttp3/CertificatePinner.html b/3.x/okhttp/okhttp3/CertificatePinner.html new file mode 100644 index 000000000..0c3ec8b1c --- /dev/null +++ b/3.x/okhttp/okhttp3/CertificatePinner.html @@ -0,0 +1,444 @@ + + + + + + +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. + +
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, "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 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", "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.
+
+ 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. |
+
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/3.x/okhttp/okhttp3/Challenge.html b/3.x/okhttp/okhttp3/Challenge.html new file mode 100644 index 000000000..50b9c9209 --- /dev/null +++ b/3.x/okhttp/okhttp3/Challenge.html @@ -0,0 +1,344 @@ + + + + + + +public final class Challenge +extends Object+
| Constructor and Description | +
|---|
Challenge(String scheme,
+ String realm) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object o) |
+
int |
+hashCode() |
+
String |
+realm()
+Returns the protection space.
+ |
+
String |
+scheme()
+Returns the authentication scheme, like
+Basic. |
+
String |
+toString() |
+
Copyright © 2016. 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..f32c98151 --- /dev/null +++ b/3.x/okhttp/okhttp3/CipherSuite.html @@ -0,0 +1,1510 @@ + + + + + + +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) |
+
String |
+javaName()
+Returns the Java name of this cipher suite.
+ |
+
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 String javaName()+
SSL_, causing the Java name to be different from the enum
+ name which is always prefixed TLS_.public static CipherSuite forJavaName(String javaName)+
Copyright © 2016. 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..28a2880f3 --- /dev/null +++ b/3.x/okhttp/okhttp3/Connection.html @@ -0,0 +1,325 @@ + + + + + + +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 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()+
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 © 2016. 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..1d896d2d5 --- /dev/null +++ b/3.x/okhttp/okhttp3/ConnectionPool.html @@ -0,0 +1,333 @@ + + + + + + +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()+
idleConnectionCount() to count connections not currently
+ in use.public void evictAll()+
Copyright © 2016. 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..26a9886c9 --- /dev/null +++ b/3.x/okhttp/okhttp3/ConnectionSpec.Builder.html @@ -0,0 +1,366 @@ + + + + + + +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/3.x/okhttp/okhttp3/ConnectionSpec.html b/3.x/okhttp/okhttp3/ConnectionSpec.html new file mode 100644 index 000000000..3227d0176 --- /dev/null +++ b/3.x/okhttp/okhttp3/ConnectionSpec.html @@ -0,0 +1,458 @@ + + + + + + +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/3.x/okhttp/okhttp3/Cookie.Builder.html b/3.x/okhttp/okhttp3/Cookie.Builder.html new file mode 100644 index 000000000..9fa158861 --- /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 © 2016. 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..611cb1331 --- /dev/null +++ b/3.x/okhttp/okhttp3/Cookie.html @@ -0,0 +1,480 @@ + + + + + + +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.
+ |
+
long |
+expiresAt()
+Returns the time that this cookie expires, in the same format as
+System.currentTimeMillis(). |
+
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 expires 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.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 © 2016. 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..46d3873fc --- /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 be + 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 © 2016. 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..d66bc70e9 --- /dev/null +++ b/3.x/okhttp/okhttp3/Credentials.html @@ -0,0 +1,243 @@ + + + + + + +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/3.x/okhttp/okhttp3/Dispatcher.html b/3.x/okhttp/okhttp3/Dispatcher.html new file mode 100644 index 000000000..dc0c7bc48 --- /dev/null +++ b/3.x/okhttp/okhttp3/Dispatcher.html @@ -0,0 +1,430 @@ + + + + + + +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 |
+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.
public int getMaxRequestsPerHost()+
public void cancelAll()+
public List<Call> queuedCalls()+
public List<Call> runningCalls()+
public int queuedCallsCount()+
public int runningCallsCount()+
Copyright © 2016. 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..768196a42 --- /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 © 2016. 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..fac9255a1 --- /dev/null +++ b/3.x/okhttp/okhttp3/FormBody.Builder.html @@ -0,0 +1,305 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
FormBody.Builder |
+add(String name,
+ String value) |
+
FormBody.Builder |
+addEncoded(String name,
+ String value) |
+
FormBody |
+build() |
+
Copyright © 2016. 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..693e24a55 --- /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
+out 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(BufferedSink sink)
+Writes the content of this request to
+out. |
+
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()+
RequestBodyout in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown.contentLength in class RequestBodypublic void writeTo(BufferedSink sink) + throws IOException+
RequestBodyout.writeTo in class RequestBodyIOExceptionCopyright © 2016. 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..21be44463 --- /dev/null +++ b/3.x/okhttp/okhttp3/Handshake.html @@ -0,0 +1,392 @@ + + + + + + +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.
+ |
+
public static Handshake get(SSLSession session)+
public static Handshake get(TlsVersion tlsVersion, + CipherSuite cipherSuite, + List<Certificate> peerCertificates, + List<Certificate> localCertificates)+
public TlsVersion tlsVersion()+
public CipherSuite cipherSuite()+
public List<Certificate> peerCertificates()+
public Principal peerPrincipal()+
public List<Certificate> localCertificates()+
public Principal localPrincipal()+
Copyright © 2016. 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..ba5a22bb9 --- /dev/null +++ b/3.x/okhttp/okhttp3/Headers.Builder.html @@ -0,0 +1,357 @@ + + + + + + +| 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/3.x/okhttp/okhttp3/Headers.html b/3.x/okhttp/okhttp3/Headers.html new file mode 100644 index 000000000..a3186a40f --- /dev/null +++ b/3.x/okhttp/okhttp3/Headers.html @@ -0,0 +1,447 @@ + + + + + + +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. |
+
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. |
+
public String get(String name)+
public Date getDate(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 Headers.Builder newBuilder()+
public static Headers of(String... namesAndValues)+
Copyright © 2016. 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..1337249cd --- /dev/null +++ b/3.x/okhttp/okhttp3/HttpUrl.Builder.html @@ -0,0 +1,614 @@ + + + + + + +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/3.x/okhttp/okhttp3/HttpUrl.html b/3.x/okhttp/okhttp3/HttpUrl.html new file mode 100644 index 000000000..56a7eca17 --- /dev/null +++ b/3.x/okhttp/okhttp3/HttpUrl.html @@ -0,0 +1,1016 @@ + + + + + + +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". Each path segment is prefixed with "/". This class offers methods + to compose and decompose paths by segment. 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 "/", which is a path whose only segment is the 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).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
+
+
+ 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: 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() |
+
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() |
+
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, or null if
+ the resulting URL is not well-formed. |
+
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 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 interpretted by a + webserver. For this reason the URI class and this method should be avoided.
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, or null if
+ the resulting URL is not well-formed.public HttpUrl.Builder newBuilder()+
public HttpUrl.Builder newBuilder(String link)+
link from this URL,
+ or null if the resulting URL is not well-formed.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/3.x/okhttp/okhttp3/Interceptor.Chain.html b/3.x/okhttp/okhttp3/Interceptor.Chain.html new file mode 100644 index 000000000..43d81474a --- /dev/null +++ b/3.x/okhttp/okhttp3/Interceptor.Chain.html @@ -0,0 +1,256 @@ + + + + + + +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/3.x/okhttp/okhttp3/Interceptor.html b/3.x/okhttp/okhttp3/Interceptor.html new file mode 100644 index 000000000..cb0b4a2d3 --- /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 © 2016. 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..77aac9094 --- /dev/null +++ b/3.x/okhttp/okhttp3/MediaType.html @@ -0,0 +1,368 @@ + + + + + + +| 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/3.x/okhttp/okhttp3/MultipartBody.Builder.html b/3.x/okhttp/okhttp3/MultipartBody.Builder.html new file mode 100644 index 000000000..582240f31 --- /dev/null +++ b/3.x/okhttp/okhttp3/MultipartBody.Builder.html @@ -0,0 +1,394 @@ + + + + + + +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(Headers headers, + RequestBody body)+
public MultipartBody.Builder addFormDataPart(String name, + String value)+
public MultipartBody.Builder addFormDataPart(String name, + String filename, + RequestBody body)+
public MultipartBody.Builder addPart(MultipartBody.Part part)+
public MultipartBody build()+
Copyright © 2016. 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..fe35cab9f --- /dev/null +++ b/3.x/okhttp/okhttp3/MultipartBody.Part.html @@ -0,0 +1,288 @@ + + + + + + +public static final class MultipartBody.Part +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
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) |
+
public static MultipartBody.Part create(RequestBody body)+
public static MultipartBody.Part create(Headers headers, + RequestBody body)+
public static MultipartBody.Part createFormData(String name, + String value)+
public static MultipartBody.Part createFormData(String name, + String filename, + RequestBody body)+
Copyright © 2016. 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..18d0546d7 --- /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
+out 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(BufferedSink sink)
+Writes the content of this request to
+out. |
+
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+
RequestBodyout in a call to RequestBody.writeTo(okio.BufferedSink),
+ or -1 if that count is unknown.contentLength in class RequestBodyIOExceptionpublic void writeTo(BufferedSink sink) + throws IOException+
RequestBodyout.writeTo in class RequestBodyIOExceptionCopyright © 2016. 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..51d5fbb4c --- /dev/null +++ b/3.x/okhttp/okhttp3/OkHttpClient.Builder.html @@ -0,0 +1,753 @@ + + + + + + +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) |
+
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(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 |
+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 |
+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(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)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
OkHttpClient.Builder |
+writeTimeout(long timeout,
+ TimeUnit unit)
+Sets the default write timeout for new connections.
+ |
+
public OkHttpClient.Builder connectTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to
+ milliseconds.public OkHttpClient.Builder readTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.public OkHttpClient.Builder writeTimeout(long timeout, + TimeUnit unit)+
Integer.MAX_VALUE when converted to milliseconds.public OkHttpClient.Builder proxy(Proxy proxy)+
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 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(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)+
If unset, a lazily created SSL socket factory will be used.
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.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.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 build()+
Copyright © 2016. 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..e8d327ff0 --- /dev/null +++ b/3.x/okhttp/okhttp3/OkHttpClient.html @@ -0,0 +1,648 @@ + + + + + + +public final class OkHttpClient +extends Object +implements Cloneable, Call.Factory+
To create an OkHttpClient with the default settings, use the default constructor. Or create a configured instance with OkHttpClient.Builder. To adjust an existing client before making a request, use newBuilder(). This example shows a call with a 30 second timeout:
+
+
+ OkHttpClient client = ...
+ OkHttpClient clientWith30sTimeout = client.newBuilder()
+ .readTimeout(30, TimeUnit.SECONDS)
+ .build();
+ Response response = clientWith30sTimeout.newCall(request).execute();
+ | Modifier and Type | +Class and Description | +
|---|---|
static class |
+OkHttpClient.Builder |
+
| Constructor and Description | +
|---|
OkHttpClient() |
+
| Modifier and Type | +Method and Description | +
|---|---|
Authenticator |
+authenticator() |
+
Cache |
+cache() |
+
CertificatePinner |
+certificatePinner() |
+
ConnectionPool |
+connectionPool() |
+
List<ConnectionSpec> |
+connectionSpecs() |
+
int |
+connectTimeoutMillis()
+Default connect timeout (in milliseconds).
+ |
+
CookieJar |
+cookieJar() |
+
Dispatcher |
+dispatcher() |
+
Dns |
+dns() |
+
boolean |
+followRedirects() |
+
boolean |
+followSslRedirects() |
+
HostnameVerifier |
+hostnameVerifier() |
+
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 |
+newBuilder() |
+
Call |
+newCall(Request request)
+Prepares the
+request to be executed at some point in the future. |
+
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 connectTimeoutMillis()+
public int readTimeoutMillis()+
public int writeTimeoutMillis()+
public Proxy proxy()+
public ProxySelector proxySelector()+
public CookieJar cookieJar()+
public Cache cache()+
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 Call newCall(Request request)+
request to be executed at some point in the future.newCall in interface Call.Factorypublic OkHttpClient.Builder newBuilder()+
Copyright © 2016. 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..21e80de70 --- /dev/null +++ b/3.x/okhttp/okhttp3/Protocol.html @@ -0,0 +1,441 @@ + + + + + + +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/3.x/okhttp/okhttp3/Request.Builder.html b/3.x/okhttp/okhttp3/Request.Builder.html new file mode 100644 index 000000000..06767f9fb --- /dev/null +++ b/3.x/okhttp/okhttp3/Request.Builder.html @@ -0,0 +1,541 @@ + + + + + + +| 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/3.x/okhttp/okhttp3/Request.html b/3.x/okhttp/okhttp3/Request.html new file mode 100644 index 000000000..c4bac5137 --- /dev/null +++ b/3.x/okhttp/okhttp3/Request.html @@ -0,0 +1,396 @@ + + + + + + +| 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() |
+
String |
+toString() |
+
HttpUrl |
+url() |
+
public HttpUrl url()+
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/3.x/okhttp/okhttp3/RequestBody.html b/3.x/okhttp/okhttp3/RequestBody.html new file mode 100644 index 000000000..1196f801d --- /dev/null +++ b/3.x/okhttp/okhttp3/RequestBody.html @@ -0,0 +1,417 @@ + + + + + + +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,
+ 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(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(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, + 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/3.x/okhttp/okhttp3/Response.Builder.html b/3.x/okhttp/okhttp3/Response.Builder.html new file mode 100644 index 000000000..0cf32d9e3 --- /dev/null +++ b/3.x/okhttp/okhttp3/Response.Builder.html @@ -0,0 +1,459 @@ + + + + + + +| 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/3.x/okhttp/okhttp3/Response.html b/3.x/okhttp/okhttp3/Response.html new file mode 100644 index 000000000..67a5e2bb7 --- /dev/null +++ b/3.x/okhttp/okhttp3/Response.html @@ -0,0 +1,589 @@ + + + + + + +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() |
+
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. |
+
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 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.
IOExceptionpublic 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/3.x/okhttp/okhttp3/ResponseBody.html b/3.x/okhttp/okhttp3/ResponseBody.html new file mode 100644 index 000000000..fd37ef58e --- /dev/null +++ b/3.x/okhttp/okhttp3/ResponseBody.html @@ -0,0 +1,478 @@ + + + + + + +public abstract class ResponseBody +extends Object +implements Closeable+
Each response body is backed by a limited resource like a socket (live network responses) or
+ an open file (for cached responses). Failing to close the response body will leak these resources
+ and may ultimately cause the application to slow down or crash. Close the response body by
+ calling either close(), byteStream().close(), or reader().close(). The bytes() and
+ string() methods both close the response body automatically.
+
+
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() |
+
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,
+ 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 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()+
bytes(), or byteStream(), or
+ -1 if unknown.public final InputStream byteStream()+
public abstract BufferedSource source()+
public final byte[] bytes() + throws IOException+
IOExceptionpublic final Reader charStream()+
public final String string() + throws IOException+
IOExceptionpublic void close()+
close in interface Closeableclose in interface AutoCloseablepublic 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, + BufferedSource content)+
content.Copyright © 2016. 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..95d257219 --- /dev/null +++ b/3.x/okhttp/okhttp3/Route.html @@ -0,0 +1,371 @@ + + + + + + +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 obj) |
+
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() |
+
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 © 2016. 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..59d6f4230 --- /dev/null +++ b/3.x/okhttp/okhttp3/TlsVersion.html @@ -0,0 +1,392 @@ + + + + + + +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/3.x/okhttp/okhttp3/class-use/Address.html b/3.x/okhttp/okhttp3/class-use/Address.html new file mode 100644 index 000000000..914748665 --- /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 © 2016. 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..74ef8e536 --- /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 © 2016. 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..da40e3f92 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Cache.html @@ -0,0 +1,162 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+OkHttpClient.cache() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient.Builder |
+OkHttpClient.Builder.cache(Cache cache) |
+
Copyright © 2016. 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..aadaaa3ee --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CacheControl.Builder.html @@ -0,0 +1,190 @@ + + + + + + +| 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/3.x/okhttp/okhttp3/class-use/CacheControl.html b/3.x/okhttp/okhttp3/class-use/CacheControl.html new file mode 100644 index 000000000..0c5977a90 --- /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 |
+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/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..a5686d796 --- /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 © 2016. 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..4c4c6ad77 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Call.html @@ -0,0 +1,176 @@ + + + + + + +| 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) |
+
| 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.
+ |
+
Copyright © 2016. 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..7940f61ed --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Callback.html @@ -0,0 +1,151 @@ + + + + + + +Copyright © 2016. 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..b194b6de3 --- /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 hostname,
+ String... pins)
+Pins certificates for
+hostname. |
+
Copyright © 2016. 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..d8375b330 --- /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 © 2016. 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..701cfd280 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Challenge.html @@ -0,0 +1,151 @@ + + + + + + +Copyright © 2016. 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..612cf419b --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/CipherSuite.html @@ -0,0 +1,203 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
CipherSuite |
+Handshake.cipherSuite()
+Returns the cipher suite used for the connection.
+ |
+
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) |
+
static Handshake |
+Handshake.get(TlsVersion tlsVersion,
+ CipherSuite cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
Copyright © 2016. 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..f44143bbb --- /dev/null +++ b/3.x/okhttp/okhttp3/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/3.x/okhttp/okhttp3/class-use/ConnectionPool.html b/3.x/okhttp/okhttp3/class-use/ConnectionPool.html new file mode 100644 index 000000000..95d35a9dc --- /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 © 2016. 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..f1d8e65fb --- /dev/null +++ b/3.x/okhttp/okhttp3/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/3.x/okhttp/okhttp3/class-use/ConnectionSpec.html b/3.x/okhttp/okhttp3/class-use/ConnectionSpec.html new file mode 100644 index 000000000..26ae03642 --- /dev/null +++ b/3.x/okhttp/okhttp3/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.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 © 2016. 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..cef826afa --- /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 © 2016. 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..f5f3a2f9d --- /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 © 2016. 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..98d5f069f --- /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 © 2016. 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..ebee378d8 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Credentials.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. 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..ec9cf45e3 --- /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 © 2016. 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..820888949 --- /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 © 2016. 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..fa0584b1a --- /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 © 2016. 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..14a42121f --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/FormBody.html @@ -0,0 +1,149 @@ + + + + + + +Copyright © 2016. 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..f84904aa6 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Handshake.html @@ -0,0 +1,183 @@ + + + + + + +| 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 |
+Response.handshake()
+Returns the TLS handshake of the connection that carried this response, or null if the response
+ was received without TLS.
+ |
+
Handshake |
+Connection.handshake()
+Returns the TLS handshake used to establish this connection, or null if the connection is not
+ HTTPS.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Response.Builder |
+Response.Builder.handshake(Handshake handshake) |
+
Copyright © 2016. 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..0b674645b --- /dev/null +++ b/3.x/okhttp/okhttp3/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/3.x/okhttp/okhttp3/class-use/Headers.html b/3.x/okhttp/okhttp3/class-use/Headers.html new file mode 100644 index 000000000..2c059f3b0 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Headers.html @@ -0,0 +1,215 @@ + + + + + + +| 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 | +
|---|---|
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) |
+
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. |
+
static List<Cookie> |
+Cookie.parseAll(HttpUrl url,
+ Headers headers)
+Returns all of the cookies from a set of HTTP response headers.
+ |
+
Copyright © 2016. 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..109da12cd --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/HttpUrl.Builder.html @@ -0,0 +1,258 @@ + + + + + + +| 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.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 © 2016. 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..bb7f4826c --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/HttpUrl.html @@ -0,0 +1,230 @@ + + + + + + +| 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. |
+
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 | +
|---|---|
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 © 2016. 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..d4a666cb1 --- /dev/null +++ b/3.x/okhttp/okhttp3/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/3.x/okhttp/okhttp3/class-use/Interceptor.html b/3.x/okhttp/okhttp3/class-use/Interceptor.html new file mode 100644 index 000000000..9bc7f4e3d --- /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 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.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 a modifiable 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 © 2016. 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..6f10b16da --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/MediaType.html @@ -0,0 +1,292 @@ + + + + + + +| 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 | +
|---|---|
abstract MediaType |
+ResponseBody.contentType() |
+
abstract MediaType |
+RequestBody.contentType()
+Returns the Content-Type header for this body.
+ |
+
MediaType |
+MultipartBody.contentType()
+A combination of
+MultipartBody.type() and MultipartBody.boundary(). |
+
MediaType |
+FormBody.contentType() |
+
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 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,
+ 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,
+ 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. |
+
MultipartBody.Builder |
+MultipartBody.Builder.setType(MediaType type)
+Set the MIME type.
+ |
+
Copyright © 2016. 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..dc60a757b --- /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 © 2016. 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..7034cef21 --- /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 © 2016. 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..c1803d4a9 --- /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 © 2016. 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..3b851ce76 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/OkHttpClient.Builder.html @@ -0,0 +1,285 @@ + + + + + + +| 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) |
+
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(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.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.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(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)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
OkHttpClient.Builder |
+OkHttpClient.Builder.writeTimeout(long timeout,
+ TimeUnit unit)
+Sets the default write timeout for new connections.
+ |
+
Copyright © 2016. 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..81e1dc25d --- /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 © 2016. 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..7822ab547 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Protocol.html @@ -0,0 +1,246 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+Protocol.get(String protocol)
+Returns the protocol identified by
+protocol. |
+
Protocol |
+Response.protocol()
+
+ |
+
Protocol |
+Connection.protocol()
+Returns the protocol negotiated by this connection, or
+HTTP_1_1 if no protocol
+ has been negotiated. |
+
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 | +
|---|---|
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 © 2016. 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..a20f3767b --- /dev/null +++ b/3.x/okhttp/okhttp3/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/3.x/okhttp/okhttp3/class-use/Request.html b/3.x/okhttp/okhttp3/class-use/Request.html new file mode 100644 index 000000000..20b4073e1 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Request.html @@ -0,0 +1,207 @@ + + + + + + +| 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 |
+Response.request()
+The wire-level request that initiated this HTTP response.
+ |
+
Request |
+Interceptor.Chain.request() |
+
Request |
+Call.request()
+Returns the original request that initiated this call.
+ |
+
| 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) |
+
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) |
+
Copyright © 2016. 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..477c04bbf --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/RequestBody.html @@ -0,0 +1,271 @@ + + + + + + +| 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() |
+
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,
+ 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 © 2016. 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..eac9de836 --- /dev/null +++ b/3.x/okhttp/okhttp3/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/3.x/okhttp/okhttp3/class-use/Response.html b/3.x/okhttp/okhttp3/class-use/Response.html new file mode 100644 index 000000000..1ef93d99d --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/Response.html @@ -0,0 +1,217 @@ + + + + + + +| 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 |
+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/3.x/okhttp/okhttp3/class-use/ResponseBody.html b/3.x/okhttp/okhttp3/class-use/ResponseBody.html new file mode 100644 index 000000000..ce49c0750 --- /dev/null +++ b/3.x/okhttp/okhttp3/class-use/ResponseBody.html @@ -0,0 +1,191 @@ + + + + + + +| 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,
+ 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 © 2016. 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..f263e1b48 --- /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 © 2016. 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..cbde110be --- /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 © 2016. 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..911604421 --- /dev/null +++ b/3.x/okhttp/okhttp3/package-frame.html @@ -0,0 +1,72 @@ + + + + + + +| Interface | +Description | +
|---|---|
| Authenticator | +
+ Responds to an authentication challenge from either a remote web server or a 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+SPDY connection.
+ |
+
| CookieJar | +
+ Provides policy and persistence for HTTP cookies.
+ |
+
| 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. |
+
| 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 | ++ |
| Cookie | +
+ An RFC 6265 Cookie.
+ |
+
| Cookie.Builder | +
+ Builds a cookie.
+ |
+
| Credentials | +
+ Factory for HTTP authorization credentials.
+ |
+
| Dispatcher | +
+ Policy on when async requests are executed.
+ |
+
| 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.
+ |
+
| 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/3.x/okhttp/okhttp3/package-tree.html b/3.x/okhttp/okhttp3/package-tree.html new file mode 100644 index 000000000..d8c40533d --- /dev/null +++ b/3.x/okhttp/okhttp3/package-tree.html @@ -0,0 +1,195 @@ + + + + + + +Copyright © 2016. 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..530c2e4d5 --- /dev/null +++ b/3.x/okhttp/okhttp3/package-use.html @@ -0,0 +1,343 @@ + + + + + + +| Class and Description | +
|---|
| Address
+ A specification for a connection to an origin server.
+ |
+
| Authenticator
+ Responds to an authentication challenge from either a remote web server or a 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 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 | +
| 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.
+ |
+
| 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
+ 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.
+ |
+
| 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.
+ |
+
Copyright © 2016. 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..f14e28008 --- /dev/null +++ b/3.x/okhttp/overview-tree.html @@ -0,0 +1,199 @@ + + + + + + +Copyright © 2016. 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..cebb4fd8d --- /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; + 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/3.x/okhttp/version.txt b/3.x/okhttp/version.txt new file mode 100644 index 000000000..e4ebb1de6 --- /dev/null +++ b/3.x/okhttp/version.txt @@ -0,0 +1 @@ +3.0.0-RC1 \ No newline at end of file