Commit | Line | Data |
---|---|---|
1 | package dolda.jsvc.util; | |
2 | ||
3 | import java.util.*; | |
4 | ||
5 | public class Misc { | |
6 | private static Map<Integer, String> stext = new HashMap<Integer, String>(); | |
7 | ||
8 | static { | |
9 | stext.put(200, "OK"); | |
10 | } | |
11 | ||
12 | public static String statustext(int status) { | |
13 | String text; | |
14 | if((text = stext.get(status)) != null) | |
15 | return(text); | |
16 | return("Unknown Response"); | |
17 | } | |
18 | } |