1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Oct 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xml.internal.utils;
23
41 * part. For URIs that follow the "generic URI" syntax, the scheme-
42 * specific part begins with two slashes ("//") and may be followed
43 * by an authority segment (comprised of user information, host, and
44 * port), path segment, query segment and fragment. Note that RFC 2396
45 * no longer specifies the use of the parameters segment and excludes
46 * the "user:password" syntax as part of the authority segment. If
47 * "user:password" appears in a URI, the entire user/password string
48 * is stored as userinfo.
49 * <p>
50 * For URIs that do not follow the "generic URI" syntax (e.g. mailto),
51 * the entire scheme-specific part is treated as the "path" portion
52 * of the URI.
53 * <p>
54 * Note that, unlike the java.net.URL class, this class does not provide
55 * any built-in network access functionality nor does it provide any
56 * scheme-specific functionality (for example, it does not know a
57 * default port for a specific scheme). Rather, it only knows the
58 * grammar and basic set of operations that can be applied to a URI.
59 *
60 *
61 */
62 public class URI implements Serializable
63 {
64 private static final long serialVersionUID = 7096266377907081897L;
65
66 /**
67 * MalformedURIExceptions are thrown in the process of building a URI
68 * or setting fields on a URI when an operation would result in an
69 * invalid URI specification.
70 *
71 */
72 public static class MalformedURIException extends IOException
73 {
74 private static final long serialVersionUID = -8498313684991136829L;
75
76 /**
77 * Constructs a <code>MalformedURIException</code> with no specified
78 * detail message.
79 */
80 public MalformedURIException()
|
1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xml.internal.utils;
22
40 * part. For URIs that follow the "generic URI" syntax, the scheme-
41 * specific part begins with two slashes ("//") and may be followed
42 * by an authority segment (comprised of user information, host, and
43 * port), path segment, query segment and fragment. Note that RFC 2396
44 * no longer specifies the use of the parameters segment and excludes
45 * the "user:password" syntax as part of the authority segment. If
46 * "user:password" appears in a URI, the entire user/password string
47 * is stored as userinfo.
48 * <p>
49 * For URIs that do not follow the "generic URI" syntax (e.g. mailto),
50 * the entire scheme-specific part is treated as the "path" portion
51 * of the URI.
52 * <p>
53 * Note that, unlike the java.net.URL class, this class does not provide
54 * any built-in network access functionality nor does it provide any
55 * scheme-specific functionality (for example, it does not know a
56 * default port for a specific scheme). Rather, it only knows the
57 * grammar and basic set of operations that can be applied to a URI.
58 *
59 *
60 * @LastModified: Oct 2017
61 */
62 public class URI implements Serializable
63 {
64 private static final long serialVersionUID = 7096266377907081897L;
65
66 /**
67 * MalformedURIExceptions are thrown in the process of building a URI
68 * or setting fields on a URI when an operation would result in an
69 * invalid URI specification.
70 *
71 */
72 public static class MalformedURIException extends IOException
73 {
74 private static final long serialVersionUID = -8498313684991136829L;
75
76 /**
77 * Constructs a <code>MalformedURIException</code> with no specified
78 * detail message.
79 */
80 public MalformedURIException()
|