275396 Added Authentication.Wrapped to allow JSAPI wrapping
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@210 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
5255060588
commit
d29b5d3a4e
|
@ -10,6 +10,7 @@ jetty-7.0.0.M2-SNAPSHOT
|
||||||
+ JETTY-1014 Enable start-stop-daemon by default on jetty.sh (START_STOP_DAEMON=1)
|
+ JETTY-1014 Enable start-stop-daemon by default on jetty.sh (START_STOP_DAEMON=1)
|
||||||
+ JETTY-1015 Reduce BayeuxClient and HttpClient lock contention
|
+ JETTY-1015 Reduce BayeuxClient and HttpClient lock contention
|
||||||
+ 275396 Added ScopedHandler to set servlet scope before security handler
|
+ 275396 Added ScopedHandler to set servlet scope before security handler
|
||||||
|
+ 275396 Added Authentication.Wrapped to allow JSAPI wrapping
|
||||||
|
|
||||||
jetty-6.1.17 30 April 2009
|
jetty-6.1.17 30 April 2009
|
||||||
+ JETTY-936 Make optional dispatching to welcome files as servlets
|
+ JETTY-936 Make optional dispatching to welcome files as servlets
|
||||||
|
|
|
@ -415,6 +415,11 @@ public abstract class SecurityHandler extends HandlerWrapper implements Authenti
|
||||||
if (authentication==null || authentication==Authentication.NOT_CHECKED)
|
if (authentication==null || authentication==Authentication.NOT_CHECKED)
|
||||||
authentication=authenticator.validateRequest(request, response, isAuthMandatory);
|
authentication=authenticator.validateRequest(request, response, isAuthMandatory);
|
||||||
|
|
||||||
|
if (authentication instanceof Authentication.Wrapped)
|
||||||
|
{
|
||||||
|
request=((Authentication.Wrapped)authentication).getHttpServletRequest();
|
||||||
|
response=((Authentication.Wrapped)authentication).getHttpServletResponse();
|
||||||
|
}
|
||||||
|
|
||||||
if (authentication instanceof Authentication.ResponseSent)
|
if (authentication instanceof Authentication.ResponseSent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,8 @@ package org.eclipse.jetty.server;
|
||||||
|
|
||||||
import javax.servlet.ServletRequest;
|
import javax.servlet.ServletRequest;
|
||||||
import javax.servlet.ServletResponse;
|
import javax.servlet.ServletResponse;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
@ -41,6 +43,15 @@ public interface Authentication
|
||||||
void logout();
|
void logout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
|
/** A wrapped authentication with methods provide the
|
||||||
|
* wrapped request/response for use by the application
|
||||||
|
*/
|
||||||
|
public interface Wrapped extends Authentication
|
||||||
|
{
|
||||||
|
HttpServletRequest getHttpServletRequest();
|
||||||
|
HttpServletResponse getHttpServletResponse();
|
||||||
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
/** A deferred authentication with methods to progress
|
/** A deferred authentication with methods to progress
|
||||||
|
|
Loading…
Reference in New Issue