diff --git a/1.x/benchmarks/META-INF/MANIFEST.MF b/1.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/benchmarks/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/benchmarks/allclasses-frame.html b/1.x/benchmarks/allclasses-frame.html new file mode 100644 index 000000000..c2a082ce0 --- /dev/null +++ b/1.x/benchmarks/allclasses-frame.html @@ -0,0 +1,19 @@ + + + +
+ + +public class Benchmark
+extends com.google.caliper.Benchmark
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html new file mode 100644 index 000000000..ec1e5e18c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/class-use/Benchmark.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html new file mode 100644 index 000000000..165d99597 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| Benchmark | +
+ This benchmark is fake, but may be useful for certain relative comparisons.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html new file mode 100644 index 000000000..e9b78479b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-tree.html @@ -0,0 +1,128 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html new file mode 100644 index 000000000..7371f31a6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okhttp/benchmarks/package-use.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/constant-values.html b/1.x/benchmarks/constant-values.html new file mode 100644 index 000000000..724233bd7 --- /dev/null +++ b/1.x/benchmarks/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/deprecated-list.html b/1.x/benchmarks/deprecated-list.html new file mode 100644 index 000000000..23b708089 --- /dev/null +++ b/1.x/benchmarks/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/help-doc.html b/1.x/benchmarks/help-doc.html new file mode 100644 index 000000000..9e0c82978 --- /dev/null +++ b/1.x/benchmarks/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/index-all.html b/1.x/benchmarks/index-all.html new file mode 100644 index 000000000..dc475c564 --- /dev/null +++ b/1.x/benchmarks/index-all.html @@ -0,0 +1,156 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/index.html b/1.x/benchmarks/index.html new file mode 100644 index 000000000..0f94102df --- /dev/null +++ b/1.x/benchmarks/index.html @@ -0,0 +1,65 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/package-list b/1.x/benchmarks/package-list new file mode 100644 index 000000000..8caffeb9a --- /dev/null +++ b/1.x/benchmarks/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.benchmarks diff --git a/1.x/benchmarks/resources/background.gif b/1.x/benchmarks/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/benchmarks/resources/background.gif differ diff --git a/1.x/benchmarks/resources/tab.gif b/1.x/benchmarks/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/benchmarks/resources/tab.gif differ diff --git a/1.x/benchmarks/resources/titlebar.gif b/1.x/benchmarks/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/benchmarks/resources/titlebar.gif differ diff --git a/1.x/benchmarks/resources/titlebar_end.gif b/1.x/benchmarks/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/benchmarks/resources/titlebar_end.gif differ diff --git a/1.x/benchmarks/stylesheet.css b/1.x/benchmarks/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/benchmarks/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/benchmarks/version.txt b/1.x/benchmarks/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/benchmarks/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/mockwebserver/META-INF/MANIFEST.MF b/1.x/mockwebserver/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/mockwebserver/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/mockwebserver/allclasses-frame.html b/1.x/mockwebserver/allclasses-frame.html new file mode 100644 index 000000000..d495346c4 --- /dev/null +++ b/1.x/mockwebserver/allclasses-frame.html @@ -0,0 +1,27 @@ + + + + + + +public final class SslContextBuilder +extends Object+
The crypto performed by this class is relatively slow. Clients should + reuse SSL context instances where possible.
| Constructor and Description | +
|---|
SslContextBuilder(String hostName) |
+
| Modifier and Type | +Method and Description | +
|---|---|
SSLContext |
+build() |
+
static SSLContext |
+localhost()
+Returns a new SSL context for this host's current localhost address.
+ |
+
public SslContextBuilder(String hostName)+
hostName - the subject of the host. For TLS this should be the
+ domain name that the client uses to identify the server.public static SSLContext localhost()+
public SSLContext build() + throws GeneralSecurityException+
GeneralSecurityExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html b/1.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html new file mode 100644 index 000000000..84171ee53 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/class-use/SslContextBuilder.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html b/1.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html new file mode 100644 index 000000000..cd11a15d0 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| SslContextBuilder | +
+ Constructs an SSL context for testing.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html b/1.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html new file mode 100644 index 000000000..5852a5bfb --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/package-tree.html @@ -0,0 +1,130 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/package-use.html b/1.x/mockwebserver/com/squareup/okhttp/internal/package-use.html new file mode 100644 index 000000000..ae3a76078 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/SpdyServer.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/SpdyServer.html new file mode 100644 index 000000000..84093c3f2 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/SpdyServer.html @@ -0,0 +1,314 @@ + + + + + + +public final class SpdyServer +extends Object +implements com.squareup.okhttp.internal.spdy.IncomingStreamHandler+
REFUSE_INCOMING_STREAMS| Constructor and Description | +
|---|
SpdyServer(File baseDirectory) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(String... args) |
+
void |
+receive(com.squareup.okhttp.internal.spdy.SpdyStream stream) |
+
void |
+useHttps(SSLSocketFactory sslSocketFactory) |
+
public void useHttps(SSLSocketFactory sslSocketFactory)+
public void receive(com.squareup.okhttp.internal.spdy.SpdyStream stream) + throws IOException+
receive in interface com.squareup.okhttp.internal.spdy.IncomingStreamHandlerIOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/class-use/SpdyServer.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/class-use/SpdyServer.html new file mode 100644 index 000000000..b1be0423f --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/class-use/SpdyServer.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-frame.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-frame.html new file mode 100644 index 000000000..8242db67a --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| SpdyServer | +
+ A basic SPDY server that serves the contents of a local directory.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-tree.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-tree.html new file mode 100644 index 000000000..2f190f13b --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-tree.html @@ -0,0 +1,130 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-use.html b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-use.html new file mode 100644 index 000000000..e3fa374f6 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/internal/spdy/package-use.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html new file mode 100644 index 000000000..f6540528f --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/Dispatcher.html @@ -0,0 +1,288 @@ + + + + + + +public abstract class Dispatcher +extends Object+
| Constructor and Description | +
|---|
Dispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
abstract MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
SocketPolicy |
+peekSocketPolicy()
+Returns the socket policy of the next request.
+ |
+
public abstract MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
request. This method may block (for
+ instance, to wait on a CountdownLatch).InterruptedExceptionpublic SocketPolicy peekSocketPolicy()+
SocketPolicy.KEEP_OPEN. Mischievous implementations can
+ return other values to test HTTP edge cases.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html new file mode 100644 index 000000000..59798ed26 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockResponse.html @@ -0,0 +1,688 @@ + + + + + + +| Constructor and Description | +
|---|
MockResponse()
+Creates a new mock response with an empty body.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+clearHeaders()
+Removes all HTTP headers including any "Content-Length" and
+ "Transfer-encoding" headers that were added by default.
+ |
+
MockResponse |
+clone() |
+
byte[] |
+getBody()
+Returns the raw HTTP payload, or null if this response is streamed.
+ |
+
int |
+getBodyDelayTimeMs() |
+
List<String> |
+getHeaders()
+Returns the HTTP headers, such as "Content-Length: 0".
+ |
+
List<PushPromise> |
+getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
SocketPolicy |
+getSocketPolicy() |
+
String |
+getStatus()
+Returns the HTTP response line, such as "HTTP/1.1 200 OK".
+ |
+
int |
+getThrottleBytesPerPeriod() |
+
long |
+getThrottlePeriod() |
+
TimeUnit |
+getThrottleUnit() |
+
MockResponse |
+removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+setBody(byte[] body) |
+
MockResponse |
+setBody(InputStream bodyStream,
+ long bodyLength) |
+
MockResponse |
+setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+setBodyDelayTimeMs(int delay)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+setChunkedBody(byte[] body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize
+ bytes. |
+
MockResponse |
+setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked
+ every maxChunkSize bytes. |
+
MockResponse |
+setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the
+ name and value. |
+
MockResponse |
+setResponseCode(int code) |
+
MockResponse |
+setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+setStatus(String status) |
+
MockResponse |
+throttleBody(int bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the response body writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are written. |
+
String |
+toString() |
+
MockResponse |
+withPush(PushPromise promise)
+When
+protocols
+ include a SPDY variant, this attaches a pushed stream to this response. |
+
public MockResponse()+
public MockResponse clone()+ +
public String getStatus()+
public MockResponse setResponseCode(int code)+
public MockResponse setStatus(String status)+
public List<String> getHeaders()+
public MockResponse clearHeaders()+
public MockResponse addHeader(String header)+
header as an HTTP header. For well-formed HTTP header
+ should contain a name followed by a colon and a value.public MockResponse addHeader(String name, + Object value)+
public MockResponse setHeader(String name, + Object value)+
name, then adds a new header with the
+ name and value.public MockResponse removeHeader(String name)+
name.public byte[] getBody()+
public MockResponse setBody(byte[] body)+
public MockResponse setBody(InputStream bodyStream, + long bodyLength)+
public MockResponse setBody(String body)+
body.public MockResponse setChunkedBody(byte[] body, + int maxChunkSize)+
body, chunked every maxChunkSize
+ bytes.public MockResponse setChunkedBody(String body, + int maxChunkSize)+
body, chunked
+ every maxChunkSize bytes.public SocketPolicy getSocketPolicy()+
public MockResponse setSocketPolicy(SocketPolicy socketPolicy)+
public MockResponse throttleBody(int bytesPerPeriod, + long period, + TimeUnit unit)+
bytesPerPeriod bytes are written. Use this to simulate
+ network behavior.public int getThrottleBytesPerPeriod()+
public long getThrottlePeriod()+
public TimeUnit getThrottleUnit()+
public MockResponse setBodyDelayTimeMs(int delay)+
delay. This applies to the
+ response body only; response headers are not affected.public int getBodyDelayTimeMs()+
public MockResponse withPush(PushPromise promise)+
protocols
+ include a SPDY variant, this attaches a pushed stream to this response.public List<PushPromise> getPushPromises()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html new file mode 100644 index 000000000..3368e1850 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/MockWebServer.html @@ -0,0 +1,532 @@ + + + + + + +public final class MockWebServer +extends Object+
| Constructor and Description | +
|---|
MockWebServer() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
String |
+getCookieDomain()
+Returns a cookie domain for this server.
+ |
+
String |
+getHostName() |
+
int |
+getPort() |
+
int |
+getRequestCount()
+Returns the number of HTTP requests received thus far by this server.
+ |
+
URL |
+getUrl(String path)
+Returns a URL for connecting to this server.
+ |
+
void |
+play()
+Equivalent to
+play(0). |
+
void |
+play(int port)
+Starts the server, serves all enqueued requests, and shuts the server down.
+ |
+
void |
+setBodyLimit(int maxBodyLength)
+Sets the number of bytes of the POST body to keep in memory to the given
+ limit.
+ |
+
void |
+setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
void |
+setNpnEnabled(boolean npnEnabled)
+Sets whether NPN is used on incoming HTTPS connections to negotiate a
+ protocol like HTTP/1.1 or SPDY/3.
+ |
+
void |
+setNpnProtocols(List<Protocol> protocols)
+Indicates the protocols supported by NPN on incoming HTTPS connections.
+ |
+
void |
+shutdown() |
+
RecordedRequest |
+takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
Proxy |
+toProxyAddress() |
+
void |
+useHttps(SSLSocketFactory sslSocketFactory,
+ boolean tunnelProxy)
+Serve requests with HTTPS rather than otherwise.
+ |
+
public int getPort()+
public String getHostName()+
public Proxy toProxyAddress()+
public URL getUrl(String path)+
path - the request path, such as "/".public String getCookieDomain()+
public void setBodyLimit(int maxBodyLength)+
public void setNpnEnabled(boolean npnEnabled)+
public void setNpnProtocols(List<Protocol> protocols)+
protocols - the protocols to use, in order of preference. The list
+ must contain "http/1.1". It must not contain null.public void useHttps(SSLSocketFactory sslSocketFactory, + boolean tunnelProxy)+
tunnelProxy - true to expect the HTTP CONNECT method before
+ negotiating TLS.public RecordedRequest takeRequest() + throws InterruptedException+
InterruptedExceptionpublic int getRequestCount()+
public void enqueue(MockResponse response)+
response to be returned to a request made in sequence. The
+ first request is served by the first enqueued response; the second request
+ by the second enqueued response; and so on.ClassCastException - if the default dispatcher has been replaced
+ with setDispatcher(Dispatcher).public void play() + throws IOException+
play(0).IOExceptionpublic void play(int port) + throws IOException+
port - the port to listen to, or 0 for any available port. Automated
+ tests should always use port 0 to avoid flakiness when a specific port
+ is unavailable.IOExceptionpublic void shutdown() + throws IOException+
IOExceptionpublic void setDispatcher(Dispatcher dispatcher)+
queue; custom dispatchers can vary the
+ response based on timing or the content of the request.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html new file mode 100644 index 000000000..f6f56085a --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/PushPromise.html @@ -0,0 +1,304 @@ + + + + + + +public final class PushPromise +extends Object+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ List<String> headers,
+ MockResponse response) |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<String> |
+getHeaders() |
+
String |
+getMethod() |
+
String |
+getPath() |
+
MockResponse |
+getResponse() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html new file mode 100644 index 000000000..d765446d7 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/QueueDispatcher.html @@ -0,0 +1,374 @@ + + + + + + +public class QueueDispatcher +extends Dispatcher+
enqueueResponse(MockResponse).| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+responseQueue |
+
| Constructor and Description | +
|---|
QueueDispatcher() |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
void |
+enqueueResponse(MockResponse response) |
+
SocketPolicy |
+peekSocketPolicy()
+Returns the socket policy of the next request.
+ |
+
void |
+setFailFast(boolean failFast) |
+
void |
+setFailFast(MockResponse failFastResponse) |
+
protected final BlockingQueue<MockResponse> responseQueue+
public MockResponse dispatch(RecordedRequest request) + throws InterruptedException+
Dispatcherrequest. This method may block (for
+ instance, to wait on a CountdownLatch).dispatch in class DispatcherInterruptedExceptionpublic SocketPolicy peekSocketPolicy()+
DispatcherSocketPolicy.KEEP_OPEN. Mischievous implementations can
+ return other values to test HTTP edge cases.peekSocketPolicy in class Dispatcherpublic void enqueueResponse(MockResponse response)+
public void setFailFast(boolean failFast)+
public void setFailFast(MockResponse failFastResponse)+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html new file mode 100644 index 000000000..ed541c7f5 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/RecordedRequest.html @@ -0,0 +1,468 @@ + + + + + + +public final class RecordedRequest +extends Object+
| Constructor and Description | +
|---|
RecordedRequest(String requestLine,
+ List<String> headers,
+ List<Integer> chunkSizes,
+ long bodySize,
+ byte[] body,
+ int sequenceNumber,
+ Socket socket) |
+
| Modifier and Type | +Method and Description | +
|---|---|
byte[] |
+getBody()
+Returns the body of this POST request.
+ |
+
long |
+getBodySize()
+Returns the total size of the body of this POST request (before
+ truncation).
+ |
+
List<Integer> |
+getChunkSizes()
+Returns the sizes of the chunks of this request's body, or an empty list
+ if the request's body was empty or unchunked.
+ |
+
String |
+getHeader(String name)
+Returns the first header named
+name, or null if no such header
+ exists. |
+
List<String> |
+getHeaders()
+Returns all headers.
+ |
+
List<String> |
+getHeaders(String name)
+Returns the headers named
+name. |
+
String |
+getMethod() |
+
String |
+getPath() |
+
String |
+getRequestLine() |
+
int |
+getSequenceNumber()
+Returns the index of this request on its HTTP connection.
+ |
+
String |
+getSslProtocol()
+Returns the connection's SSL protocol like
+TLSv1, SSLv3,
+ NONE or null if the connection doesn't use SSL. |
+
String |
+getUtf8Body()
+Returns the body of this POST request decoded as a UTF-8 string.
+ |
+
String |
+toString() |
+
public String getRequestLine()+
public String getMethod()+
public String getPath()+
public String getHeader(String name)+
name, or null if no such header
+ exists.public List<Integer> getChunkSizes()+
public long getBodySize()+
public byte[] getBody()+
public String getUtf8Body()+
public int getSequenceNumber()+
public String getSslProtocol()+
TLSv1, SSLv3,
+ NONE or null if the connection doesn't use SSL.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html new file mode 100644 index 000000000..5a95425de --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/SocketPolicy.html @@ -0,0 +1,428 @@ + + + + + + +public enum SocketPolicy +extends Enum<SocketPolicy>+
| Enum Constant and Description | +
|---|
DISCONNECT_AT_END
+Close the socket after the response.
+ |
+
DISCONNECT_AT_START
+Request immediate close of connection without even reading the request.
+ |
+
FAIL_HANDSHAKE
+Don't trust the client during the SSL handshake.
+ |
+
KEEP_OPEN
+Keep the socket open after the response.
+ |
+
NO_RESPONSE
+Don't response to the request but keep the socket open.
+ |
+
SHUTDOWN_INPUT_AT_END
+Shutdown the socket input after sending the response.
+ |
+
SHUTDOWN_OUTPUT_AT_END
+Shutdown the socket output after sending the response.
+ |
+
UPGRADE_TO_SSL_AT_END
+Wrap the socket with SSL at the completion of this request/response pair.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static SocketPolicy |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final SocketPolicy KEEP_OPEN+
public static final SocketPolicy DISCONNECT_AT_END+
public static final SocketPolicy UPGRADE_TO_SSL_AT_END+
public static final SocketPolicy DISCONNECT_AT_START+
public static final SocketPolicy FAIL_HANDSHAKE+
public static final SocketPolicy SHUTDOWN_INPUT_AT_END+
public static final SocketPolicy SHUTDOWN_OUTPUT_AT_END+
public static final SocketPolicy NO_RESPONSE+
public static SocketPolicy[] values()+
+for (SocketPolicy c : SocketPolicy.values()) + System.out.println(c); +
public static SocketPolicy valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html new file mode 100644 index 000000000..5ac88a2a3 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/Dispatcher.html @@ -0,0 +1,174 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Class and Description | +
|---|---|
class |
+QueueDispatcher
+Default dispatcher that processes a script of responses.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.setDispatcher(Dispatcher dispatcher)
+Sets the dispatcher used to match incoming requests to mock responses.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html new file mode 100644 index 000000000..0ba62b574 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockResponse.html @@ -0,0 +1,320 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Field and Description | +
|---|---|
protected BlockingQueue<MockResponse> |
+QueueDispatcher.responseQueue |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.addHeader(String header)
+Adds
+header as an HTTP header. |
+
MockResponse |
+MockResponse.addHeader(String name,
+ Object value)
+Adds a new header with the name and value.
+ |
+
MockResponse |
+MockResponse.clearHeaders()
+Removes all HTTP headers including any "Content-Length" and
+ "Transfer-encoding" headers that were added by default.
+ |
+
MockResponse |
+MockResponse.clone() |
+
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
MockResponse |
+PushPromise.getResponse() |
+
MockResponse |
+MockResponse.removeHeader(String name)
+Removes all headers named
+name. |
+
MockResponse |
+MockResponse.setBody(byte[] body) |
+
MockResponse |
+MockResponse.setBody(InputStream bodyStream,
+ long bodyLength) |
+
MockResponse |
+MockResponse.setBody(String body)
+Sets the response body to the UTF-8 encoded bytes of
+body. |
+
MockResponse |
+MockResponse.setBodyDelayTimeMs(int delay)
+Set the delayed time of the response body to
+delay. |
+
MockResponse |
+MockResponse.setChunkedBody(byte[] body,
+ int maxChunkSize)
+Sets the response body to
+body, chunked every maxChunkSize
+ bytes. |
+
MockResponse |
+MockResponse.setChunkedBody(String body,
+ int maxChunkSize)
+Sets the response body to the UTF-8 encoded bytes of
+body, chunked
+ every maxChunkSize bytes. |
+
MockResponse |
+MockResponse.setHeader(String name,
+ Object value)
+Removes all headers named
+name, then adds a new header with the
+ name and value. |
+
MockResponse |
+MockResponse.setResponseCode(int code) |
+
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
MockResponse |
+MockResponse.setStatus(String status) |
+
MockResponse |
+MockResponse.throttleBody(int bytesPerPeriod,
+ long period,
+ TimeUnit unit)
+Throttles the response body writer to sleep for the given period after each
+ series of
+bytesPerPeriod bytes are written. |
+
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols
+ include a SPDY variant, this attaches a pushed stream to this response. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+MockWebServer.enqueue(MockResponse response)
+Scripts
+response to be returned to a request made in sequence. |
+
void |
+QueueDispatcher.enqueueResponse(MockResponse response) |
+
void |
+QueueDispatcher.setFailFast(MockResponse failFastResponse) |
+
| Constructor and Description | +
|---|
PushPromise(String method,
+ String path,
+ List<String> headers,
+ MockResponse response) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html new file mode 100644 index 000000000..cb54e6600 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/MockWebServer.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html new file mode 100644 index 000000000..cb32a5e1f --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/PushPromise.html @@ -0,0 +1,175 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
List<PushPromise> |
+MockResponse.getPushPromises()
+Returns the streams the server will push with this response.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.withPush(PushPromise promise)
+When
+protocols
+ include a SPDY variant, this attaches a pushed stream to this response. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html new file mode 100644 index 000000000..ce733eed4 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/QueueDispatcher.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html new file mode 100644 index 000000000..4e7aa9765 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/RecordedRequest.html @@ -0,0 +1,178 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
RecordedRequest |
+MockWebServer.takeRequest()
+Awaits the next HTTP request, removes it, and returns it.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+QueueDispatcher.dispatch(RecordedRequest request) |
+
abstract MockResponse |
+Dispatcher.dispatch(RecordedRequest request)
+Returns a response to satisfy
+request. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html new file mode 100644 index 000000000..b66110630 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/class-use/SocketPolicy.html @@ -0,0 +1,193 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Modifier and Type | +Method and Description | +
|---|---|
SocketPolicy |
+MockResponse.getSocketPolicy() |
+
SocketPolicy |
+QueueDispatcher.peekSocketPolicy() |
+
SocketPolicy |
+Dispatcher.peekSocketPolicy()
+Returns the socket policy of the next request.
+ |
+
static SocketPolicy |
+SocketPolicy.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static SocketPolicy[] |
+SocketPolicy.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
MockResponse |
+MockResponse.setSocketPolicy(SocketPolicy socketPolicy) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html new file mode 100644 index 000000000..1e20b9fb5 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-frame.html @@ -0,0 +1,29 @@ + + + + + + +| Class | +Description | +
|---|---|
| Dispatcher | +
+ Handler for mock server requests.
+ |
+
| MockResponse | +
+ A scripted response to be replayed by the mock web server.
+ |
+
| MockWebServer | +
+ A scriptable web server.
+ |
+
| PushPromise | +
+ An HTTP request initiated by the server.
+ |
+
| QueueDispatcher | +
+ Default dispatcher that processes a script of responses.
+ |
+
| RecordedRequest | +
+ An HTTP request that came into the mock web server.
+ |
+
| Enum | +Description | +
|---|---|
| SocketPolicy | +
+ What should be done with the incoming socket.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html new file mode 100644 index 000000000..ca1fbe588 --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-tree.html @@ -0,0 +1,150 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html new file mode 100644 index 000000000..b539ec84b --- /dev/null +++ b/1.x/mockwebserver/com/squareup/okhttp/mockwebserver/package-use.html @@ -0,0 +1,172 @@ + + + + + + +| Package | +Description | +
|---|---|
| com.squareup.okhttp.mockwebserver | ++ |
| Class and Description | +
|---|
| Dispatcher
+ Handler for mock server requests.
+ |
+
| MockResponse
+ A scripted response to be replayed by the mock web server.
+ |
+
| PushPromise
+ An HTTP request initiated by the server.
+ |
+
| RecordedRequest
+ An HTTP request that came into the mock web server.
+ |
+
| SocketPolicy
+ What should be done with the incoming socket.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/constant-values.html b/1.x/mockwebserver/constant-values.html new file mode 100644 index 000000000..ad121be26 --- /dev/null +++ b/1.x/mockwebserver/constant-values.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/deprecated-list.html b/1.x/mockwebserver/deprecated-list.html new file mode 100644 index 000000000..3b05361ba --- /dev/null +++ b/1.x/mockwebserver/deprecated-list.html @@ -0,0 +1,117 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/help-doc.html b/1.x/mockwebserver/help-doc.html new file mode 100644 index 000000000..2ed33aa31 --- /dev/null +++ b/1.x/mockwebserver/help-doc.html @@ -0,0 +1,222 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/index-all.html b/1.x/mockwebserver/index-all.html new file mode 100644 index 000000000..1fb572a1a --- /dev/null +++ b/1.x/mockwebserver/index-all.html @@ -0,0 +1,515 @@ + + + + + + +header as an HTTP header.request.response to be returned to a request made in sequence.name, or null if no such header
+ exists.name.TLSv1, SSLv3,
+ NONE or null if the connection doesn't use SSL.play(0).name.body.delay.body, chunked every maxChunkSize
+ bytes.body, chunked
+ every maxChunkSize bytes.name, then adds a new header with the
+ name and value.bytesPerPeriod bytes are written.protocols
+ include a SPDY variant, this attaches a pushed stream to this response.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/index.html b/1.x/mockwebserver/index.html new file mode 100644 index 000000000..cf6a970bd --- /dev/null +++ b/1.x/mockwebserver/index.html @@ -0,0 +1,68 @@ + + + + + + ++ + diff --git a/1.x/mockwebserver/overview-summary.html b/1.x/mockwebserver/overview-summary.html new file mode 100644 index 000000000..68943ab0e --- /dev/null +++ b/1.x/mockwebserver/overview-summary.html @@ -0,0 +1,139 @@ + + + + + + +
| Package | +Description | +
|---|---|
| com.squareup.okhttp.internal | ++ |
| com.squareup.okhttp.internal.spdy | ++ |
| com.squareup.okhttp.mockwebserver | ++ |
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/overview-tree.html b/1.x/mockwebserver/overview-tree.html new file mode 100644 index 000000000..a4cafca05 --- /dev/null +++ b/1.x/mockwebserver/overview-tree.html @@ -0,0 +1,154 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/mockwebserver/package-list b/1.x/mockwebserver/package-list new file mode 100644 index 000000000..d6d5beaa0 --- /dev/null +++ b/1.x/mockwebserver/package-list @@ -0,0 +1,3 @@ +com.squareup.okhttp.internal +com.squareup.okhttp.internal.spdy +com.squareup.okhttp.mockwebserver diff --git a/1.x/mockwebserver/resources/background.gif b/1.x/mockwebserver/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/mockwebserver/resources/background.gif differ diff --git a/1.x/mockwebserver/resources/tab.gif b/1.x/mockwebserver/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/mockwebserver/resources/tab.gif differ diff --git a/1.x/mockwebserver/resources/titlebar.gif b/1.x/mockwebserver/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/mockwebserver/resources/titlebar.gif differ diff --git a/1.x/mockwebserver/resources/titlebar_end.gif b/1.x/mockwebserver/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/mockwebserver/resources/titlebar_end.gif differ diff --git a/1.x/mockwebserver/stylesheet.css b/1.x/mockwebserver/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/mockwebserver/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/mockwebserver/version.txt b/1.x/mockwebserver/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/mockwebserver/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp-apache/META-INF/MANIFEST.MF b/1.x/okhttp-apache/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp-apache/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp-apache/allclasses-frame.html b/1.x/okhttp-apache/allclasses-frame.html new file mode 100644 index 000000000..3e0819b18 --- /dev/null +++ b/1.x/okhttp-apache/allclasses-frame.html @@ -0,0 +1,19 @@ + + + + + + +public class OkApacheClient +extends Object +implements org.apache.http.client.HttpClient+
HttpClient API using OkHttpClient.
+ + Warning: Many core features of Apache HTTP client are not implemented by this + API. This includes the keep-alive strategy, cookie store, credentials provider, route planner + and others.
| Modifier and Type | +Field and Description | +
|---|---|
protected OkHttpClient |
+client |
+
| Constructor and Description | +
|---|
OkApacheClient() |
+
OkApacheClient(OkHttpClient client) |
+
| Modifier and Type | +Method and Description | +
|---|---|
org.apache.http.HttpResponse |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request) |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.protocol.HttpContext context) |
+
<T> T |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler) |
+
<T> T |
+execute(org.apache.http.HttpHost host,
+ org.apache.http.HttpRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler,
+ org.apache.http.protocol.HttpContext context) |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.client.methods.HttpUriRequest request) |
+
org.apache.http.HttpResponse |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.protocol.HttpContext context) |
+
<T> T |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler) |
+
<T> T |
+execute(org.apache.http.client.methods.HttpUriRequest request,
+ org.apache.http.client.ResponseHandler<? extends T> handler,
+ org.apache.http.protocol.HttpContext context) |
+
org.apache.http.conn.ClientConnectionManager |
+getConnectionManager() |
+
org.apache.http.params.HttpParams |
+getParams() |
+
protected HttpURLConnection |
+openConnection(URL url)
+Returns a new HttpURLConnection customized for this application.
+ |
+
protected final OkHttpClient client+
public OkApacheClient()+
public OkApacheClient(OkHttpClient client)+
protected HttpURLConnection openConnection(URL url)+
public org.apache.http.params.HttpParams getParams()+
getParams in interface org.apache.http.client.HttpClientpublic org.apache.http.conn.ClientConnectionManager getConnectionManager()+
getConnectionManager in interface org.apache.http.client.HttpClientpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.client.methods.HttpUriRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionpublic <T> T execute(org.apache.http.HttpHost host, + org.apache.http.HttpRequest request, + org.apache.http.client.ResponseHandler<? extends T> handler, + org.apache.http.protocol.HttpContext context) + throws IOException+
execute in interface org.apache.http.client.HttpClientIOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html new file mode 100644 index 000000000..69bfc2446 --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/class-use/OkApacheClient.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html new file mode 100644 index 000000000..a10ed4cb8 --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkApacheClient | +
+ Implements Apache's
+HttpClient API using OkHttpClient. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html new file mode 100644 index 000000000..83a4bff61 --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-tree.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html new file mode 100644 index 000000000..850deeb8e --- /dev/null +++ b/1.x/okhttp-apache/com/squareup/okhttp/apache/package-use.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/constant-values.html b/1.x/okhttp-apache/constant-values.html new file mode 100644 index 000000000..48768f528 --- /dev/null +++ b/1.x/okhttp-apache/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/deprecated-list.html b/1.x/okhttp-apache/deprecated-list.html new file mode 100644 index 000000000..4fdf64575 --- /dev/null +++ b/1.x/okhttp-apache/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/help-doc.html b/1.x/okhttp-apache/help-doc.html new file mode 100644 index 000000000..89d7bf7a2 --- /dev/null +++ b/1.x/okhttp-apache/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/index-all.html b/1.x/okhttp-apache/index-all.html new file mode 100644 index 000000000..cadc623a5 --- /dev/null +++ b/1.x/okhttp-apache/index-all.html @@ -0,0 +1,172 @@ + + + + + + +HttpClient API using OkHttpClient.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/index.html b/1.x/okhttp-apache/index.html new file mode 100644 index 000000000..f0d3a7e1c --- /dev/null +++ b/1.x/okhttp-apache/index.html @@ -0,0 +1,65 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-apache/package-list b/1.x/okhttp-apache/package-list new file mode 100644 index 000000000..510faa8fd --- /dev/null +++ b/1.x/okhttp-apache/package-list @@ -0,0 +1 @@ +com.squareup.okhttp.apache diff --git a/1.x/okhttp-apache/resources/background.gif b/1.x/okhttp-apache/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp-apache/resources/background.gif differ diff --git a/1.x/okhttp-apache/resources/tab.gif b/1.x/okhttp-apache/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp-apache/resources/tab.gif differ diff --git a/1.x/okhttp-apache/resources/titlebar.gif b/1.x/okhttp-apache/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp-apache/resources/titlebar.gif differ diff --git a/1.x/okhttp-apache/resources/titlebar_end.gif b/1.x/okhttp-apache/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp-apache/resources/titlebar_end.gif differ diff --git a/1.x/okhttp-apache/stylesheet.css b/1.x/okhttp-apache/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp-apache/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp-apache/version.txt b/1.x/okhttp-apache/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp-apache/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp-tests/META-INF/MANIFEST.MF b/1.x/okhttp-tests/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp-tests/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp-tests/version.txt b/1.x/okhttp-tests/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp-tests/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp-urlconnection/META-INF/MANIFEST.MF b/1.x/okhttp-urlconnection/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp-urlconnection/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp-urlconnection/allclasses-frame.html b/1.x/okhttp-urlconnection/allclasses-frame.html new file mode 100644 index 000000000..fd11c541a --- /dev/null +++ b/1.x/okhttp-urlconnection/allclasses-frame.html @@ -0,0 +1,19 @@ + + + + + + +public final class OkUrlFactory +extends Object +implements URLStreamHandlerFactory, Cloneable+
| Constructor and Description | +
|---|
OkUrlFactory(OkHttpClient client) |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+client() |
+
OkUrlFactory |
+clone()
+Returns a copy of this stream handler factory that includes a shallow copy
+ of the internal HTTP client.
+ |
+
URLStreamHandler |
+createURLStreamHandler(String protocol)
+Creates a URLStreamHandler as a
+URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory). |
+
HttpURLConnection |
+open(URL url) |
+
public OkUrlFactory(OkHttpClient client)+
public OkHttpClient client()+
public OkUrlFactory clone()+
public HttpURLConnection open(URL url)+
public URLStreamHandler createURLStreamHandler(String protocol)+
URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).
+
+ This code configures OkHttp to handle all HTTP and HTTPS connections
+ created with URL.openConnection():
OkHttpClient okHttpClient = new OkHttpClient();
+ URL.setURLStreamHandlerFactory(new OkUrlFactory(okHttpClient));
+ createURLStreamHandler in interface URLStreamHandlerFactoryCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html new file mode 100644 index 000000000..4254c9b0d --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/class-use/OkUrlFactory.html @@ -0,0 +1,143 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkUrlFactory |
+OkUrlFactory.clone()
+Returns a copy of this stream handler factory that includes a shallow copy
+ of the internal HTTP client.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..8e8f612bf --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-frame.html @@ -0,0 +1,20 @@ + + + + + + +| Class | +Description | +
|---|---|
| OkUrlFactory | ++ |
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..519ae0a63 --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-tree.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..43c949ebb --- /dev/null +++ b/1.x/okhttp-urlconnection/com/squareup/okhttp/package-use.html @@ -0,0 +1,133 @@ + + + + + + +| Class and Description | +
|---|
| OkUrlFactory | +
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/constant-values.html b/1.x/okhttp-urlconnection/constant-values.html new file mode 100644 index 000000000..4afd10a95 --- /dev/null +++ b/1.x/okhttp-urlconnection/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/deprecated-list.html b/1.x/okhttp-urlconnection/deprecated-list.html new file mode 100644 index 000000000..907df337f --- /dev/null +++ b/1.x/okhttp-urlconnection/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/help-doc.html b/1.x/okhttp-urlconnection/help-doc.html new file mode 100644 index 000000000..c3c1ad70b --- /dev/null +++ b/1.x/okhttp-urlconnection/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/index-all.html b/1.x/okhttp-urlconnection/index-all.html new file mode 100644 index 000000000..c1be832ec --- /dev/null +++ b/1.x/okhttp-urlconnection/index-all.html @@ -0,0 +1,143 @@ + + + + + + +URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/index.html b/1.x/okhttp-urlconnection/index.html new file mode 100644 index 000000000..a63a3b49c --- /dev/null +++ b/1.x/okhttp-urlconnection/index.html @@ -0,0 +1,65 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp-urlconnection/package-list b/1.x/okhttp-urlconnection/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/1.x/okhttp-urlconnection/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/1.x/okhttp-urlconnection/resources/background.gif b/1.x/okhttp-urlconnection/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/background.gif differ diff --git a/1.x/okhttp-urlconnection/resources/tab.gif b/1.x/okhttp-urlconnection/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/tab.gif differ diff --git a/1.x/okhttp-urlconnection/resources/titlebar.gif b/1.x/okhttp-urlconnection/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/titlebar.gif differ diff --git a/1.x/okhttp-urlconnection/resources/titlebar_end.gif b/1.x/okhttp-urlconnection/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp-urlconnection/resources/titlebar_end.gif differ diff --git a/1.x/okhttp-urlconnection/stylesheet.css b/1.x/okhttp-urlconnection/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp-urlconnection/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp-urlconnection/version.txt b/1.x/okhttp-urlconnection/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp-urlconnection/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/1.x/okhttp/META-INF/MANIFEST.MF b/1.x/okhttp/META-INF/MANIFEST.MF new file mode 100644 index 000000000..7469129bc --- /dev/null +++ b/1.x/okhttp/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.7.0_51 + diff --git a/1.x/okhttp/allclasses-frame.html b/1.x/okhttp/allclasses-frame.html new file mode 100644 index 000000000..4dd63e89c --- /dev/null +++ b/1.x/okhttp/allclasses-frame.html @@ -0,0 +1,36 @@ + + + + + + +public final class Address +extends Object+
no proxy is explicitly requested), this also includes
+ that proxy information. For secure connections the address also includes the
+ SSL socket factory and hostname verifier.
+
+ HTTP requests that share the same Address may also share the same
+ Connection.
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ OkAuthenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object other) |
+
OkAuthenticator |
+getAuthenticator()
+Returns the client's authenticator.
+ |
+
HostnameVerifier |
+getHostnameVerifier()
+Returns the hostname verifier, or null if this is not an HTTPS
+ address.
+ |
+
List<Protocol> |
+getProtocols()
+Returns the protocols the client supports.
+ |
+
Proxy |
+getProxy()
+Returns this address's explicitly-specified HTTP proxy, or null to
+ delegate to the HTTP client's proxy selector.
+ |
+
SSLSocketFactory |
+getSslSocketFactory()
+Returns the SSL socket factory, or null if this is not an HTTPS
+ address.
+ |
+
String |
+getUriHost()
+Returns the hostname of the origin server.
+ |
+
int |
+getUriPort()
+Returns the port of the origin server; typically 80 or 443.
+ |
+
int |
+hashCode() |
+
public Address(String uriHost, + int uriPort, + SSLSocketFactory sslSocketFactory, + HostnameVerifier hostnameVerifier, + OkAuthenticator authenticator, + Proxy proxy, + List<Protocol> protocols) + throws UnknownHostException+
UnknownHostExceptionpublic String getUriHost()+
public int getUriPort()+
getPort() accessors, this method never returns -1.public SSLSocketFactory getSslSocketFactory()+
public HostnameVerifier getHostnameVerifier()+
public OkAuthenticator getAuthenticator()+
public List<Protocol> getProtocols()+
Protocol.HTTP_11.public Proxy getProxy()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Cache.html b/1.x/okhttp/com/squareup/okhttp/Cache.html new file mode 100644 index 000000000..2d04aafb6 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Cache.html @@ -0,0 +1,660 @@ + + + + + + +public class Cache +extends ResponseCache +implements OkResponseCache+
Request Count: the number
+ of HTTP requests issued since this cache was created.
+ Network Count: the
+ number of those requests that required network use.
+ Hit Count: the number of
+ those requests whose responses were served by the cache.
+ GET. The server will then send either the updated response if it has
+ changed, or a short 'not modified' response if the client's copy is still
+ valid. Such responses increment both the network count and hit count.
+
+ The best way to improve the cache hit rate is by configuring the web + server to return cacheable responses. Although this client honors all HTTP/1.1 (RFC 2068) cache + headers, it doesn't cache partial responses. + +
no-cache directive: connection.addRequestProperty("Cache-Control", "no-cache");
+
+ If it is only necessary to force a cached response to be validated by the
+ server, use the more efficient max-age=0 instead: connection.addRequestProperty("Cache-Control", "max-age=0");
+
+
+ only-if-cached directive: try {
+ connection.addRequestProperty("Cache-Control", "only-if-cached");
+ InputStream cached = connection.getInputStream();
+ // the resource was cached! show it
+ } catch (FileNotFoundException e) {
+ // the resource was not cached
+ }
+
+ This technique works even better in situations where a stale response is
+ better than no response. To permit stale cached responses, use the max-stale directive with the maximum staleness in seconds: int maxStale = 60 * 60 * 24 * 28; // tolerate 4-weeks stale
+ connection.addRequestProperty("Cache-Control", "max-stale=" + maxStale);
+ | Constructor and Description | +
|---|
Cache(File directory,
+ long maxSize) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+close() |
+
void |
+delete()
+Closes the cache and deletes all of its stored values.
+ |
+
void |
+flush() |
+
com.squareup.okhttp.internal.http.Response |
+get(com.squareup.okhttp.internal.http.Request request) |
+
CacheResponse |
+get(URI uri,
+ String s,
+ Map<String,List<String>> stringListMap) |
+
File |
+getDirectory() |
+
int |
+getHitCount() |
+
long |
+getMaxSize() |
+
int |
+getNetworkCount() |
+
int |
+getRequestCount() |
+
long |
+getSize() |
+
int |
+getWriteAbortCount() |
+
int |
+getWriteSuccessCount() |
+
boolean |
+isClosed() |
+
boolean |
+maybeRemove(com.squareup.okhttp.internal.http.Request request)
+Remove any cache entries for the supplied
+uri. |
+
CacheRequest |
+put(com.squareup.okhttp.internal.http.Response response) |
+
CacheRequest |
+put(URI uri,
+ URLConnection urlConnection) |
+
void |
+trackConditionalCacheHit()
+Track an conditional GET that was satisfied by this cache.
+ |
+
void |
+trackResponse(ResponseSource source)
+Track an HTTP response being satisfied by
+source. |
+
void |
+update(com.squareup.okhttp.internal.http.Response cached,
+ com.squareup.okhttp.internal.http.Response network)
+Handles a conditional request hit by updating the stored cache response
+ with the headers from
+network. |
+
getDefault, setDefaultpublic Cache(File directory, + long maxSize) + throws IOException+
IOExceptionpublic CacheResponse get(URI uri, + String s, + Map<String,List<String>> stringListMap) + throws IOException+
get in class ResponseCacheIOExceptionpublic CacheRequest put(URI uri, + URLConnection urlConnection) + throws IOException+
put in class ResponseCacheIOExceptionpublic com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request)+
get in interface OkResponseCachepublic CacheRequest put(com.squareup.okhttp.internal.http.Response response) + throws IOException+
put in interface OkResponseCacheIOExceptionpublic boolean maybeRemove(com.squareup.okhttp.internal.http.Request request)+
OkResponseCacheuri. Returns true if the
+ supplied requestMethod potentially invalidates an entry in the
+ cache.maybeRemove in interface OkResponseCachepublic void update(com.squareup.okhttp.internal.http.Response cached, + com.squareup.okhttp.internal.http.Response network)+
OkResponseCachenetwork. The cached response body is not
+ updated. If the stored response has changed since cached was
+ returned, this does nothing.update in interface OkResponseCachepublic void delete() + throws IOException+
IOExceptionpublic int getWriteAbortCount()+
public int getWriteSuccessCount()+
public long getSize()+
public long getMaxSize()+
public void flush() + throws IOException+
IOExceptionpublic void close() + throws IOException+
IOExceptionpublic File getDirectory()+
public boolean isClosed()+
public void trackResponse(ResponseSource source)+
OkResponseCachesource.trackResponse in interface OkResponseCachepublic void trackConditionalCacheHit()+
OkResponseCachetrackConditionalCacheHit in interface OkResponseCachepublic int getNetworkCount()+
public int getHitCount()+
public int getRequestCount()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/CacheControl.html b/1.x/okhttp/com/squareup/okhttp/CacheControl.html new file mode 100644 index 000000000..a3f2d4b8b --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/CacheControl.html @@ -0,0 +1,377 @@ + + + + + + +public final class CacheControl +extends Object+
See RFC + 2616, 14.9.
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+isPublic() |
+
int |
+maxAgeSeconds()
+The duration past the response's served date that it can be served without
+ validation.
+ |
+
int |
+maxStaleSeconds() |
+
int |
+minFreshSeconds() |
+
boolean |
+mustRevalidate() |
+
boolean |
+noCache()
+In a response, this field's name "no-cache" is misleading.
+ |
+
boolean |
+noStore()
+If true, this response should not be cached.
+ |
+
boolean |
+onlyIfCached()
+This field's name "only-if-cached" is misleading.
+ |
+
static CacheControl |
+parse(com.squareup.okhttp.internal.http.Headers headers)
+Returns the cache directives of
+headers. |
+
int |
+sMaxAgeSeconds()
+The "s-maxage" directive is the max age for shared caches.
+ |
+
public boolean noCache()+
In a request, it means do not use a cache to satisfy the request.
public boolean noStore()+
public int maxAgeSeconds()+
public int sMaxAgeSeconds()+
public boolean isPublic()+
public boolean mustRevalidate()+
public int maxStaleSeconds()+
public int minFreshSeconds()+
public boolean onlyIfCached()+
public static CacheControl parse(com.squareup.okhttp.internal.http.Headers headers)+
headers. This honors both
+ Cache-Control and Pragma headers if they are present.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Connection.html b/1.x/okhttp/com/squareup/okhttp/Connection.html new file mode 100644 index 000000000..53fe2252f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Connection.html @@ -0,0 +1,675 @@ + + + + + + +public final class Connection +extends Object +implements Closeable+
Typically instances of this class are created, connected and exercised
+ automatically by the HTTP client. Applications may use this class to monitor
+ HTTP connections as members of a connection pool.
+
+
Do not confuse this class with the misnamed HttpURLConnection,
+ which isn't so much a connection as a single request/response exchange.
+
+
| Constructor and Description | +
|---|
Connection(ConnectionPool pool,
+ Route route) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+clearOwner()
+Attempts to clears the owner of this connection.
+ |
+
void |
+close() |
+
void |
+closeIfOwnedBy(Object owner)
+Closes this connection if it is currently owned by
+owner. |
+
void |
+connect(int connectTimeout,
+ int readTimeout,
+ TunnelRequest tunnelRequest) |
+
Handshake |
+getHandshake() |
+
int |
+getHttpMinorVersion()
+Returns the minor HTTP version that should be used for future requests on
+ this connection.
+ |
+
long |
+getIdleStartTimeNs()
+Returns the time in ns when this connection became idle.
+ |
+
Object |
+getOwner() |
+
Route |
+getRoute()
+Returns the route used by this connection.
+ |
+
Socket |
+getSocket()
+Returns the socket that this connection uses, or null if the connection
+ is not currently connected.
+ |
+
void |
+incrementRecycleCount() |
+
boolean |
+isAlive()
+Returns true if this connection is alive.
+ |
+
boolean |
+isConnected()
+Returns true if
+connect(int, int, com.squareup.okhttp.TunnelRequest) has been attempted on this connection. |
+
boolean |
+isExpired(long keepAliveDurationNs)
+Returns true if this connection has been idle for longer than
+
+keepAliveDurationNs. |
+
boolean |
+isIdle()
+Returns true if this connection is idle.
+ |
+
boolean |
+isReadable()
+Returns true if we are confident that we can read data from this
+ connection.
+ |
+
boolean |
+isSpdy()
+Returns true if this is a SPDY connection.
+ |
+
Object |
+newTransport(com.squareup.okhttp.internal.http.HttpEngine httpEngine)
+Returns the transport appropriate for this connection.
+ |
+
int |
+recycleCount()
+Returns the number of times this connection has been returned to the
+ connection pool.
+ |
+
boolean |
+requiresTunnel()
+Returns true if the HTTP connection needs to tunnel one protocol over
+ another, such as when using HTTPS through an HTTP proxy.
+ |
+
void |
+resetIdleStartTime() |
+
void |
+setHttpMinorVersion(int httpMinorVersion) |
+
void |
+setOwner(Object owner) |
+
void |
+updateReadTimeout(int newTimeout) |
+
public Connection(ConnectionPool pool, + Route route)+
public Object getOwner()+
public void setOwner(Object owner)+
public boolean clearOwner()+
closeIfOwnedBy(java.lang.Object).public void closeIfOwnedBy(Object owner) + throws IOException+
owner. This also
+ strips the ownership of the connection so it cannot be pooled or reused.IOExceptionpublic void connect(int connectTimeout, + int readTimeout, + TunnelRequest tunnelRequest) + throws IOException+
IOExceptionpublic boolean isConnected()+
connect(int, int, com.squareup.okhttp.TunnelRequest) has been attempted on this connection.public void close() + throws IOException+
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Route getRoute()+
public Socket getSocket()+
public boolean isAlive()+
public boolean isReadable()+ +
public void resetIdleStartTime()+
public boolean isIdle()+
public boolean isExpired(long keepAliveDurationNs)+
keepAliveDurationNs.public long getIdleStartTimeNs()+
public Handshake getHandshake()+
public Object newTransport(com.squareup.okhttp.internal.http.HttpEngine httpEngine) + throws IOException+
IOExceptionpublic boolean isSpdy()+
public int getHttpMinorVersion()+
public void setHttpMinorVersion(int httpMinorVersion)+
public boolean requiresTunnel()+
public void updateReadTimeout(int newTimeout) + throws IOException+
IOExceptionpublic void incrementRecycleCount()+
public int recycleCount()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/ConnectionPool.html b/1.x/okhttp/com/squareup/okhttp/ConnectionPool.html new file mode 100644 index 000000000..8b40809db --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/ConnectionPool.html @@ -0,0 +1,395 @@ + + + + + + +public class ConnectionPool +extends Object+
Address may share a
+ Connection. This class implements the policy of
+ which connections to keep open for future use.
+
+ The system-wide default uses system properties for
+ tuning parameters:
+
http.keepAlive true if HTTP and SPDY connections should be
+ pooled at all. Default is true.
+ http.maxConnections maximum number of idle connections to
+ each to keep in the pool. Default is 5.
+ http.keepAliveDuration Time in milliseconds to keep the
+ connection alive in the pool before closing it. Default is 5 minutes.
+ This property isn't used by HttpURLConnection.
+ The default instance doesn't adjust its configuration as system + properties are changed. This assumes that the applications that set these + parameters do so before making HTTP connections, and that this class is + initialized lazily.
| Constructor and Description | +
|---|
ConnectionPool(int maxIdleConnections,
+ long keepAliveDurationMs) |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+evictAll()
+Close and remove all connections in the pool.
+ |
+
Connection |
+get(Address address)
+Returns a recycled connection to
+address, or null if no such connection exists. |
+
int |
+getConnectionCount()
+Returns total number of connections in the pool.
+ |
+
static ConnectionPool |
+getDefault() |
+
int |
+getHttpConnectionCount()
+Returns total number of http connections in the pool.
+ |
+
int |
+getSpdyConnectionCount()
+Returns total number of spdy connections in the pool.
+ |
+
void |
+recycle(Connection connection)
+Gives
+connection to the pool. |
+
void |
+share(Connection connection)
+Shares the SPDY connection with the pool.
+ |
+
public ConnectionPool(int maxIdleConnections, + long keepAliveDurationMs)+
public static ConnectionPool getDefault()+
public int getConnectionCount()+
public int getSpdyConnectionCount()+
public int getHttpConnectionCount()+
public Connection get(Address address)+
address, or null if no such connection exists.public void recycle(Connection connection)+
connection to the pool. The pool may store the connection,
+ or close it, as its policy describes.
+
+ It is an error to use connection after calling this method.
public void share(Connection connection)+
connection.public void evictAll()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Handshake.html b/1.x/okhttp/com/squareup/okhttp/Handshake.html new file mode 100644 index 000000000..5439d5b1a --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Handshake.html @@ -0,0 +1,357 @@ + + + + + + +public final class Handshake +extends Object+
This value object describes a completed handshake. Use SSLSocketFactory to set policy for new handshakes.
| Modifier and Type | +Method and Description | +
|---|---|
String |
+cipherSuite()
+Returns a cipher suite name like "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA".
+ |
+
boolean |
+equals(Object other) |
+
static Handshake |
+get(SSLSession session) |
+
static Handshake |
+get(String cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
int |
+hashCode() |
+
List<Certificate> |
+localCertificates()
+Returns a possibly-empty list of certificates that identify this peer.
+ |
+
Principal |
+localPrincipal()
+Returns the local principle, or null if this peer is anonymous.
+ |
+
List<Certificate> |
+peerCertificates()
+Returns a possibly-empty list of certificates that identify the remote peer.
+ |
+
Principal |
+peerPrincipal()
+Returns the remote peer's principle, or null if that peer is anonymous.
+ |
+
public static Handshake get(SSLSession session)+
public static Handshake get(String cipherSuite, + List<Certificate> peerCertificates, + List<Certificate> localCertificates)+
public String cipherSuite()+
public List<Certificate> peerCertificates()+
public Principal peerPrincipal()+
public List<Certificate> localCertificates()+
public Principal localPrincipal()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/HttpResponseCache.html b/1.x/okhttp/com/squareup/okhttp/HttpResponseCache.html new file mode 100644 index 000000000..beba2022a --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/HttpResponseCache.html @@ -0,0 +1,268 @@ + + + + + + +Cache.@Deprecated +public final class HttpResponseCache +extends Cache+
| Constructor and Description | +
|---|
HttpResponseCache(File directory,
+ long maxSize)
+Deprecated.
+ |
+
close, delete, flush, get, get, getDirectory, getHitCount, getMaxSize, getNetworkCount, getRequestCount, getSize, getWriteAbortCount, getWriteSuccessCount, isClosed, maybeRemove, put, put, trackConditionalCacheHit, trackResponse, updategetDefault, setDefaultpublic HttpResponseCache(File directory, + long maxSize) + throws IOException+
IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/MediaType.html b/1.x/okhttp/com/squareup/okhttp/MediaType.html new file mode 100644 index 000000000..e08b76c77 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/MediaType.html @@ -0,0 +1,357 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Charset |
+charset()
+Returns the charset of this media type, or null if this media type doesn't
+ specify a charset.
+ |
+
Charset |
+charset(Charset defaultValue)
+Returns the charset of this media type, or
+defaultValue if this
+ media type doesn't specify a charset. |
+
boolean |
+equals(Object o) |
+
int |
+hashCode() |
+
static MediaType |
+parse(String string)
+Returns a media type for
+string, or null if string is not a
+ well-formed media type. |
+
String |
+subtype()
+Returns a specific media subtype, such as "plain" or "png", "mpeg",
+ "mp4" or "xml".
+ |
+
String |
+toString()
+Returns the encoded media type, like "text/plain; charset=utf-8",
+ appropriate for use in a Content-Type header.
+ |
+
String |
+type()
+Returns the high-level media type, such as "text", "image", "audio",
+ "video", or "application".
+ |
+
public static MediaType parse(String string)+
string, or null if string is not a
+ well-formed media type.public String type()+
public String subtype()+
public Charset charset()+
public Charset charset(Charset defaultValue)+
defaultValue if this
+ media type doesn't specify a charset.public String toString()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Challenge.html b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Challenge.html new file mode 100644 index 000000000..e7f244601 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Challenge.html @@ -0,0 +1,333 @@ + + + + + + +public static final class OkAuthenticator.Challenge +extends Object+
| Constructor and Description | +
|---|
OkAuthenticator.Challenge(String scheme,
+ String realm) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Credential.html b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Credential.html new file mode 100644 index 000000000..171354f00 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.Credential.html @@ -0,0 +1,296 @@ + + + + + + +public static final class OkAuthenticator.Credential +extends Object+
| Modifier and Type | +Method and Description | +
|---|---|
static OkAuthenticator.Credential |
+basic(String userName,
+ String password)
+Returns an auth credential for the Basic scheme.
+ |
+
boolean |
+equals(Object o) |
+
String |
+getHeaderValue() |
+
int |
+hashCode() |
+
String |
+toString() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.html b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.html new file mode 100644 index 000000000..8b1242890 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkAuthenticator.html @@ -0,0 +1,290 @@ + + + + + + +Authenticator in OkHttp 2.0.@Deprecated +public interface OkAuthenticator+
| Modifier and Type | +Interface and Description | +
|---|---|
static class |
+OkAuthenticator.Challenge
+Deprecated.
+An RFC 2617 challenge.
+ |
+
static class |
+OkAuthenticator.Credential
+Deprecated.
+An RFC 2617 credential.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator.Credential |
+authenticate(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+url. |
+
OkAuthenticator.Credential |
+authenticateProxy(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+proxy. |
+
OkAuthenticator.Credential authenticate(Proxy proxy, + URL url, + List<OkAuthenticator.Challenge> challenges) + throws IOException+
url. Returns null if the challenge cannot be satisfied. This method
+ is called in response to an HTTP 401 unauthorized status code sent by the
+ origin server.challenges - parsed "WWW-Authenticate" challenge headers from the HTTP
+ response.IOExceptionOkAuthenticator.Credential authenticateProxy(Proxy proxy, + URL url, + List<OkAuthenticator.Challenge> challenges) + throws IOException+
proxy. Returns null if the challenge cannot be satisfied. This
+ method is called in response to an HTTP 401 unauthorized status code sent
+ by the proxy server.challenges - parsed "Proxy-Authenticate" challenge headers from the
+ HTTP response.IOExceptionCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkHttpClient.html b/1.x/okhttp/com/squareup/okhttp/OkHttpClient.html new file mode 100644 index 000000000..4eda1157c --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkHttpClient.html @@ -0,0 +1,925 @@ + + + + + + +public final class OkHttpClient +extends Object +implements URLStreamHandlerFactory, Cloneable+
clone() to make a shallow copy of the OkHttpClient that can be
+ safely modified with further configuration changes.| Constructor and Description | +
|---|
OkHttpClient() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+clone()
+Returns a shallow copy of this OkHttpClient.
+ |
+
URLStreamHandler |
+createURLStreamHandler(String protocol)
+Deprecated.
+
+moved to
+OkUrlFactory.createURLStreamHandler. |
+
OkAuthenticator |
+getAuthenticator() |
+
Cache |
+getCache() |
+
ConnectionPool |
+getConnectionPool() |
+
int |
+getConnectTimeout()
+Default connect timeout (in milliseconds).
+ |
+
CookieHandler |
+getCookieHandler() |
+
boolean |
+getFollowProtocolRedirects()
+Deprecated.
+
+moved to
+getFollowSslRedirects(). |
+
boolean |
+getFollowSslRedirects() |
+
HostnameVerifier |
+getHostnameVerifier() |
+
OkResponseCache |
+getOkResponseCache()
+Deprecated.
+
+replaced by
+getCache() which doesn't support custom
+ cache implementations. |
+
List<Protocol> |
+getProtocols() |
+
Proxy |
+getProxy() |
+
ProxySelector |
+getProxySelector() |
+
int |
+getReadTimeout()
+Default read timeout (in milliseconds).
+ |
+
ResponseCache |
+getResponseCache()
+Deprecated.
+
+replaced by
+getCache() which doesn't support custom
+ cache implementations. |
+
RouteDatabase |
+getRoutesDatabase()
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
SSLSocketFactory |
+getSslSocketFactory() |
+
List<String> |
+getTransports()
+Deprecated.
+
+OkHttp 1.5 enforces an enumeration of
+protocols that can be selected. Please switch to getProtocols(). |
+
HttpURLConnection |
+open(URL url)
+Deprecated.
+
+moved to
+OkUrlFactory.open. |
+
OkHttpClient |
+setAuthenticator(OkAuthenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
OkHttpClient |
+setCache(Cache cache) |
+
OkHttpClient |
+setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
void |
+setConnectTimeout(long timeout,
+ TimeUnit unit)
+Sets the default connect timeout for new connections.
+ |
+
OkHttpClient |
+setCookieHandler(CookieHandler cookieHandler)
+Sets the cookie handler to be used to read outgoing cookies and write
+ incoming cookies.
+ |
+
OkHttpClient |
+setFollowProtocolRedirects(boolean followProtocolRedirects)
+Deprecated.
+
+moved to
+setFollowSslRedirects(boolean). |
+
OkHttpClient |
+setFollowSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP
+ to HTTPS.
+ |
+
OkHttpClient |
+setHostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to
+ requested hostnames for HTTPS connections.
+ |
+
OkHttpClient |
+setOkResponseCache(OkResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
OkHttpClient |
+setProxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this
+ client.
+ |
+
OkHttpClient |
+setProxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy
+ is specified explicitly. |
+
void |
+setReadTimeout(long timeout,
+ TimeUnit unit)
+Sets the default read timeout for new connections.
+ |
+
OkHttpClient |
+setResponseCache(ResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+setSslSocketFactory(SSLSocketFactory sslSocketFactory)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
OkHttpClient |
+setTransports(List<String> transports)
+Deprecated.
+
+OkHttp 1.5 enforces an enumeration of
+protocols
+ that can be selected. Please switch to setProtocols(java.util.List). |
+
public void setConnectTimeout(long timeout, + TimeUnit unit)+
URLConnection.setConnectTimeout(int)public int getConnectTimeout()+
public void setReadTimeout(long timeout, + TimeUnit unit)+
URLConnection.setReadTimeout(int)public int getReadTimeout()+
public OkHttpClient setProxy(Proxy proxy)+
setProxySelector(java.net.ProxySelector), which is
+ only honored when this proxy is null (which it is by default). To disable
+ proxy use completely, call setProxy(Proxy.NO_PROXY).public Proxy getProxy()+
public OkHttpClient setProxySelector(ProxySelector proxySelector)+
proxy
+ is specified explicitly. The proxy selector may return multiple proxies;
+ in that case they will be tried in sequence until a successful connection
+ is established.
+
+ If unset, the system-wide default
+ proxy selector will be used.
public ProxySelector getProxySelector()+
public OkHttpClient setCookieHandler(CookieHandler cookieHandler)+
If unset, the system-wide default
+ cookie handler will be used.
public CookieHandler getCookieHandler()+
@Deprecated +public OkHttpClient setResponseCache(ResponseCache responseCache)+
setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.@Deprecated +public ResponseCache getResponseCache()+
getCache() which doesn't support custom
+ cache implementations.@Deprecated +public OkHttpClient setOkResponseCache(OkResponseCache responseCache)+
setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.@Deprecated +public OkResponseCache getOkResponseCache()+
getCache() which doesn't support custom
+ cache implementations.public OkHttpClient setCache(Cache cache)+
public Cache getCache()+
public OkHttpClient setSslSocketFactory(SSLSocketFactory sslSocketFactory)+
If unset, a lazily created SSL socket factory will be used.
public SSLSocketFactory getSslSocketFactory()+
public OkHttpClient setHostnameVerifier(HostnameVerifier hostnameVerifier)+
If unset, the
+ system-wide default hostname verifier will be used.
public HostnameVerifier getHostnameVerifier()+
public OkHttpClient setAuthenticator(OkAuthenticator authenticator)+
If unset, the system-wide default
+ authenticator will be used.
public OkAuthenticator getAuthenticator()+
public OkHttpClient setConnectionPool(ConnectionPool connectionPool)+
If unset, the system-wide
+ default connection pool will be used.
public ConnectionPool getConnectionPool()+
@Deprecated +public OkHttpClient setFollowProtocolRedirects(boolean followProtocolRedirects)+
setFollowSslRedirects(boolean).@Deprecated +public boolean getFollowProtocolRedirects()+
getFollowSslRedirects().public OkHttpClient setFollowSslRedirects(boolean followProtocolRedirects)+
If unset, protocol redirects will be followed. This is different than
+ the built-in HttpURLConnection's default.
public boolean getFollowSslRedirects()+
@Deprecated +public RouteDatabase getRoutesDatabase()+
@Deprecated +public OkHttpClient setTransports(List<String> transports)+
protocols
+ that can be selected. Please switch to setProtocols(java.util.List).public OkHttpClient setProtocols(List<Protocol> protocols)+
The following protocols are currently supported: +
This is an evolving set. Future releases may drop + support for transitional protocols (like spdy/3.1), in favor of their + successors (spdy/4 or http/2.0). The http/1.1 transport will never be + dropped. + +
If multiple protocols are specified, NPN will + be used to negotiate a transport. Future releases may use another mechanism + (such as ALPN) + to negotiate a transport.
protocols - the protocols to use, in order of preference. The list
+ must contain "http/1.1". It must not contain null.@Deprecated +public List<String> getTransports()+
protocols that can be selected. Please switch to getProtocols().@Deprecated +public HttpURLConnection open(URL url)+
OkUrlFactory.open.public OkHttpClient clone()+
@Deprecated +public URLStreamHandler createURLStreamHandler(String protocol)+
OkUrlFactory.createURLStreamHandler.URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory).
+
+ This code configures OkHttp to handle all HTTP and HTTPS connections
+ created with URL.openConnection():
OkHttpClient okHttpClient = new OkHttpClient();
+ URL.setURLStreamHandlerFactory(okHttpClient);
+ createURLStreamHandler in interface URLStreamHandlerFactoryCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/OkResponseCache.html b/1.x/okhttp/com/squareup/okhttp/OkResponseCache.html new file mode 100644 index 000000000..46d098443 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/OkResponseCache.html @@ -0,0 +1,330 @@ + + + + + + +@Deprecated +public interface OkResponseCache+
ResponseCache, this
+ interface supports conditional caching and statistics.
+
+ | Modifier and Type | +Method and Description | +
|---|---|
com.squareup.okhttp.internal.http.Response |
+get(com.squareup.okhttp.internal.http.Request request)
+Deprecated.
+ |
+
boolean |
+maybeRemove(com.squareup.okhttp.internal.http.Request request)
+Deprecated.
+Remove any cache entries for the supplied
+uri. |
+
CacheRequest |
+put(com.squareup.okhttp.internal.http.Response response)
+Deprecated.
+ |
+
void |
+trackConditionalCacheHit()
+Deprecated.
+Track an conditional GET that was satisfied by this cache.
+ |
+
void |
+trackResponse(ResponseSource source)
+Deprecated.
+Track an HTTP response being satisfied by
+source. |
+
void |
+update(com.squareup.okhttp.internal.http.Response cached,
+ com.squareup.okhttp.internal.http.Response network)
+Deprecated.
+Handles a conditional request hit by updating the stored cache response
+ with the headers from
+network. |
+
com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request) + throws IOException+
IOExceptionCacheRequest put(com.squareup.okhttp.internal.http.Response response) + throws IOException+
IOExceptionboolean maybeRemove(com.squareup.okhttp.internal.http.Request request) + throws IOException+
uri. Returns true if the
+ supplied requestMethod potentially invalidates an entry in the
+ cache.IOExceptionvoid update(com.squareup.okhttp.internal.http.Response cached, + com.squareup.okhttp.internal.http.Response network) + throws IOException+
network. The cached response body is not
+ updated. If the stored response has changed since cached was
+ returned, this does nothing.IOExceptionvoid trackConditionalCacheHit()+
void trackResponse(ResponseSource source)+
source.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Protocol.html b/1.x/okhttp/com/squareup/okhttp/Protocol.html new file mode 100644 index 000000000..059965a74 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Protocol.html @@ -0,0 +1,407 @@ + + + + + + +public enum Protocol +extends Enum<Protocol>+
+
URL.getProtocol() returns the
+ scheme (http, https, etc.) of the URL, not
+ the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol to
+ indicate how HTTP messages are framed.| Enum Constant and Description | +
|---|
HTTP_11 |
+
HTTP_2 |
+
SPDY_3 |
+
| Modifier and Type | +Field and Description | +
|---|---|
com.squareup.okhttp.internal.okio.ByteString |
+name
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
boolean |
+spdyVariant
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final Protocol HTTP_2+
public static final Protocol SPDY_3+
public static final Protocol HTTP_11+
@Deprecated +public final com.squareup.okhttp.internal.okio.ByteString name+
@Deprecated +public final boolean spdyVariant+
Variantpublic static Protocol[] values()+
+for (Protocol c : Protocol.values()) + System.out.println(c); +
public static Protocol valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/ResponseSource.html b/1.x/okhttp/com/squareup/okhttp/ResponseSource.html new file mode 100644 index 000000000..b896fa616 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/ResponseSource.html @@ -0,0 +1,413 @@ + + + + + + +networkResponse() and cacheResponse() to compute how the
+ request was satisfied.@Deprecated +public enum ResponseSource +extends Enum<ResponseSource>+
| Enum Constant and Description | +
|---|
CACHE
+Deprecated.
+The response was returned from the local cache.
+ |
+
CONDITIONAL_CACHE
+Deprecated.
+The response is available in the cache but must be validated with the
+ network.
+ |
+
NETWORK
+Deprecated.
+The response was returned from the network.
+ |
+
NONE
+Deprecated.
+The request demanded a cached response that the cache couldn't satisfy.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+requiresConnection()
+Deprecated.
+ |
+
boolean |
+usesCache()
+Deprecated.
+ |
+
static ResponseSource |
+valueOf(String name)
+Deprecated.
+Returns the enum constant of this type with the specified name.
+ |
+
static ResponseSource[] |
+values()
+Deprecated.
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
public static final ResponseSource CACHE+
public static final ResponseSource CONDITIONAL_CACHE+
public static final ResponseSource NETWORK+
public static final ResponseSource NONE+
public static ResponseSource[] values()+
+for (ResponseSource c : ResponseSource.values()) + System.out.println(c); +
public static ResponseSource valueOf(String name)+
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
+with the specified nameNullPointerException - if the argument is nullpublic boolean requiresConnection()+
public boolean usesCache()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/Route.html b/1.x/okhttp/com/squareup/okhttp/Route.html new file mode 100644 index 000000000..13ee7dcd4 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/Route.html @@ -0,0 +1,379 @@ + + + + + + +public class Route +extends Object+
proxy selector is used. It may return multiple proxies to attempt.
+ | Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress,
+ boolean modernTls) |
+
| Modifier and Type | +Method and Description | +
|---|---|
boolean |
+equals(Object obj) |
+
Address |
+getAddress()
+Returns the
+Address of this route. |
+
Proxy |
+getProxy()
+Returns the
+Proxy of this route. |
+
InetSocketAddress |
+getSocketAddress()
+Returns the
+InetSocketAddress of this route. |
+
String |
+getTlsVersion() |
+
int |
+hashCode() |
+
boolean |
+isModernTls()
+Deprecated.
+
+replaced with
+getTlsVersion() in OkHttp 2.0. |
+
public Route(Address address, + Proxy proxy, + InetSocketAddress inetSocketAddress, + boolean modernTls)+
public Proxy getProxy()+
Proxy of this route.
+
+ Warning: This may disagree with Address.getProxy()
+ is null. When the address's proxy is null, the proxy selector will be used.public InetSocketAddress getSocketAddress()+
InetSocketAddress of this route.@Deprecated +public boolean isModernTls()+
getTlsVersion() in OkHttp 2.0.public String getTlsVersion()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/RouteDatabase.html b/1.x/okhttp/com/squareup/okhttp/RouteDatabase.html new file mode 100644 index 000000000..b789cdeca --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/RouteDatabase.html @@ -0,0 +1,325 @@ + + + + + + +@Deprecated +public final class RouteDatabase +extends Object+
| Constructor and Description | +
|---|
RouteDatabase()
+Deprecated.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+connected(Route route)
+Deprecated.
+Records success connecting to
+failedRoute. |
+
void |
+failed(Route failedRoute)
+Deprecated.
+Records a failure connecting to
+failedRoute. |
+
int |
+failedRoutesCount()
+Deprecated.
+ |
+
boolean |
+shouldPostpone(Route route)
+Deprecated.
+Returns true if
+route has failed recently and should be avoided. |
+
public void failed(Route failedRoute)+
failedRoute.public void connected(Route route)+
failedRoute.public boolean shouldPostpone(Route route)+
route has failed recently and should be avoided.public int failedRoutesCount()+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/TunnelRequest.html b/1.x/okhttp/com/squareup/okhttp/TunnelRequest.html new file mode 100644 index 000000000..9e6c0d695 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/TunnelRequest.html @@ -0,0 +1,249 @@ + + + + + + +@Deprecated +public final class TunnelRequest +extends Object+
| Constructor and Description | +
|---|
TunnelRequest(String host,
+ int port,
+ String userAgent,
+ String proxyAuthorization)
+Deprecated.
+ |
+
public TunnelRequest(String host, + int port, + String userAgent, + String proxyAuthorization)+
host - the origin server's hostname. Not null.port - the origin server's port, like 80 or 443.userAgent - the client's user-agent. Not null.proxyAuthorization - proxy authorization, or null if the proxy is
+ used without an authorization header.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Address.html b/1.x/okhttp/com/squareup/okhttp/class-use/Address.html new file mode 100644 index 000000000..0faf23064 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Address.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Address |
+Route.getAddress()
+Returns the
+Address of this route. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+ConnectionPool.get(Address address)
+Returns a recycled connection to
+address, or null if no such connection exists. |
+
| Constructor and Description | +
|---|
Route(Address address,
+ Proxy proxy,
+ InetSocketAddress inetSocketAddress,
+ boolean modernTls) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Cache.html b/1.x/okhttp/com/squareup/okhttp/class-use/Cache.html new file mode 100644 index 000000000..b14522141 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Cache.html @@ -0,0 +1,170 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+HttpResponseCache
+Deprecated.
+
+renamed to
+Cache. |
+
| Modifier and Type | +Method and Description | +
|---|---|
Cache |
+OkHttpClient.getCache() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setCache(Cache cache) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html b/1.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html new file mode 100644 index 000000000..ff44b478e --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/CacheControl.html @@ -0,0 +1,142 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static CacheControl |
+CacheControl.parse(com.squareup.okhttp.internal.http.Headers headers)
+Returns the cache directives of
+headers. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Connection.html b/1.x/okhttp/com/squareup/okhttp/class-use/Connection.html new file mode 100644 index 000000000..8828e98d3 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Connection.html @@ -0,0 +1,163 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Connection |
+ConnectionPool.get(Address address)
+Returns a recycled connection to
+address, or null if no such connection exists. |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+ConnectionPool.recycle(Connection connection)
+Gives
+connection to the pool. |
+
void |
+ConnectionPool.share(Connection connection)
+Shares the SPDY connection with the pool.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html b/1.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html new file mode 100644 index 000000000..5089cbc40 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/ConnectionPool.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
ConnectionPool |
+OkHttpClient.getConnectionPool() |
+
static ConnectionPool |
+ConnectionPool.getDefault() |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
| Constructor and Description | +
|---|
Connection(ConnectionPool pool,
+ Route route) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Handshake.html b/1.x/okhttp/com/squareup/okhttp/class-use/Handshake.html new file mode 100644 index 000000000..4fe500aa9 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Handshake.html @@ -0,0 +1,150 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Handshake |
+Handshake.get(SSLSession session) |
+
static Handshake |
+Handshake.get(String cipherSuite,
+ List<Certificate> peerCertificates,
+ List<Certificate> localCertificates) |
+
Handshake |
+Connection.getHandshake() |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/HttpResponseCache.html b/1.x/okhttp/com/squareup/okhttp/class-use/HttpResponseCache.html new file mode 100644 index 000000000..4ee7f30ac --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/HttpResponseCache.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/MediaType.html b/1.x/okhttp/com/squareup/okhttp/class-use/MediaType.html new file mode 100644 index 000000000..2c6a2a152 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/MediaType.html @@ -0,0 +1,143 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static MediaType |
+MediaType.parse(String string)
+Returns a media type for
+string, or null if string is not a
+ well-formed media type. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html new file mode 100644 index 000000000..f576b2cb4 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Challenge.html @@ -0,0 +1,156 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator.Credential |
+OkAuthenticator.authenticate(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+url. |
+
OkAuthenticator.Credential |
+OkAuthenticator.authenticateProxy(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+proxy. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html new file mode 100644 index 000000000..c331bb0e6 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.Credential.html @@ -0,0 +1,163 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator.Credential |
+OkAuthenticator.authenticate(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+url. |
+
OkAuthenticator.Credential |
+OkAuthenticator.authenticateProxy(Proxy proxy,
+ URL url,
+ List<OkAuthenticator.Challenge> challenges)
+Deprecated.
+Returns a credential that satisfies the authentication challenge made by
+
+proxy. |
+
static OkAuthenticator.Credential |
+OkAuthenticator.Credential.basic(String userName,
+ String password)
+Returns an auth credential for the Basic scheme.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.html new file mode 100644 index 000000000..08d077b3d --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkAuthenticator.html @@ -0,0 +1,179 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkAuthenticator |
+OkHttpClient.getAuthenticator() |
+
OkAuthenticator |
+Address.getAuthenticator()
+Returns the client's authenticator.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setAuthenticator(OkAuthenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ OkAuthenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html new file mode 100644 index 000000000..f9aeb366d --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkHttpClient.html @@ -0,0 +1,242 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.clone()
+Returns a shallow copy of this OkHttpClient.
+ |
+
OkHttpClient |
+OkHttpClient.setAuthenticator(OkAuthenticator authenticator)
+Sets the authenticator used to respond to challenges from the remote web
+ server or proxy server.
+ |
+
OkHttpClient |
+OkHttpClient.setCache(Cache cache) |
+
OkHttpClient |
+OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
+Sets the connection pool used to recycle HTTP and HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setCookieHandler(CookieHandler cookieHandler)
+Sets the cookie handler to be used to read outgoing cookies and write
+ incoming cookies.
+ |
+
OkHttpClient |
+OkHttpClient.setFollowProtocolRedirects(boolean followProtocolRedirects)
+Deprecated.
+
+moved to
+setFollowSslRedirects(boolean). |
+
OkHttpClient |
+OkHttpClient.setFollowSslRedirects(boolean followProtocolRedirects)
+Configure this client to follow redirects from HTTPS to HTTP and from HTTP
+ to HTTPS.
+ |
+
OkHttpClient |
+OkHttpClient.setHostnameVerifier(HostnameVerifier hostnameVerifier)
+Sets the verifier used to confirm that response certificates apply to
+ requested hostnames for HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setOkResponseCache(OkResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+OkHttpClient.setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
OkHttpClient |
+OkHttpClient.setProxy(Proxy proxy)
+Sets the HTTP proxy that will be used by connections created by this
+ client.
+ |
+
OkHttpClient |
+OkHttpClient.setProxySelector(ProxySelector proxySelector)
+Sets the proxy selection policy to be used if no
+proxy
+ is specified explicitly. |
+
OkHttpClient |
+OkHttpClient.setResponseCache(ResponseCache responseCache)
+Deprecated.
+
+replaced by
+setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
OkHttpClient |
+OkHttpClient.setSslSocketFactory(SSLSocketFactory sslSocketFactory)
+Sets the socket factory used to secure HTTPS connections.
+ |
+
OkHttpClient |
+OkHttpClient.setTransports(List<String> transports)
+Deprecated.
+
+OkHttp 1.5 enforces an enumeration of
+protocols
+ that can be selected. Please switch to setProtocols(java.util.List). |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/OkResponseCache.html b/1.x/okhttp/com/squareup/okhttp/class-use/OkResponseCache.html new file mode 100644 index 000000000..9c4622fc1 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/OkResponseCache.html @@ -0,0 +1,187 @@ + + + + + + +| Modifier and Type | +Class and Description | +
|---|---|
class |
+Cache
+Caches HTTP and HTTPS responses to the filesystem so they may be reused,
+ saving time and bandwidth.
+ |
+
class |
+HttpResponseCache
+Deprecated.
+
+renamed to
+Cache. |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkResponseCache |
+OkHttpClient.getOkResponseCache()
+Deprecated.
+
+replaced by
+OkHttpClient.getCache() which doesn't support custom
+ cache implementations. |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setOkResponseCache(OkResponseCache responseCache)
+Deprecated.
+
+replaced by
+OkHttpClient.setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations. |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Protocol.html b/1.x/okhttp/com/squareup/okhttp/class-use/Protocol.html new file mode 100644 index 000000000..c6fd90937 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Protocol.html @@ -0,0 +1,201 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static Protocol |
+Protocol.valueOf(String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static Protocol[] |
+Protocol.values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
List<Protocol> |
+OkHttpClient.getProtocols() |
+
List<Protocol> |
+Address.getProtocols()
+Returns the protocols the client supports.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
OkHttpClient |
+OkHttpClient.setProtocols(List<Protocol> protocols)
+Configure the protocols used by this client to communicate with remote
+ servers.
+ |
+
| Constructor and Description | +
|---|
Address(String uriHost,
+ int uriPort,
+ SSLSocketFactory sslSocketFactory,
+ HostnameVerifier hostnameVerifier,
+ OkAuthenticator authenticator,
+ Proxy proxy,
+ List<Protocol> protocols) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/ResponseSource.html b/1.x/okhttp/com/squareup/okhttp/class-use/ResponseSource.html new file mode 100644 index 000000000..7e6a1b6b8 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/ResponseSource.html @@ -0,0 +1,171 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
static ResponseSource |
+ResponseSource.valueOf(String name)
+Deprecated.
+Returns the enum constant of this type with the specified name.
+ |
+
static ResponseSource[] |
+ResponseSource.values()
+Deprecated.
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+OkResponseCache.trackResponse(ResponseSource source)
+Deprecated.
+Track an HTTP response being satisfied by
+source. |
+
void |
+Cache.trackResponse(ResponseSource source) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/Route.html b/1.x/okhttp/com/squareup/okhttp/class-use/Route.html new file mode 100644 index 000000000..e97b3e6f1 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/Route.html @@ -0,0 +1,184 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
Route |
+Connection.getRoute()
+Returns the route used by this connection.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+RouteDatabase.connected(Route route)
+Deprecated.
+Records success connecting to
+failedRoute. |
+
void |
+RouteDatabase.failed(Route failedRoute)
+Deprecated.
+Records a failure connecting to
+failedRoute. |
+
boolean |
+RouteDatabase.shouldPostpone(Route route)
+Deprecated.
+Returns true if
+route has failed recently and should be avoided. |
+
| Constructor and Description | +
|---|
Connection(ConnectionPool pool,
+ Route route) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/RouteDatabase.html b/1.x/okhttp/com/squareup/okhttp/class-use/RouteDatabase.html new file mode 100644 index 000000000..b0930de1e --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/RouteDatabase.html @@ -0,0 +1,144 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
RouteDatabase |
+OkHttpClient.getRoutesDatabase()
+Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/class-use/TunnelRequest.html b/1.x/okhttp/com/squareup/okhttp/class-use/TunnelRequest.html new file mode 100644 index 000000000..d0fae401f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/class-use/TunnelRequest.html @@ -0,0 +1,142 @@ + + + + + + +| Modifier and Type | +Method and Description | +
|---|---|
void |
+Connection.connect(int connectTimeout,
+ int readTimeout,
+ TunnelRequest tunnelRequest) |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/package-frame.html b/1.x/okhttp/com/squareup/okhttp/package-frame.html new file mode 100644 index 000000000..95ce502c7 --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/package-frame.html @@ -0,0 +1,43 @@ + + + + + + +| Interface | +Description | +
|---|---|
| OkAuthenticator | +Deprecated
+ replaced with
+Authenticator in OkHttp 2.0. |
+
| OkResponseCache | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
| Class | +Description | +
|---|---|
| Address | +
+ A specification for a connection to an origin server.
+ |
+
| Cache | +
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused,
+ saving time and bandwidth.
+ |
+
| CacheControl | +
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| Connection | +
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
+ |
+
| ConnectionPool | +
+ Manages reuse of HTTP and SPDY connections for reduced network latency.
+ |
+
| Handshake | +
+ A record of a TLS handshake.
+ |
+
| HttpResponseCache | +Deprecated
+ renamed to
+Cache. |
+
| MediaType | +
+ An RFC 2045 Media Type,
+ appropriate to describe the content type of an HTTP request or response body.
+ |
+
| OkAuthenticator.Challenge | +
+ An RFC 2617 challenge.
+ |
+
| OkAuthenticator.Credential | +
+ An RFC 2617 credential.
+ |
+
| OkHttpClient | +
+ Configures and creates HTTP connections.
+ |
+
| Route | +
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| RouteDatabase | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
| TunnelRequest | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
| Enum | +Description | +
|---|---|
| Protocol | ++ + | +
| ResponseSource | +Deprecated
+ removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/package-tree.html b/1.x/okhttp/com/squareup/okhttp/package-tree.html new file mode 100644 index 000000000..9bc67034f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/com/squareup/okhttp/package-use.html b/1.x/okhttp/com/squareup/okhttp/package-use.html new file mode 100644 index 000000000..90dcea70f --- /dev/null +++ b/1.x/okhttp/com/squareup/okhttp/package-use.html @@ -0,0 +1,233 @@ + + + + + + +| Class and Description | +
|---|
| Address
+ A specification for a connection to an origin server.
+ |
+
| Cache
+ Caches HTTP and HTTPS responses to the filesystem so they may be reused,
+ saving time and bandwidth.
+ |
+
| CacheControl
+ A Cache-Control header with cache directives from a server or client.
+ |
+
| Connection
+ The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
+ |
+
| ConnectionPool
+ Manages reuse of HTTP and SPDY connections for reduced network latency.
+ |
+
| Handshake
+ A record of a TLS handshake.
+ |
+
| MediaType
+ An RFC 2045 Media Type,
+ appropriate to describe the content type of an HTTP request or response body.
+ |
+
| OkAuthenticator
+ Deprecated.
+
+replaced with
+Authenticator in OkHttp 2.0. |
+
| OkAuthenticator.Challenge
+ Deprecated.
+An RFC 2617 challenge.
+ |
+
| OkAuthenticator.Credential
+ Deprecated.
+An RFC 2617 credential.
+ |
+
| OkHttpClient
+ Configures and creates HTTP connections.
+ |
+
| OkResponseCache
+ Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
| Protocol + + | +
| ResponseSource
+ Deprecated.
+
+removed from the public API in OkHttp 2.0. Use the response's
+
+networkResponse() and cacheResponse() to compute how the
+ request was satisfied. |
+
| Route
+ The concrete route used by a connection to reach an abstract origin server.
+ |
+
| RouteDatabase
+ Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
| TunnelRequest
+ Deprecated.
+
+removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/constant-values.html b/1.x/okhttp/constant-values.html new file mode 100644 index 000000000..ab05969fa --- /dev/null +++ b/1.x/okhttp/constant-values.html @@ -0,0 +1,115 @@ + + + + + + +Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/deprecated-list.html b/1.x/okhttp/deprecated-list.html new file mode 100644 index 000000000..ebbae57e9 --- /dev/null +++ b/1.x/okhttp/deprecated-list.html @@ -0,0 +1,305 @@ + + + + + + +| Interface and Description | +
|---|
| com.squareup.okhttp.OkAuthenticator
+ replaced with
+Authenticator in OkHttp 2.0. |
+
| com.squareup.okhttp.OkResponseCache
+ removed from the public API in OkHttp 2.0.
+ |
+
| Class and Description | +
|---|
| com.squareup.okhttp.HttpResponseCache
+ renamed to
+Cache. |
+
| com.squareup.okhttp.RouteDatabase
+ removed from the public API in OkHttp 2.0.
+ |
+
| com.squareup.okhttp.TunnelRequest
+ removed from the public API in OkHttp 2.0.
+ |
+
| Enum and Description | +
|---|
| com.squareup.okhttp.ResponseSource
+ removed from the public API in OkHttp 2.0. Use the response's
+
+networkResponse() and cacheResponse() to compute how the
+ request was satisfied. |
+
| Field and Description | +
|---|
| com.squareup.okhttp.Protocol.name
+ removed from the public API in OkHttp 2.0.
+ |
+
| com.squareup.okhttp.Protocol.spdyVariant
+ removed from the public API in OkHttp 2.0.
+ |
+
Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/help-doc.html b/1.x/okhttp/help-doc.html new file mode 100644 index 000000000..7b644ab08 --- /dev/null +++ b/1.x/okhttp/help-doc.html @@ -0,0 +1,216 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/index-all.html b/1.x/okhttp/index-all.html new file mode 100644 index 000000000..f6680415a --- /dev/null +++ b/1.x/okhttp/index-all.html @@ -0,0 +1,957 @@ + + + + + + +url.proxy.defaultValue if this
+ media type doesn't specify a charset.owner.failedRoute.OkUrlFactory.createURLStreamHandler.failedRoute.address, or null if no such connection exists.Address of this route.OkHttpClient.getFollowSslRedirects().OkHttpClient.getCache() which doesn't support custom
+ cache implementations.Proxy of this route.OkHttpClient.getCache() which doesn't support custom
+ cache implementations.Basic.InetSocketAddress of this route.protocols that can be selected. Please switch to OkHttpClient.getProtocols().Cache.Connection.connect(int, int, com.squareup.okhttp.TunnelRequest) has been attempted on this connection.keepAliveDurationNs.Route.getTlsVersion() in OkHttp 2.0.uri.Authenticator in OkHttp 2.0.OkUrlFactory.open.headers.string, or null if string is not a
+ well-formed media type.connection to the pool.networkResponse() and cacheResponse() to compute how the
+ request was satisfied.OkHttpClient.setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.proxy
+ is specified explicitly.OkHttpClient.setCache(com.squareup.okhttp.Cache) which doesn't support custom
+ cache implementations.protocols
+ that can be selected. Please switch to OkHttpClient.setProtocols(java.util.List).route has failed recently and should be avoided.source.network.Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/index.html b/1.x/okhttp/index.html new file mode 100644 index 000000000..59ba5de61 --- /dev/null +++ b/1.x/okhttp/index.html @@ -0,0 +1,65 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+Copyright © 2014. All Rights Reserved.
+ + diff --git a/1.x/okhttp/package-list b/1.x/okhttp/package-list new file mode 100644 index 000000000..ac5f84bc5 --- /dev/null +++ b/1.x/okhttp/package-list @@ -0,0 +1 @@ +com.squareup.okhttp diff --git a/1.x/okhttp/resources/background.gif b/1.x/okhttp/resources/background.gif new file mode 100644 index 000000000..f471940fd Binary files /dev/null and b/1.x/okhttp/resources/background.gif differ diff --git a/1.x/okhttp/resources/tab.gif b/1.x/okhttp/resources/tab.gif new file mode 100644 index 000000000..1a73a83be Binary files /dev/null and b/1.x/okhttp/resources/tab.gif differ diff --git a/1.x/okhttp/resources/titlebar.gif b/1.x/okhttp/resources/titlebar.gif new file mode 100644 index 000000000..17443b3e1 Binary files /dev/null and b/1.x/okhttp/resources/titlebar.gif differ diff --git a/1.x/okhttp/resources/titlebar_end.gif b/1.x/okhttp/resources/titlebar_end.gif new file mode 100644 index 000000000..3ad78d461 Binary files /dev/null and b/1.x/okhttp/resources/titlebar_end.gif differ diff --git a/1.x/okhttp/stylesheet.css b/1.x/okhttp/stylesheet.css new file mode 100644 index 000000000..0aeaa97fe --- /dev/null +++ b/1.x/okhttp/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/1.x/okhttp/version.txt b/1.x/okhttp/version.txt new file mode 100644 index 000000000..ce6a70b9d --- /dev/null +++ b/1.x/okhttp/version.txt @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file