blob: 460928e6b9240a48cdc5e41f6ec2d960369043db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_java_net_protocol_http_HTTPURLConnection__
#define __gnu_java_net_protocol_http_HTTPURLConnection__
#pragma interface
#include <javax/net/ssl/HttpsURLConnection.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace java
{
namespace net
{
namespace protocol
{
namespace http
{
class HTTPConnection;
class HTTPURLConnection;
class Headers;
class Request;
class Response;
}
}
}
}
}
namespace java
{
namespace net
{
class URL;
}
namespace security
{
namespace cert
{
class Certificate;
}
}
}
namespace javax
{
namespace net
{
namespace ssl
{
class HandshakeCompletedEvent;
}
}
}
}
class gnu::java::net::protocol::http::HTTPURLConnection : public ::javax::net::ssl::HttpsURLConnection
{
public:
HTTPURLConnection(::java::net::URL *);
virtual void connect();
public: // actually package-private
virtual ::gnu::java::net::protocol::http::HTTPConnection * getConnection(::java::lang::String *, jint, jboolean);
public:
virtual void disconnect();
virtual jboolean usingProxy();
virtual void setRequestMethod(::java::lang::String *);
virtual ::java::lang::String * getRequestProperty(::java::lang::String *);
virtual ::java::util::Map * getRequestProperties();
virtual void setRequestProperty(::java::lang::String *, ::java::lang::String *);
virtual void addRequestProperty(::java::lang::String *, ::java::lang::String *);
virtual ::java::io::OutputStream * getOutputStream();
virtual ::java::io::InputStream * getInputStream();
virtual ::java::io::InputStream * getErrorStream();
virtual ::java::util::Map * getHeaderFields();
public: // actually package-private
virtual ::java::lang::String * getStatusLine(::gnu::java::net::protocol::http::Response *);
public:
virtual ::java::lang::String * getHeaderField(jint);
virtual ::java::lang::String * getHeaderFieldKey(jint);
virtual ::java::lang::String * getHeaderField(::java::lang::String *);
virtual jlong getHeaderFieldDate(::java::lang::String *, jlong);
virtual ::java::lang::String * getContentType();
virtual jint getResponseCode();
virtual ::java::lang::String * getResponseMessage();
virtual ::java::lang::String * getCipherSuite();
virtual JArray< ::java::security::cert::Certificate * > * getLocalCertificates();
virtual JArray< ::java::security::cert::Certificate * > * getServerCertificates();
virtual void handshakeCompleted(::javax::net::ssl::HandshakeCompletedEvent *);
virtual void setReadTimeout(jint);
private:
::gnu::java::net::protocol::http::HTTPConnection * __attribute__((aligned(__alignof__( ::javax::net::ssl::HttpsURLConnection)))) connection;
public: // actually package-private
::java::lang::String * proxyHostname;
jint proxyPort;
::java::lang::String * agent;
jboolean keepAlive;
private:
::gnu::java::net::protocol::http::Request * request;
::gnu::java::net::protocol::http::Headers * requestHeaders;
::java::io::ByteArrayOutputStream * requestSink;
jboolean requestMethodSetExplicitly;
::gnu::java::net::protocol::http::Response * response;
::java::io::InputStream * responseSink;
::java::io::InputStream * errorSink;
::javax::net::ssl::HandshakeCompletedEvent * handshakeEvent;
public:
static ::java::lang::Class class$;
};
#endif // __gnu_java_net_protocol_http_HTTPURLConnection__
|