KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > environment > commandline > CommandLineResponse


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.environment.commandline;
17
18 import org.apache.cocoon.environment.Cookie;
19 import org.apache.cocoon.environment.Response;
20
21 import java.util.Locale JavaDoc;
22
23 /**
24  * Creates a specific servlet response simulation from command line usage.
25  *
26  * @author <a HREF="mailto:stefano@apache.org">Stefano Mazzocchi</a>
27  * @version CVS $Id: CommandLineResponse.java 30932 2004-07-29 17:35:38Z vgritsenko $
28  */

29
30 public class CommandLineResponse implements Response {
31
32     public String JavaDoc getCharacterEncoding() { return null; }
33     public Cookie createCookie(String JavaDoc name, String JavaDoc value) { return null; }
34     public void addCookie(Cookie cookie) {}
35     public boolean containsHeader(String JavaDoc name) { return false; }
36     public void setHeader(String JavaDoc name, String JavaDoc value) {}
37     public void setIntHeader(String JavaDoc name, int value) {}
38     public void setDateHeader(String JavaDoc name, long date) {}
39     public String JavaDoc encodeURL (String JavaDoc url) { return url; }
40     public void setLocale(Locale JavaDoc locale) { }
41     public Locale JavaDoc getLocale() { return null; }
42     public void addDateHeader(String JavaDoc name, long date) { }
43     public void addHeader(String JavaDoc name, String JavaDoc value) { }
44     public void addIntHeader(String JavaDoc name, int value) { }
45 }
46
Popular Tags