001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.util.bridges.jsf.sun;
022:
023: import java.io.IOException;
024: import java.io.InputStream;
025:
026: import java.net.MalformedURLException;
027: import java.net.URL;
028:
029: import java.security.Principal;
030:
031: import java.util.Iterator;
032: import java.util.Locale;
033: import java.util.Map;
034: import java.util.Set;
035:
036: import javax.faces.context.ExternalContext;
037:
038: import javax.servlet.ServletContext;
039:
040: /**
041: * <a href="LiferayServletContextAdapter.java.html"><b><i>View Source</i></b>
042: * </a>
043: *
044: * @author Neil Griffin
045: *
046: */
047: public class LiferayServletContextAdapter extends ExternalContext {
048:
049: public LiferayServletContextAdapter(ServletContext servletContext) {
050: _servletContext = servletContext;
051: }
052:
053: public Map getApplicationMap() {
054: if (_applicationMap == null) {
055: _applicationMap = new LiferayApplicationMap(_servletContext);
056: }
057:
058: return _applicationMap;
059: }
060:
061: public String getAuthType() {
062: return null;
063: }
064:
065: public Object getContext() {
066: return null;
067: }
068:
069: public void dispatch(String string) throws IOException {
070: }
071:
072: public String encodeActionURL(String string) {
073: return null;
074: }
075:
076: public String encodeNamespace(String string) {
077: return null;
078: }
079:
080: public String encodeResourceURL(String string) {
081: return null;
082: }
083:
084: public String getInitParameter(String string) {
085: return null;
086: }
087:
088: public Map getInitParameterMap() {
089: return null;
090: }
091:
092: public void log(String string) {
093: }
094:
095: public void log(String string, Throwable throwable) {
096: }
097:
098: public void redirect(String string) throws IOException {
099: }
100:
101: public String getRemoteUser() {
102: return null;
103: }
104:
105: public Object getRequest() {
106: return null;
107: }
108:
109: public String getRequestContextPath() {
110: return null;
111: }
112:
113: public Map getRequestCookieMap() {
114: return null;
115: }
116:
117: public Map getRequestHeaderMap() {
118: return null;
119: }
120:
121: public Map getRequestHeaderValuesMap() {
122: return null;
123: }
124:
125: public Locale getRequestLocale() {
126: return null;
127: }
128:
129: public Iterator getRequestLocales() {
130: return null;
131: }
132:
133: public Map getRequestMap() {
134: return null;
135: }
136:
137: public Map getRequestParameterMap() {
138: return null;
139: }
140:
141: public Iterator getRequestParameterNames() {
142: return null;
143: }
144:
145: public Map getRequestParameterValuesMap() {
146: return null;
147: }
148:
149: public String getRequestPathInfo() {
150: return null;
151: }
152:
153: public String getRequestServletPath() {
154: return null;
155: }
156:
157: public URL getResource(String string) throws MalformedURLException {
158: return null;
159: }
160:
161: public InputStream getResourceAsStream(String string) {
162: return null;
163: }
164:
165: public Set getResourcePaths(String string) {
166: return null;
167: }
168:
169: public Object getResponse() {
170: return null;
171: }
172:
173: public Object getSession(boolean b) {
174: return null;
175: }
176:
177: public Map getSessionMap() {
178: return null;
179: }
180:
181: public boolean isUserInRole(String string) {
182: return false;
183: }
184:
185: public Principal getUserPrincipal() {
186: return null;
187: }
188:
189: private ServletContext _servletContext;
190: private LiferayApplicationMap _applicationMap;
191:
192: }
|