-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.java
More file actions
29 lines (23 loc) · 682 Bytes
/
Copy pathdemo.java
File metadata and controls
29 lines (23 loc) · 682 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
26
27
28
29
package com.kaiju.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
* Created by jharohit on 13/6/14.
*/
@Path("/api")
public class health {
@GET
@Path("/health")
@Produces(MediaType.TEXT_PLAIN)
public Response healthCheck() {
return Response.ok("OK")
.header("Accept-Encoding","gzip")
.header("Cache-Control","no-cache, no-store, must-revalidate ")
.header("Pragma","no-cache")
.header("Expires",-1)
.build();
}
}