1 /*
2 * reserved comment block
3 * DO NOT REMOVE OR ALTER!
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
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 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
75 /**
76 * Constructs a <code>MalformedURIException</code> with no specified
77 * detail message.
78 */
79 public MalformedURIException()
80 {
81 super();
82 }
83
84 /**
85 * Constructs a <code>MalformedURIException</code> with the
86 * specified detail message.
87 *
88 * @param p_msg the detail message.
89 */
90 public MalformedURIException(String p_msg)
91 {
92 super(p_msg);
93 }
|
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
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()
81 {
82 super();
83 }
84
85 /**
86 * Constructs a <code>MalformedURIException</code> with the
87 * specified detail message.
88 *
89 * @param p_msg the detail message.
90 */
91 public MalformedURIException(String p_msg)
92 {
93 super(p_msg);
94 }
|