/*
* (non-Javadoc) {@inheritDoc}
*/
@Override
public Navigation run() throws Exception {
Validators v = new Validators(request);
v.add(
"startWeek",
v.required(),
v.integerType(),
v.longRange(START_WEEK_MIN, START_WEEK_MAX));
v.add("keyword", v.maxlength(KEYWORD_MAX_LENGTH));
if (!v.validate()) {
response.setStatus(UNAUTHORIZED);
Errors errors = v.getErrors();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < errors.size(); i++) {
sb.append(errors.get(i) + "\n");
}
response.setContentType("text/plain;charset=UTF-8");