src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/util/JaxmURI.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
448 return; 448 return;
449 } 449 }
450 450
451 // if we get to this point, we need to resolve relative path 451 // if we get to this point, we need to resolve relative path
452 // RFC 2396 5.2 #6 452 // RFC 2396 5.2 #6
453 String path = new String(); 453 String path = "";
454 String basePath = p_base.getPath(); 454 String basePath = p_base.getPath();
455 455
456 // 6a - get all but the last segment of the base URI path 456 // 6a - get all but the last segment of the base URI path
457 if (basePath != null) { 457 if (basePath != null) {
458 int lastSlash = basePath.lastIndexOf('/'); 458 int lastSlash = basePath.lastIndexOf('/');
1135 } 1135 }
1136 } 1136 }
1137 return false; 1137 return false;
1138 } 1138 }
1139 1139
1140 public int hashCode() {
1141 // No members safe to use, just default to a constant.
1142 return 153214;
1143 }
1144
1140 /** 1145 /**
1141 * Get the URI as a string specification. See RFC 2396 Section 5.2. 1146 * Get the URI as a string specification. See RFC 2396 Section 5.2.
1142 * 1147 *
1143 * @return the URI string specification 1148 * @return the URI string specification
1144 */ 1149 */

mercurial