[Yanel-commits] rev 20660 - in
public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl: .
communication
michi at wyona.com
michi at wyona.com
Thu Dec 7 19:40:01 CET 2006
Author: michi
Date: 2006-12-07 19:39:59 +0100 (Thu, 07 Dec 2006)
New Revision: 20660
Added:
public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/
public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineRequest.java
public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineResponse.java
Log:
request and response classes added
Added: public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineRequest.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineRequest.java 2006-12-07 17:59:55 UTC (rev 20659)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineRequest.java 2006-12-07 18:39:59 UTC (rev 20660)
@@ -0,0 +1,293 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.wyona.org/licenses/APACHE-LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.wyona.yanel.cmdl.communication;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.security.Principal;
+import java.util.Enumeration;
+import java.util.Locale;
+import java.util.Map;
+
+import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletInputStream;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+
+
+/**
+ * Not implemented yet.
+ */
+public class CommandLineRequest implements HttpServletRequest {
+
+ protected String url;
+
+ public CommandLineRequest(String url) {
+ this.url = url;
+ }
+
+ public StringBuffer getRequestURL() {
+ return new StringBuffer(url);
+ }
+
+ public String getParameter(String name) {
+ return "not implemented yet";
+ }
+
+ public Object getAttribute(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Enumeration getAttributeNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getCharacterEncoding() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public int getContentLength() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public String getContentType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public ServletInputStream getInputStream() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Locale getLocale() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Enumeration getLocales() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Map getParameterMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Enumeration getParameterNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String[] getParameterValues(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getProtocol() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public BufferedReader getReader() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getRealPath(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getRemoteAddr() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getRemoteHost() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public RequestDispatcher getRequestDispatcher(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getScheme() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getServerName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public int getServerPort() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public boolean isSecure() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void removeAttribute(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setAttribute(String arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public String getAuthType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getContextPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Cookie[] getCookies() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public long getDateHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public String getHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Enumeration getHeaderNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Enumeration getHeaders(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public int getIntHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public String getMethod() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getPathInfo() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getPathTranslated() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getQueryString() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getRemoteUser() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getRequestedSessionId() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getRequestURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String getServletPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public HttpSession getSession() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public HttpSession getSession(boolean arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Principal getUserPrincipal() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public boolean isRequestedSessionIdFromCookie() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean isRequestedSessionIdFromUrl() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean isRequestedSessionIdFromURL() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean isRequestedSessionIdValid() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean isUserInRole(String arg0) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+}
Added: public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineResponse.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineResponse.java 2006-12-07 17:59:55 UTC (rev 20659)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/cmdl/communication/CommandLineResponse.java 2006-12-07 18:39:59 UTC (rev 20660)
@@ -0,0 +1,187 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.wyona.org/licenses/APACHE-LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.wyona.yanel.cmdl.communication;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Locale;
+
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletResponse;
+
+
+/**
+ * Not implemented yet.
+ *
+ */
+public class CommandLineResponse implements HttpServletResponse {
+
+ public CommandLineResponse() {
+ }
+
+ public void addCookie(Cookie arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void addDateHeader(String arg0, long arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void addHeader(String arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void addIntHeader(String arg0, int arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public boolean containsHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public String encodeRedirectUrl(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String encodeRedirectURL(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String encodeUrl(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String encodeURL(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public void sendError(int arg0, String arg1) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void sendError(int arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void sendRedirect(String arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setDateHeader(String arg0, long arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setHeader(String arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setIntHeader(String arg0, int arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setStatus(int arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setStatus(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void flushBuffer() throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public int getBufferSize() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public String getCharacterEncoding() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Locale getLocale() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public ServletOutputStream getOutputStream() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public PrintWriter getWriter() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public boolean isCommitted() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void reset() {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void resetBuffer() {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setBufferSize(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setContentLength(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setContentType(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setLocale(Locale arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
More information about the Yanel-commits
mailing list