@Override public String get(String name) { return query.get(name); }
/** * This method is used to insert a collection of tokens into * the parsers map. This is used when another source of tokens * is required to populate the connection currently maintained * within this parsers internal map. Any tokens that currently * exist with similar names will be overwritten by this. * * @param query this is the collection of tokens to be added */ private void add(Query query) { Set<String> keySet = query.keySet(); for(String key : keySet) { List<String> list = query.getAll(key); String first = query.get(key); if(first != null) { all.put(key, list); map.put(key, first); } } } }
@Override public Optional<String> getQueryParam(String param) { return Optional.fromNullable(request.getQuery().get(param)); }
/** * This method is used to insert a collection of tokens into * the parsers map. This is used when another source of tokens * is required to populate the connection currently maintained * within this parsers internal map. Any tokens that currently * exist with similar names will be overwritten by this. * * @param query this is the collection of tokens to be added */ private void add(Query query) { Set<String> keySet = query.keySet(); for(String key : keySet) { List<String> list = query.getAll(key); String first = query.get(key); if(first != null) { all.put(key, list); map.put(key, first); } } } }
/** * This is used to provide quick access to the parameters. This * avoids having to acquire the request <code>Form</code> object. * This basically acquires the parameters object and invokes * the <code>getParameters</code> method with the given name. * * @param name this is the name of the parameter value */ public String getParameter(String name) { return getQuery().get(name); }
/** * This method is used to insert a collection of tokens into * the parsers map. This is used when another source of tokens * is required to populate the connection currently maintained * within this parsers internal map. Any tokens that currently * exist with similar names will be overwritten by this. * * @param query this is the collection of tokens to be added */ private void add(Query query) { Set<String> keySet = query.keySet(); for(String key : keySet) { List<String> list = query.getAll(key); String first = query.get(key); if(first != null) { all.put(key, list); map.put(key, first); } } } }
/** * This is used to provide quick access to the parameters. This * avoids having to acquire the request <code>Form</code> object. * This basically acquires the parameters object and invokes * the <code>getParameters</code> method with the given name. * * @param name this is the name of the parameter value */ public String getParameter(String name) { return getQuery().get(name); }
/** * This is used to provide quick access to the parameters. This * avoids having to acquire the request <code>Form</code> object. * This basically acquires the parameters object and invokes * the <code>getParameters</code> method with the given name. * * @param name this is the name of the parameter value */ public String getParameter(String name) { return getQuery().get(name); }
@Override public Optional<String> getQueryParam(String param) { return Optional.fromNullable(request.getQuery().get(param)); }