001
014
015 package com.liferay.util.bridges.jsf.sun;
016
017 import java.io.InputStream;
018
019 import java.net.URL;
020
021 import java.security.Principal;
022
023 import java.util.Iterator;
024 import java.util.Locale;
025 import java.util.Map;
026 import java.util.Set;
027
028 import javax.faces.context.ExternalContext;
029
030 import javax.servlet.ServletContext;
031
032
035 public class LiferayServletContextAdapter extends ExternalContext {
036
037 public LiferayServletContextAdapter(ServletContext servletContext) {
038 _servletContext = servletContext;
039 }
040
041 public Map<String, Object> getApplicationMap() {
042 if (_applicationMap == null) {
043 _applicationMap = new LiferayApplicationMap(_servletContext);
044 }
045
046 return _applicationMap;
047 }
048
049 public String getAuthType() {
050 return null;
051 }
052
053 public Object getContext() {
054 return null;
055 }
056
057 public void dispatch(String string) {
058 }
059
060 public String encodeActionURL(String string) {
061 return null;
062 }
063
064 public String encodeNamespace(String string) {
065 return null;
066 }
067
068 public String encodeResourceURL(String string) {
069 return null;
070 }
071
072 public String getInitParameter(String string) {
073 return null;
074 }
075
076 public Map<String, String> getInitParameterMap() {
077 return null;
078 }
079
080 public void log(String string) {
081 }
082
083 public void log(String string, Throwable throwable) {
084 }
085
086 public void redirect(String string) {
087 }
088
089 public String getRemoteUser() {
090 return null;
091 }
092
093 public Object getRequest() {
094 return null;
095 }
096
097 public String getRequestContextPath() {
098 return null;
099 }
100
101 public Map<String, Object> getRequestCookieMap() {
102 return null;
103 }
104
105 public Map<String, String> getRequestHeaderMap() {
106 return null;
107 }
108
109 public Map<String, String[]> getRequestHeaderValuesMap() {
110 return null;
111 }
112
113 public Locale getRequestLocale() {
114 return null;
115 }
116
117 public Iterator<Locale> getRequestLocales() {
118 return null;
119 }
120
121 public Map<String, Object> getRequestMap() {
122 return null;
123 }
124
125 public Map<String, String> getRequestParameterMap() {
126 return null;
127 }
128
129 public Iterator<String> getRequestParameterNames() {
130 return null;
131 }
132
133 public Map<String, String[]> getRequestParameterValuesMap() {
134 return null;
135 }
136
137 public String getRequestPathInfo() {
138 return null;
139 }
140
141 public String getRequestServletPath() {
142 return null;
143 }
144
145 public URL getResource(String string) {
146 return null;
147 }
148
149 public InputStream getResourceAsStream(String string) {
150 return null;
151 }
152
153 public Set<String> getResourcePaths(String string) {
154 return null;
155 }
156
157 public Object getResponse() {
158 return null;
159 }
160
161 public Object getSession(boolean b) {
162 return null;
163 }
164
165 public Map<String, Object> getSessionMap() {
166 return null;
167 }
168
169 public boolean isUserInRole(String string) {
170 return false;
171 }
172
173 public Principal getUserPrincipal() {
174 return null;
175 }
176
177 private ServletContext _servletContext;
178 private LiferayApplicationMap _applicationMap;
179
180 }