/** * Returns the value of the <code>maddr</code> parameter, or null if this * is not set. * * @return the string value of the maddr parameter */ public String getMAddr() { return getParameter(ParameterNames.MADDR); }
/** * Gets the branch paramater of the ViaHeader. Returns null if branch * does not exist. * * @return the string branch value of ViaHeader */ public String getBranch() { return getParameter(ParameterNames.BRANCH); }
/** * Gets the received paramater of the ViaHeader. Returns null if received * does not exist. * * @return the string received value of ViaHeader */ public String getReceived() { return getParameter(ParameterNames.RECEIVED); }
/** * Return the rport parameter. * *@return the rport parameter or -1. */ public int getRPort() { String strRport = getParameter(ParameterNames.RPORT); if (strRport != null && ! strRport.equals("")) return Integer.valueOf(strRport).intValue(); else return -1; }