forked from piotrpolak/android-http-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotFound.java
More file actions
25 lines (21 loc) · 726 Bytes
/
Copy pathNotFound.java
File metadata and controls
25 lines (21 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**************************************************
* Android Web Server
* Based on JavaLittleWebServer (2008)
* <p/>
* Copyright (c) Piotr Polak 2008-2017
**************************************************/
package example;
import ro.polak.http.exception.NotFoundException;
import ro.polak.http.exception.ServletException;
import ro.polak.http.servlet.HttpServletRequest;
import ro.polak.http.servlet.HttpServletResponse;
import ro.polak.http.servlet.HttpServlet;
/**
* Not found page example page
*/
public class NotFound extends HttpServlet {
@Override
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException {
throw new NotFoundException();
}
}