Commit old changes. Add servlet-api.jar.

This commit is contained in:
Christian P. MOMON 2012-09-16 22:49:01 +02:00
parent 7091405913
commit 7fd0478523
3 changed files with 45 additions and 1 deletions

BIN
lib/servlet-api.jar Normal file

Binary file not shown.

View file

@ -30,6 +30,7 @@ public class SimpleServletDispatcher extends HttpServlet
{
private static final long serialVersionUID = -3471226305721330069L;
static protected org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (ServletDispatcher.class);
static final protected Pattern SHORT_REWRITED_URL_CLASS = Pattern.compile("^([^-]+)-.+\\.xhtml$");
static final protected Pattern SHORT_REWRITED_URL_PARAMETERS = Pattern.compile("^[^-]+-(.+)\\.xhtml$");
static final protected Pattern LONG_REWRITED_URL_CLASS = Pattern.compile("^([^-]+)-/.*$");

View file

@ -85,6 +85,28 @@ public class StringList extends ArrayList<String>
}
/**
*
*/
public StringList append(String ... strings)
{
StringList result;
if (strings != null)
{
for (String string : strings)
{
this.add(string);
}
}
result = this;
//
return(result);
}
/**
*
*/
@ -99,6 +121,20 @@ public class StringList extends ArrayList<String>
}
/**
*
*/
public StringList appendln(String ... strings)
{
StringList result;
result = this.append(strings).appendln();
//
return(result);
}
/**
*
*/
@ -273,12 +309,19 @@ public class StringList extends ArrayList<String>
/**
*
*/
public void removeLast()
public StringList removeLast()
{
StringList result;
if (this.size() > 0)
{
this.remove(this.size() - 1);
}
result = this;
//
return(result);
}