1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_net_HttpURLConnection__
|
5 |
|
|
#define __java_net_HttpURLConnection__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/net/URLConnection.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace java
|
13 |
|
|
{
|
14 |
|
|
namespace net
|
15 |
|
|
{
|
16 |
|
|
class HttpURLConnection;
|
17 |
|
|
class URL;
|
18 |
|
|
}
|
19 |
|
|
namespace security
|
20 |
|
|
{
|
21 |
|
|
class Permission;
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
class java::net::HttpURLConnection : public ::java::net::URLConnection
|
27 |
|
|
{
|
28 |
|
|
|
29 |
|
|
public: // actually protected
|
30 |
|
|
HttpURLConnection(::java::net::URL *);
|
31 |
|
|
public:
|
32 |
|
|
virtual void disconnect() = 0;
|
33 |
|
|
virtual jboolean usingProxy() = 0;
|
34 |
|
|
static void setFollowRedirects(jboolean);
|
35 |
|
|
static jboolean getFollowRedirects();
|
36 |
|
|
virtual jboolean getInstanceFollowRedirects();
|
37 |
|
|
virtual void setInstanceFollowRedirects(jboolean);
|
38 |
|
|
virtual void setRequestMethod(::java::lang::String *);
|
39 |
|
|
virtual ::java::lang::String * getRequestMethod();
|
40 |
|
|
virtual jint getResponseCode();
|
41 |
|
|
virtual ::java::lang::String * getResponseMessage();
|
42 |
|
|
private:
|
43 |
|
|
void getResponseVals();
|
44 |
|
|
public:
|
45 |
|
|
virtual ::java::security::Permission * getPermission();
|
46 |
|
|
virtual ::java::io::InputStream * getErrorStream();
|
47 |
|
|
virtual jlong getHeaderFieldDate(::java::lang::String *, jlong);
|
48 |
|
|
public: // actually package-private
|
49 |
|
|
static const jint HTTP_CONTINUE = 100;
|
50 |
|
|
public:
|
51 |
|
|
static const jint HTTP_OK = 200;
|
52 |
|
|
static const jint HTTP_CREATED = 201;
|
53 |
|
|
static const jint HTTP_ACCEPTED = 202;
|
54 |
|
|
static const jint HTTP_NOT_AUTHORITATIVE = 203;
|
55 |
|
|
static const jint HTTP_NO_CONTENT = 204;
|
56 |
|
|
static const jint HTTP_RESET = 205;
|
57 |
|
|
static const jint HTTP_PARTIAL = 206;
|
58 |
|
|
static const jint HTTP_MULT_CHOICE = 300;
|
59 |
|
|
static const jint HTTP_MOVED_PERM = 301;
|
60 |
|
|
static const jint HTTP_MOVED_TEMP = 302;
|
61 |
|
|
static const jint HTTP_SEE_OTHER = 303;
|
62 |
|
|
static const jint HTTP_NOT_MODIFIED = 304;
|
63 |
|
|
static const jint HTTP_USE_PROXY = 305;
|
64 |
|
|
static const jint HTTP_BAD_REQUEST = 400;
|
65 |
|
|
static const jint HTTP_UNAUTHORIZED = 401;
|
66 |
|
|
static const jint HTTP_PAYMENT_REQUIRED = 402;
|
67 |
|
|
static const jint HTTP_FORBIDDEN = 403;
|
68 |
|
|
static const jint HTTP_NOT_FOUND = 404;
|
69 |
|
|
static const jint HTTP_BAD_METHOD = 405;
|
70 |
|
|
static const jint HTTP_NOT_ACCEPTABLE = 406;
|
71 |
|
|
static const jint HTTP_PROXY_AUTH = 407;
|
72 |
|
|
static const jint HTTP_CLIENT_TIMEOUT = 408;
|
73 |
|
|
static const jint HTTP_CONFLICT = 409;
|
74 |
|
|
static const jint HTTP_GONE = 410;
|
75 |
|
|
static const jint HTTP_LENGTH_REQUIRED = 411;
|
76 |
|
|
static const jint HTTP_PRECON_FAILED = 412;
|
77 |
|
|
static const jint HTTP_ENTITY_TOO_LARGE = 413;
|
78 |
|
|
static const jint HTTP_REQ_TOO_LONG = 414;
|
79 |
|
|
static const jint HTTP_UNSUPPORTED_TYPE = 415;
|
80 |
|
|
static const jint HTTP_SERVER_ERROR = 500;
|
81 |
|
|
static const jint HTTP_INTERNAL_ERROR = 500;
|
82 |
|
|
static const jint HTTP_NOT_IMPLEMENTED = 501;
|
83 |
|
|
static const jint HTTP_BAD_GATEWAY = 502;
|
84 |
|
|
static const jint HTTP_UNAVAILABLE = 503;
|
85 |
|
|
static const jint HTTP_GATEWAY_TIMEOUT = 504;
|
86 |
|
|
static const jint HTTP_VERSION = 505;
|
87 |
|
|
private:
|
88 |
|
|
static jboolean followRedirects;
|
89 |
|
|
static ::java::lang::String * valid_methods;
|
90 |
|
|
public: // actually protected
|
91 |
|
|
::java::lang::String * __attribute__((aligned(__alignof__( ::java::net::URLConnection)))) method;
|
92 |
|
|
jint responseCode;
|
93 |
|
|
::java::lang::String * responseMessage;
|
94 |
|
|
jboolean instanceFollowRedirects;
|
95 |
|
|
private:
|
96 |
|
|
jboolean gotResponseVals;
|
97 |
|
|
public:
|
98 |
|
|
static ::java::lang::Class class$;
|
99 |
|
|
};
|
100 |
|
|
|
101 |
|
|
#endif // __java_net_HttpURLConnection__
|