1 23 24 package com.sun.enterprise.appclient.jws; 25 26 32 public class WebPath { 33 34 private String contextRoot; 35 36 private String path; 37 38 39 public WebPath(String fullPath) { 40 45 int secondSlash = fullPath.indexOf('/', 1); 46 if (secondSlash < 0) { 47 contextRoot = fullPath; 48 path = ""; 49 } else { 50 contextRoot = fullPath.substring(0, secondSlash); 51 path = fullPath.substring(secondSlash); 52 } 53 } 54 55 public String contextRoot() { 56 return contextRoot; 57 } 58 59 public String path() { 60 return path; 61 } 62 63 public String toString() { 64 return "WebPathPath: context root = \"" + contextRoot + "\", path = \"" + path + "\'"; 65 } 66 } 67 | Popular Tags |