use of gov.nist.core.NameValue in project XobotOS by xamarin.
the class URLParser method uriParam.
private NameValue uriParam() throws ParseException {
if (debug)
dbg_enter("uriParam");
try {
String pvalue = "";
String pname = paramNameOrValue();
char next = lexer.lookAhead(0);
boolean isFlagParam = true;
if (next == '=') {
lexer.consume(1);
pvalue = paramNameOrValue();
isFlagParam = false;
}
if (pname.length() == 0 && (pvalue == null || pvalue.length() == 0))
return null;
else
return new NameValue(pname, pvalue, isFlagParam);
} finally {
if (debug)
dbg_leave("uriParam");
}
}
use of gov.nist.core.NameValue in project XobotOS by xamarin.
the class PAccessNetworkInfoParser method parse.
public SIPHeader parse() throws ParseException {
if (debug)
dbg_enter("AccessNetworkInfoParser.parse");
try {
headerName(TokenTypes.P_ACCESS_NETWORK_INFO);
PAccessNetworkInfo accessNetworkInfo = new PAccessNetworkInfo();
accessNetworkInfo.setHeaderName(SIPHeaderNamesIms.P_ACCESS_NETWORK_INFO);
this.lexer.SPorHT();
lexer.match(TokenTypes.ID);
Token token = lexer.getNextToken();
accessNetworkInfo.setAccessType(token.getTokenValue());
this.lexer.SPorHT();
while (lexer.lookAhead(0) == ';') {
this.lexer.match(';');
this.lexer.SPorHT();
NameValue nv = super.nameValue('=');
accessNetworkInfo.setParameter(nv);
this.lexer.SPorHT();
}
this.lexer.SPorHT();
this.lexer.match('\n');
return accessNetworkInfo;
} finally {
if (debug)
dbg_leave("AccessNetworkInfoParser.parse");
}
}
use of gov.nist.core.NameValue in project XobotOS by xamarin.
the class PChargingFunctionAddressesParser method parseParameter.
protected void parseParameter(PChargingFunctionAddresses chargingFunctionAddresses) throws ParseException {
if (debug)
dbg_enter("parseParameter");
try {
NameValue nv = this.nameValue('=');
//chargingFunctionAddresses.setParameter(nv);
chargingFunctionAddresses.setMultiParameter(nv);
} finally {
if (debug)
dbg_leave("parseParameter");
}
}
Aggregations