blob: c40d9598b9dd62b4b0be3dc4dcaf1554276dd56f (
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
116
117
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_net_URLConnection__
#define __java_net_URLConnection__
#pragma interface
#include <java/lang/Object.h>
#include <gcj/array.h>
extern "Java"
{
namespace java
{
namespace net
{
class ContentHandler;
class ContentHandlerFactory;
class FileNameMap;
class URL;
class URLConnection;
}
namespace security
{
class Permission;
}
namespace text
{
class ParsePosition;
class SimpleDateFormat;
}
}
}
class java::net::URLConnection : public ::java::lang::Object
{
public: // actually protected
URLConnection(::java::net::URL *);
public:
virtual void connect() = 0;
virtual ::java::net::URL * getURL();
virtual jint getConnectTimeout();
virtual void setConnectTimeout(jint);
virtual jint getReadTimeout();
virtual void setReadTimeout(jint);
virtual jint getContentLength();
virtual ::java::lang::String * getContentType();
virtual ::java::lang::String * getContentEncoding();
virtual jlong getExpiration();
virtual jlong getDate();
virtual jlong getLastModified();
virtual ::java::lang::String * getHeaderField(jint);
virtual ::java::lang::String * getHeaderField(::java::lang::String *);
virtual ::java::util::Map * getHeaderFields();
virtual jint getHeaderFieldInt(::java::lang::String *, jint);
virtual jlong getHeaderFieldDate(::java::lang::String *, jlong);
virtual ::java::lang::String * getHeaderFieldKey(jint);
virtual ::java::lang::Object * getContent();
virtual ::java::lang::Object * getContent(JArray< ::java::lang::Class * > *);
virtual ::java::security::Permission * getPermission();
virtual ::java::io::InputStream * getInputStream();
virtual ::java::io::OutputStream * getOutputStream();
virtual ::java::lang::String * toString();
virtual void setDoInput(jboolean);
virtual jboolean getDoInput();
virtual void setDoOutput(jboolean);
virtual jboolean getDoOutput();
virtual void setAllowUserInteraction(jboolean);
virtual jboolean getAllowUserInteraction();
static void setDefaultAllowUserInteraction(jboolean);
static jboolean getDefaultAllowUserInteraction();
virtual void setUseCaches(jboolean);
virtual jboolean getUseCaches();
virtual void setIfModifiedSince(jlong);
virtual jlong getIfModifiedSince();
virtual jboolean getDefaultUseCaches();
virtual void setDefaultUseCaches(jboolean);
virtual void setRequestProperty(::java::lang::String *, ::java::lang::String *);
virtual void addRequestProperty(::java::lang::String *, ::java::lang::String *);
virtual ::java::lang::String * getRequestProperty(::java::lang::String *);
virtual ::java::util::Map * getRequestProperties();
static void setDefaultRequestProperty(::java::lang::String *, ::java::lang::String *);
static ::java::lang::String * getDefaultRequestProperty(::java::lang::String *);
static void setContentHandlerFactory(::java::net::ContentHandlerFactory *);
static ::java::lang::String * guessContentTypeFromName(::java::lang::String *);
static ::java::lang::String * guessContentTypeFromStream(::java::io::InputStream *);
static ::java::net::FileNameMap * getFileNameMap();
static void setFileNameMap(::java::net::FileNameMap *);
private:
::java::net::ContentHandler * getContentHandler(::java::lang::String *);
static void initializeDateFormats();
static ::java::net::FileNameMap * fileNameMap;
static ::java::net::ContentHandlerFactory * factory;
static jboolean defaultAllowUserInteraction;
static jboolean defaultUseCaches;
static ::java::net::ContentHandlerFactory * defaultFactory;
public: // actually protected
jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) allowUserInteraction;
jboolean connected;
jboolean doInput;
jboolean doOutput;
jboolean useCaches;
jlong ifModifiedSince;
::java::net::URL * url;
private:
static JArray< ::java::text::SimpleDateFormat * > * dateFormats;
static jboolean dateformats_initialized;
jint connectTimeout;
jint readTimeout;
::java::text::ParsePosition * position;
public:
static ::java::lang::Class class$;
};
#endif // __java_net_URLConnection__
|