/** * @return transport parameter of this URI */ public String getTransportParam() { String[] args = getPath().split(PARAMS_SEPARATOR); for (String arg : args) { if (arg.startsWith(FIELD_TRANSPORT)) { return arg.substring(FIELD_TRANSPORT.length()); } } return null; }
/** * @return protocol parameter of this URI */ public String getProtocolParam() { String[] args = getPath().split(PARAMS_SEPARATOR); for (String arg : args) { if (arg.startsWith(FIELD_PROTOCOL)) { return arg.substring(FIELD_PROTOCOL.length()); } } return null; }