dims 00/12/03 05:56:34
Modified: src/org/apache/cocoon/environment/commandline Tag:
xml-cocoon2 CommandLineRequest.java
CommandLineResponse.java
src/org/apache/cocoon/environment/http Tag: xml-cocoon2
HttpRequest.java HttpResponse.java
Log:
Added place holder functions.
Revision Changes Path
No revision
No revision
1.1.2.5 +7 -2
xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineRequest.java
Index: CommandLineRequest.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineRequest.java,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -r1.1.2.4 -r1.1.2.5
--- CommandLineRequest.java 2000/12/02 15:20:38 1.1.2.4
+++ CommandLineRequest.java 2000/12/03 13:56:33 1.1.2.5
@@ -29,7 +29,7 @@
* Creates a specific servlet request simulation from command line usage.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/12/02 15:20:38 $
+ * @version CVS $Revision: 1.1.2.5 $ $Date: 2000/12/03 13:56:33 $
*/
/*
@@ -57,6 +57,7 @@
private Map attributes;
private Map parameters;
private Map headers;
+ private String characterEncoding = null;
public CommandLineRequest(String contextPath, String servletPath, String
pathInfo) {
this(contextPath, servletPath, pathInfo, null, null, null);
@@ -134,7 +135,7 @@
public BufferedReader getReader() throws IOException { return null; }
public ServletInputStream getInputStream() throws IOException { return
null; }
- public String getCharacterEncoding() { return null; }
+ public String getCharacterEncoding() { return characterEncoding; }
public int getContentLength() { return -1; }
public String getContentType() { return null; }
@@ -170,4 +171,8 @@
public String getRealPath(String path) { return null; }
/** @deprecated */
public boolean isRequestedSessionIdFromUrl() { return false; }
+ public java.util.Map getParameterMap() { return parameters; }
+ public void setCharacterEncoding(java.lang.String env)
+ throws java.io.UnsupportedEncodingException {
characterEncoding = env; }
+ public java.lang.StringBuffer getRequestURL() { return null; }
}
1.1.2.4 +3 -1
xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineResponse.java
Index: CommandLineResponse.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineResponse.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- CommandLineResponse.java 2000/12/02 15:20:38 1.1.2.3
+++ CommandLineResponse.java 2000/12/03 13:56:34 1.1.2.4
@@ -22,7 +22,7 @@
* Creates a specific servlet response simulation from command line usage.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/12/02 15:20:38 $
+ * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/12/03 13:56:34 $
*/
public class CommandLineResponse implements HttpServletResponse {
@@ -65,4 +65,6 @@
public String encodeUrl(String url) { return url; }
/** @deprecated */
public String encodeRedirectUrl(String url) { return url; }
+ public java.lang.StringBuffer getRequestURL() { return null; }
+ public void resetBuffer() { }
}
No revision
No revision
1.1.2.7 +22 -0
xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpRequest.java
Index: HttpRequest.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpRequest.java,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- HttpRequest.java 2000/12/02 15:20:38 1.1.2.6
+++ HttpRequest.java 2000/12/03 13:56:34 1.1.2.7
@@ -243,4 +243,26 @@
public String getRealPath(String path) {
return this.req.getRealPath(path);
}
+
+ public java.util.Map getParameterMap() {
+ //FIXME(DIMS): Uncomment the next line when we
+ // switch to Servlet 2.3
+ //return this.req.getParameterMap();
+ return null;
+ }
+
+ public void setCharacterEncoding(java.lang.String env)
+ throws java.io.UnsupportedEncodingException {
+ //FIXME(DIMS): Uncomment the next line when we
+ // switch to Servlet 2.3
+ //this.req.setCharacterEncoding(env);
+ }
+
+ public java.lang.StringBuffer getRequestURL() {
+ //FIXME(DIMS): Uncomment the next line when we
+ // switch to Servlet 2.3
+ //return this.req.getRequestURL();
+ return null;
+ }
+
}
1.1.2.7 +6 -0
xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpResponse.java
Index: HttpResponse.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpResponse.java,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- HttpResponse.java 2000/12/02 15:20:39 1.1.2.6
+++ HttpResponse.java 2000/12/03 13:56:34 1.1.2.7
@@ -169,5 +169,11 @@
public Locale getLocale() {
return this.res.getLocale();
}
+
+ public void resetBuffer() {
+ //FIXME(DIMS): Uncomment the next line when we
+ // switch to Servlet 2.3
+ //this.res.resetBuffer();
+ }
}