Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.org/licenses/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.apache.cxf.jaxrs.impl.tl;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.EventListener;
import java.util.Map;
import java.util.Set;
import javax.servlet.Filter;
import javax.servlet.FilterRegistration;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import javax.servlet.ServletRegistration.Dynamic;
import javax.servlet.SessionCookieConfig;
import javax.servlet.SessionTrackingMode;
import javax.servlet.descriptor.JspConfigDescriptor;
public class ThreadLocalServletContext extends AbstractThreadLocalProxy
implements ServletContext {
public Object getAttribute(String name) {
return get().getAttribute(name);
}
public Enumeration getAttributeNames() {
return get().getAttributeNames();
}
public ServletContext getContext(String uripath) {
return get().getContext(uripath);
}
public String getContextPath() {
return get().getContextPath();
}
public String getInitParameter(String name) {
return get().getInitParameter(name);
}
public Enumeration getInitParameterNames() {
return get().getInitParameterNames();
}
public int getMajorVersion() {
return get().getMajorVersion();
}
public String getMimeType(String file) {
return get().getMimeType(file);
}
public int getMinorVersion() {
return get().getMinorVersion();
}
public RequestDispatcher getNamedDispatcher(String name) {
return get().getNamedDispatcher(name);
}
public String getRealPath(String path) {
return get().getRealPath(path);
}
public RequestDispatcher getRequestDispatcher(String path) {
return get().getRequestDispatcher(path);
}
public URL getResource(String path) throws MalformedURLException {
return get().getResource(path);
}
public InputStream getResourceAsStream(String path) {
return get().getResourceAsStream(path);
}
public Set getResourcePaths(String path) {
return get().getResourcePaths(path);
}
public String getServerInfo() {
return get().getServerInfo();
}
@SuppressWarnings("deprecation")
public Servlet getServlet(String name) throws ServletException {
return get().getServlet(name);
}
public String getServletContextName() {
return get().getServletContextName();
}
@SuppressWarnings("deprecation")
public Enumeration getServletNames() {
return get().getServletNames();
}
@SuppressWarnings("deprecation")
public Enumeration getServlets() {
return get().getServlets();
}
public void log(String msg) {
get().log(msg);
}
@SuppressWarnings("deprecation")
public void log(Exception exception, String msg) {
get().log(exception, msg);
}
public void log(String message, Throwable throwable) {
get().log(message, throwable);
}
public void removeAttribute(String name) {
get().removeAttribute(name);
}
public void setAttribute(String name, Object object) {
get().setAttribute(name, object);
}
public boolean setInitParameter(String name, String value) {
return get().setInitParameter(name, value);
}
public Dynamic addServlet(String servletName, String className) throws IllegalArgumentException,
IllegalStateException {
return get().addServlet(servletName, className);
}
public Dynamic addServlet(String servletName, Servlet servlet) throws IllegalArgumentException,
IllegalStateException {
return get().addServlet(servletName, servlet);
}
public Dynamic addServlet(String servletName, Class extends Servlet> clazz)
throws IllegalArgumentException, IllegalStateException {
return get().addServlet(servletName, clazz);
}
public T createServlet(Class clazz) throws ServletException {
return get().createServlet(clazz);
}
public ServletRegistration getServletRegistration(String servletName) {
return get().getServletRegistration(servletName);
}
public Map getServletRegistrations() {
return get().getServletRegistrations();
}
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, String className)
throws IllegalArgumentException, IllegalStateException {
return get().addFilter(filterName, className);
}
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter)
throws IllegalArgumentException, IllegalStateException {
return get().addFilter(filterName, filter);
}
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName,
Class extends Filter> filterClass)
throws IllegalArgumentException, IllegalStateException {
return get().addFilter(filterName, filterClass);
}
public T createFilter(Class clazz) throws ServletException {
return get().createFilter(clazz);
}
public FilterRegistration getFilterRegistration(String filterName) {
return get().getFilterRegistration(filterName);
}
public Map getFilterRegistrations() {
return get().getFilterRegistrations();
}
public void addListener(Class extends EventListener> listenerClass) {
get().addListener(listenerClass);
}
public void addListener(String className) {
get().addListener(className);
}
public void addListener(T t) {
get().addListener(t);
}
public T createListener(Class clazz) throws ServletException {
return get().createListener(clazz);
}
public void declareRoles(String... roleNames) {
get().declareRoles(roleNames);
}
public SessionCookieConfig getSessionCookieConfig() {
return get().getSessionCookieConfig();
}
public void setSessionTrackingModes(Set sessionTrackingModes) {
get().setSessionTrackingModes(sessionTrackingModes);
}
public Set getDefaultSessionTrackingModes() {
return get().getDefaultSessionTrackingModes();
}
public int getEffectiveMajorVersion() throws UnsupportedOperationException {
return get().getEffectiveMajorVersion();
}
public int getEffectiveMinorVersion() throws UnsupportedOperationException {
return get().getEffectiveMinorVersion();
}
public Set getEffectiveSessionTrackingModes() {
return get().getEffectiveSessionTrackingModes();
}
public ClassLoader getClassLoader() {
return get().getClassLoader();
}
public JspConfigDescriptor getJspConfigDescriptor() {
return get().getJspConfigDescriptor();
}
}