1 29 30 package nextapp.echo2.webrender.service; 31 32 import java.io.IOException ; 33 34 import javax.servlet.http.HttpServletResponse ; 35 36 import nextapp.echo2.webrender.Connection; 37 import nextapp.echo2.webrender.ContentType; 38 import nextapp.echo2.webrender.Service; 39 import nextapp.echo2.webrender.WebRenderServlet; 40 41 45 public class SessionExpiredService 46 implements Service { 47 48 51 public static final Service INSTANCE = new SessionExpiredService(); 52 53 56 public String getId() { 57 return WebRenderServlet.SERVICE_ID_SESSION_EXPIRED; 58 } 59 60 63 public int getVersion() { 64 return DO_NOT_CACHE; 65 } 66 67 70 public void service(Connection conn) 71 throws IOException { 72 conn.setContentType(ContentType.TEXT_HTML); 73 conn.getResponse().setStatus(HttpServletResponse.SC_BAD_REQUEST); 74 conn.getWriter().write("Session Expired"); 75 } 76 } 77 | Popular Tags |