Changeset 6013
- Timestamp:
- 02/23/15 11:49:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/AutheticationResource.java
r5774 r6013 43 43 public class AutheticationResource extends ResourceResource { 44 44 45 45 /** 46 * 47 * @return the {@link Principal} object representing the current logged-on principal. 48 * @throws IOException if sending the error fails. 49 */ 46 50 @GET 47 51 @Produces(MediaType.TEXT_XML) … … 57 61 } 58 62 59 /* the only request that redirects to the shibboleth login-page 60 * 63 64 /** 65 * Redirects to shibboleth authentication page. 66 * @return welcome string or error message. 61 67 */ 62 68 @GET … … 74 80 } 75 81 82 /** 83 * 84 * @throws IOException if sending redirect fails. 85 */ 76 86 @GET 77 87 @Produces(MediaType.TEXT_XML) 78 88 @Path("logout") 79 89 @Transactional(readOnly = true) 80 public void logout() throws IOException , ServletException{90 public void logout() throws IOException{ 81 91 httpServletRequest.getSession().invalidate(); 82 92 boolean isShibboleth = Boolean.parseBoolean(context.getInitParameter("eu.dasish.annotation.backend.isShibbolethSession"));
Note: See TracChangeset
for help on using the changeset viewer.