Home
last modified time | relevance | path

Searched refs:ProtocolVersion (Results 1 – 25 of 52) sorted by relevance

123

/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/
DProtocolVersionTest.java20 import org.apache.harmony.xnet.provider.jsse.ProtocolVersion;
29 assertEquals(ProtocolVersion.getByVersion(new byte[] { 3, 0 }), in testEquals()
30 ProtocolVersion.getByName("SSLv3")); in testEquals()
31 assertEquals(ProtocolVersion.getByVersion(new byte[] { 3, 1 }), in testEquals()
32 ProtocolVersion.getByName("TLSv1")); in testEquals()
33 assertFalse(ProtocolVersion.getByVersion(new byte[] { 3, 0 }).equals( in testEquals()
34 ProtocolVersion.getByName("TLSv1"))); in testEquals()
42 assertTrue(ProtocolVersion.isSupported(new byte[] { 3, 0 })); in testIsSupportedbyteArray()
43 assertTrue(ProtocolVersion.isSupported(new byte[] { 3, 1 })); in testIsSupportedbyteArray()
44 assertFalse(ProtocolVersion.isSupported(new byte[] { 3, 2 })); in testIsSupportedbyteArray()
[all …]
/external/apache-http/src/org/apache/http/
DProtocolVersion.java61 public class ProtocolVersion implements Serializable, Cloneable { class
83 public ProtocolVersion(String protocol, int major, int minor) { in ProtocolVersion() method in ProtocolVersion
144 public ProtocolVersion forVersion(int major, int minor) { in forVersion()
151 return new ProtocolVersion(this.protocol, major, minor); in forVersion()
182 if (!(obj instanceof ProtocolVersion)) { in equals()
185 ProtocolVersion that = (ProtocolVersion) obj; in equals()
203 public boolean isComparable(ProtocolVersion that) { in isComparable()
224 public int compareToVersion(ProtocolVersion that) { in compareToVersion()
253 public final boolean greaterEquals(ProtocolVersion version) { in greaterEquals()
268 public final boolean lessEquals(ProtocolVersion version) { in lessEquals()
DHttpResponse.java79 void setStatusLine(ProtocolVersion ver, int code); in setStatusLine()
88 void setStatusLine(ProtocolVersion ver, int code, String reason); in setStatusLine()
DHttpVersion.java48 public final class HttpVersion extends ProtocolVersion
87 public ProtocolVersion forVersion(int major, int minor) { in forVersion()
/external/apache-http/src/org/apache/http/message/
DBasicHttpResponse.java38 import org.apache.http.ProtocolVersion;
111 public BasicHttpResponse(final ProtocolVersion ver, in BasicHttpResponse()
119 public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
147 public void setStatusLine(final ProtocolVersion ver, final int code) { in setStatusLine()
153 public void setStatusLine(final ProtocolVersion ver, final int code, in setStatusLine()
162 ProtocolVersion ver = this.statusline.getProtocolVersion(); in setStatusCode()
DBasicStatusLine.java35 import org.apache.http.ProtocolVersion;
63 private final ProtocolVersion protoVersion;
80 public BasicStatusLine(final ProtocolVersion version, int statusCode, in BasicStatusLine()
108 public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
DBasicRequestLine.java34 import org.apache.http.ProtocolVersion;
57 private final ProtocolVersion protoversion;
63 final ProtocolVersion version) { in BasicRequestLine()
86 public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
DBasicLineParser.java35 import org.apache.http.ProtocolVersion;
85 protected final ProtocolVersion protocol;
95 public BasicLineParser(ProtocolVersion proto) { in BasicLineParser()
113 ProtocolVersion parseProtocolVersion(String value, in parseProtocolVersion()
133 public ProtocolVersion parseProtocolVersion(final CharArrayBuffer buffer, in parseProtocolVersion()
222 protected ProtocolVersion createProtocolVersion(int major, int minor) { in createProtocolVersion()
343 ProtocolVersion ver = parseProtocolVersion(buffer, cursor); in parseRequestLine()
371 final ProtocolVersion ver) { in createRequestLine()
414 ProtocolVersion ver = parseProtocolVersion(buffer, cursor); in parseStatusLine()
460 protected StatusLine createStatusLine(final ProtocolVersion ver, in createStatusLine()
DBasicHttpRequest.java35 import org.apache.http.ProtocolVersion;
72 public BasicHttpRequest(final String method, final String uri, final ProtocolVersion ver) { in BasicHttpRequest()
86 public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
98 ProtocolVersion ver = HttpProtocolParams.getVersion(getParams()); in getRequestLine()
DBasicLineFormatter.java35 import org.apache.http.ProtocolVersion;
114 String formatProtocolVersion(final ProtocolVersion version, in formatProtocolVersion()
124 final ProtocolVersion version) { in appendProtocolVersion()
158 protected int estimateProtocolVersionLen(final ProtocolVersion version) { in estimateProtocolVersionLen()
DLineFormatter.java35 import org.apache.http.ProtocolVersion;
99 ProtocolVersion version) in appendProtocolVersion()
DLineParser.java35 import org.apache.http.ProtocolVersion;
80 ProtocolVersion parseProtocolVersion( in parseProtocolVersion()
DBasicHttpEntityEnclosingRequest.java37 import org.apache.http.ProtocolVersion;
65 final ProtocolVersion ver) { in BasicHttpEntityEnclosingRequest()
/external/apache-http/src/org/apache/http/impl/client/
DRequestWrapper.java39 import org.apache.http.ProtocolVersion;
71 private ProtocolVersion version;
117 public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
125 public void setProtocolVersion(final ProtocolVersion version) { in setProtocolVersion()
140 ProtocolVersion ver = getProtocolVersion(); in getRequestLine()
/external/apache-http/src/org/apache/http/params/
DHttpProtocolParams.java35 import org.apache.http.ProtocolVersion;
128 public static ProtocolVersion getVersion(final HttpParams params) { in getVersion()
137 return (ProtocolVersion)param; in getVersion()
146 public static void setVersion(final HttpParams params, final ProtocolVersion version) { in setVersion()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DHttpResponseStub.java7 import org.apache.http.ProtocolVersion;
23 @Override public void setStatusLine(ProtocolVersion protocolVersion, int i) { in setStatusLine()
27 @Override public void setStatusLine(ProtocolVersion protocolVersion, int i, String s) { in setStatusLine()
55 @Override public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DStatusLineStub.java3 import org.apache.http.ProtocolVersion;
7 @Override public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
/external/apache-http/src/org/apache/http/client/methods/
DHttpRequestBase.java39 import org.apache.http.ProtocolVersion;
82 public ProtocolVersion getProtocolVersion() { in getProtocolVersion()
92 ProtocolVersion ver = getProtocolVersion(); in getRequestLine()
/external/apache-http/src/org/apache/http/protocol/
DRequestExpectContinue.java42 import org.apache.http.ProtocolVersion;
74 ProtocolVersion ver = request.getRequestLine().getProtocolVersion(); in process()
DRequestTargetHost.java44 import org.apache.http.ProtocolVersion;
91 ProtocolVersion ver = request.getRequestLine().getProtocolVersion(); in process()
DRequestContent.java42 import org.apache.http.ProtocolVersion;
77 ProtocolVersion ver = request.getRequestLine().getProtocolVersion(); in process()
DResponseConnControl.java44 import org.apache.http.ProtocolVersion;
91 ProtocolVersion ver = response.getStatusLine().getProtocolVersion(); in process()
DResponseContent.java42 import org.apache.http.ProtocolVersion;
77 ProtocolVersion ver = response.getStatusLine().getProtocolVersion(); in process()
/external/apache-http/src/org/apache/http/impl/
DDefaultHttpResponseFactory.java38 import org.apache.http.ProtocolVersion;
90 public HttpResponse newHttpResponse(final ProtocolVersion ver, in newHttpResponse()
DDefaultConnectionReuseStrategy.java41 import org.apache.http.ProtocolVersion;
104 ProtocolVersion ver = response.getStatusLine().getProtocolVersion(); in keepAlive()

123