Commit old changes. Add servlet-api.jar.
This commit is contained in:
parent
7091405913
commit
7fd0478523
3 changed files with 45 additions and 1 deletions
BIN
lib/servlet-api.jar
Normal file
BIN
lib/servlet-api.jar
Normal file
Binary file not shown.
|
@ -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("^([^-]+)-/.*$");
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue