/** * parse the String message * @return SIPHeader (ProxyAuthenticate object) * @throws ParseException if the message does not respect the spec. */ public SIPHeader parse() throws ParseException { headerName(TokenTypes.PROXY_AUTHENTICATE); ProxyAuthenticate proxyAuthenticate = new ProxyAuthenticate(); super.parse(proxyAuthenticate); return proxyAuthenticate; }
/** * parse the String message * @return SIPHeader (ProxyAuthenticate object) * @throws ParseException if the message does not respect the spec. */ public SIPHeader parse() throws ParseException { headerName(TokenTypes.PROXY_AUTHORIZATION); ProxyAuthorization proxyAuth = new ProxyAuthorization(); super.parse(proxyAuth); return proxyAuth; }
/** * parse the String message * @return SIPHeader (Authorization object) * @throws SIPParseException if the message does not respect the spec. */ public SIPHeader parse() throws ParseException { dbg_enter("parse"); try { headerName(TokenTypes.AUTHORIZATION); Authorization auth = new Authorization(); super.parse(auth); return auth; } finally { dbg_leave("parse"); } }
/** * parse the String message * @return SIPHeader (WWWAuthenticate object) * @throws SIPParseException if the message does not respect the spec. */ public SIPHeader parse() throws ParseException { if (debug) dbg_enter("parse"); try { headerName(TokenTypes.WWW_AUTHENTICATE); WWWAuthenticate wwwAuthenticate = new WWWAuthenticate(); super.parse(wwwAuthenticate); return wwwAuthenticate; } finally { if (debug) dbg_leave("parse"); } } }