1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_net_URI__
|
5 |
|
|
#define __java_net_URI__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace gnu
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace lang
|
17 |
|
|
{
|
18 |
|
|
class CPStringBuilder;
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
}
|
22 |
|
|
namespace java
|
23 |
|
|
{
|
24 |
|
|
namespace net
|
25 |
|
|
{
|
26 |
|
|
class URI;
|
27 |
|
|
class URL;
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
class java::net::URI : public ::java::lang::Object
|
33 |
|
|
{
|
34 |
|
|
|
35 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
36 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
37 |
|
|
static ::java::lang::String * getURIGroup(::java::util::regex::Matcher *, jint);
|
38 |
|
|
void parseURI(::java::lang::String *);
|
39 |
|
|
static ::java::lang::String * unquote(::java::lang::String *);
|
40 |
|
|
static ::java::lang::String * quote(::java::lang::String *);
|
41 |
|
|
static ::java::lang::String * quoteAuthority(::java::lang::String *);
|
42 |
|
|
static ::java::lang::String * quote(::java::lang::String *, ::java::lang::String *);
|
43 |
|
|
static ::java::lang::String * quoteHost(::java::lang::String *);
|
44 |
|
|
static ::java::lang::String * quotePath(::java::lang::String *);
|
45 |
|
|
static ::java::lang::String * quoteUserInfo(::java::lang::String *);
|
46 |
|
|
public:
|
47 |
|
|
URI(::java::lang::String *);
|
48 |
|
|
URI(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jint, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
49 |
|
|
URI(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
50 |
|
|
URI(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
51 |
|
|
URI(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
52 |
|
|
static ::java::net::URI * create(::java::lang::String *);
|
53 |
|
|
::java::net::URI * parseServerAuthority();
|
54 |
|
|
::java::net::URI * normalize();
|
55 |
|
|
private:
|
56 |
|
|
::java::lang::String * normalizePath(::java::lang::String *);
|
57 |
|
|
void removeLastSegment(::gnu::java::lang::CPStringBuilder *);
|
58 |
|
|
public:
|
59 |
|
|
::java::net::URI * resolve(::java::net::URI *);
|
60 |
|
|
::java::net::URI * resolve(::java::lang::String *);
|
61 |
|
|
::java::net::URI * relativize(::java::net::URI *);
|
62 |
|
|
::java::net::URL * toURL();
|
63 |
|
|
::java::lang::String * getScheme();
|
64 |
|
|
jboolean isAbsolute();
|
65 |
|
|
jboolean isOpaque();
|
66 |
|
|
::java::lang::String * getRawSchemeSpecificPart();
|
67 |
|
|
::java::lang::String * getSchemeSpecificPart();
|
68 |
|
|
::java::lang::String * getRawAuthority();
|
69 |
|
|
::java::lang::String * getAuthority();
|
70 |
|
|
::java::lang::String * getRawUserInfo();
|
71 |
|
|
::java::lang::String * getUserInfo();
|
72 |
|
|
::java::lang::String * getHost();
|
73 |
|
|
jint getPort();
|
74 |
|
|
::java::lang::String * getRawPath();
|
75 |
|
|
::java::lang::String * getPath();
|
76 |
|
|
::java::lang::String * getRawQuery();
|
77 |
|
|
::java::lang::String * getQuery();
|
78 |
|
|
::java::lang::String * getRawFragment();
|
79 |
|
|
::java::lang::String * getFragment();
|
80 |
|
|
jboolean equals(::java::lang::Object *);
|
81 |
|
|
jint hashCode();
|
82 |
|
|
jint URI$compareTo(::java::net::URI *);
|
83 |
|
|
private:
|
84 |
|
|
jint compareFragments(::java::net::URI *);
|
85 |
|
|
public:
|
86 |
|
|
::java::lang::String * toString();
|
87 |
|
|
::java::lang::String * toASCIIString();
|
88 |
|
|
private:
|
89 |
|
|
static ::java::lang::String * escapeCharacters(::java::lang::String *);
|
90 |
|
|
public:
|
91 |
|
|
jint compareTo(::java::lang::Object *);
|
92 |
|
|
public: // actually package-private
|
93 |
|
|
static const jlong serialVersionUID = -6052424284110960213LL;
|
94 |
|
|
private:
|
95 |
|
|
static ::java::lang::String * URI_REGEXP;
|
96 |
|
|
static ::java::lang::String * AUTHORITY_REGEXP;
|
97 |
|
|
static ::java::lang::String * RFC2396_DIGIT;
|
98 |
|
|
static ::java::lang::String * RFC2396_LOWALPHA;
|
99 |
|
|
static ::java::lang::String * RFC2396_UPALPHA;
|
100 |
|
|
static ::java::lang::String * RFC2396_ALPHA;
|
101 |
|
|
static ::java::lang::String * RFC2396_ALPHANUM;
|
102 |
|
|
static ::java::lang::String * RFC3986_UNRESERVED;
|
103 |
|
|
static ::java::lang::String * RFC3986_SUBDELIMS;
|
104 |
|
|
static ::java::lang::String * RFC3986_REG_NAME;
|
105 |
|
|
static ::java::lang::String * RFC3986_PCHAR;
|
106 |
|
|
static ::java::lang::String * RFC3986_SEGMENT;
|
107 |
|
|
static ::java::lang::String * RFC3986_PATH_SEGMENTS;
|
108 |
|
|
static ::java::lang::String * RFC3986_SSP;
|
109 |
|
|
static ::java::lang::String * RFC3986_HOST;
|
110 |
|
|
static ::java::lang::String * RFC3986_USERINFO;
|
111 |
|
|
static const jint SCHEME_GROUP = 2;
|
112 |
|
|
static const jint SCHEME_SPEC_PART_GROUP = 3;
|
113 |
|
|
static const jint AUTHORITY_GROUP = 5;
|
114 |
|
|
static const jint PATH_GROUP = 6;
|
115 |
|
|
static const jint QUERY_GROUP = 8;
|
116 |
|
|
static const jint FRAGMENT_GROUP = 10;
|
117 |
|
|
static const jint AUTHORITY_USERINFO_GROUP = 2;
|
118 |
|
|
static const jint AUTHORITY_HOST_GROUP = 3;
|
119 |
|
|
static const jint AUTHORITY_PORT_GROUP = 5;
|
120 |
|
|
static ::java::util::regex::Pattern * URI_PATTERN;
|
121 |
|
|
static ::java::util::regex::Pattern * AUTHORITY_PATTERN;
|
122 |
|
|
static ::java::lang::String * HEX;
|
123 |
|
|
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) scheme;
|
124 |
|
|
::java::lang::String * rawSchemeSpecificPart;
|
125 |
|
|
::java::lang::String * schemeSpecificPart;
|
126 |
|
|
::java::lang::String * rawAuthority;
|
127 |
|
|
::java::lang::String * authority;
|
128 |
|
|
::java::lang::String * rawUserInfo;
|
129 |
|
|
::java::lang::String * userInfo;
|
130 |
|
|
::java::lang::String * rawHost;
|
131 |
|
|
::java::lang::String * host;
|
132 |
|
|
jint port;
|
133 |
|
|
::java::lang::String * rawPath;
|
134 |
|
|
::java::lang::String * path;
|
135 |
|
|
::java::lang::String * rawQuery;
|
136 |
|
|
::java::lang::String * query;
|
137 |
|
|
::java::lang::String * rawFragment;
|
138 |
|
|
::java::lang::String * fragment;
|
139 |
|
|
::java::lang::String * string;
|
140 |
|
|
public:
|
141 |
|
|
static ::java::lang::Class class$;
|
142 |
|
|
};
|
143 |
|
|
|
144 |
|
|
#endif // __java_net_URI__
|