Dolda2000 GitWeb
/
jsvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a way to query the current server context.
[jsvc.git]
/
src
/
dolda
/
jsvc
/
j2ee
/
J2eeRequest.java
diff --git
a/src/dolda/jsvc/j2ee/J2eeRequest.java
b/src/dolda/jsvc/j2ee/J2eeRequest.java
index
a5e7518
..
1e7d789
100644
(file)
--- a/
src/dolda/jsvc/j2ee/J2eeRequest.java
+++ b/
src/dolda/jsvc/j2ee/J2eeRequest.java
@@
-20,12
+20,6
@@
public class J2eeRequest extends ResponseBuffer {
this.cfg = cfg;
this.req = req;
this.resp = resp;
this.cfg = cfg;
this.req = req;
this.resp = resp;
- try {
- req.setCharacterEncoding("UTF-8");
- resp.setCharacterEncoding("UTF-8");
- } catch(UnsupportedEncodingException e) {
- throw(new AssertionError(e));
- }
{
String host = req.getHeader("Host");
if((host == null) || (host.length() < 1))
{
String host = req.getHeader("Host");
if((host == null) || (host.length() < 1))
@@
-54,6
+48,10
@@
public class J2eeRequest extends ResponseBuffer {
return(props);
}
return(props);
}
+ public ServerContext ctx() {
+ return(new J2eeContext(cfg, req, resp));
+ }
+
public URL url() {
return(url);
}
public URL url() {
return(url);
}