public class RESTDispatcher extends java.lang.Object implements Dispatcher
This dispatcher supports also a simple single sign-on-mechanism (SS). If an URL contains the parameter X-OLAT-TOKEN, the RestSecurityBean will be used to look up the
associated user. You can use the REST API to create such a X-OLAT-TOKEN or replace the RestSecurityBean with your own implementation that creates the tokens. Please
refere to the REST API documentation on how to create the X-OLAT-TOKEN
Example: [RepoyEntry:12323123][CourseNode:2341231456][message:123123][blablup:555555]?X-OLAT-TOKEN=xyz
TODO:pb:2009-06-02: (1) Check for Authenticated Session, otherwise send over login page (2) UZHDisparcher has a security check for use of SSL -> introduce also here or maybe bring the check into webapphelper.
Initial Date: 24.04.2009
限定符和类型 | 方法和说明 |
---|---|
void |
execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String uriPrefix) |
public void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String uriPrefix)
execute
在接口中 Dispatcher