Merge remote-tracking branch 'origin/jetty-8'

Conflicts:
	jetty-servlet/src/main/java/org/eclipse/jetty/servlet/FilterHolder.java
	jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHandler.java
This commit is contained in:
Greg Wilkins 2013-06-17 14:46:10 +10:00
commit 65a7f9f279
3 changed files with 21 additions and 11 deletions

View File

@ -53,7 +53,7 @@ public class FilterHolder extends Holder<Filter>
*/
public FilterHolder()
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
}
@ -62,7 +62,7 @@ public class FilterHolder extends Holder<Filter>
*/
public FilterHolder(Holder.Source source)
{
super (source);
super(source);
}
/* ---------------------------------------------------------------- */
@ -70,7 +70,7 @@ public class FilterHolder extends Holder<Filter>
*/
public FilterHolder(Class<? extends Filter> filter)
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
setHeldClass(filter);
}
@ -79,7 +79,7 @@ public class FilterHolder extends Holder<Filter>
*/
public FilterHolder(Filter filter)
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
setFilter(filter);
}

View File

@ -57,7 +57,7 @@ public class Holder<T> extends AbstractLifeCycle implements Dumpable
protected String _className;
protected String _displayName;
protected boolean _extInstance;
protected boolean _asyncSupported=true;
protected boolean _asyncSupported;
/* ---------------------------------------------------------------- */
protected String _name;
@ -67,6 +67,16 @@ public class Holder<T> extends AbstractLifeCycle implements Dumpable
protected Holder(Source source)
{
_source=source;
switch(_source)
{
case JAVAX_API:
case DESCRIPTOR:
case ANNOTATION:
_asyncSupported=false;
break;
default:
_asyncSupported=true;
}
}
public Source getSource()

View File

@ -93,7 +93,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
*/
public ServletHolder()
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
}
/* ---------------------------------------------------------------- */
@ -101,7 +101,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
*/
public ServletHolder(Holder.Source creator)
{
super (creator);
super(creator);
}
/* ---------------------------------------------------------------- */
@ -109,7 +109,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
*/
public ServletHolder(Servlet servlet)
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
setServlet(servlet);
}
@ -118,7 +118,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
*/
public ServletHolder(String name, Class<? extends Servlet> servlet)
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
setName(name);
setHeldClass(servlet);
}
@ -128,7 +128,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
*/
public ServletHolder(String name, Servlet servlet)
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
setName(name);
setServlet(servlet);
}
@ -138,7 +138,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
*/
public ServletHolder(Class<? extends Servlet> servlet)
{
super (Source.EMBEDDED);
this(Source.EMBEDDED);
setHeldClass(servlet);
}