Dolda2000 GitWeb
/
jsvc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Added ways to get the addresses of the request's connection.
[jsvc.git]
/
src
/
dolda
/
jsvc
/
util
/
Misc.java
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
}