Package org.zefer.cache
Class ResourceProvider
- java.lang.Object
-
- org.zefer.cache.ResourceProvider
-
public abstract class ResourceProvider extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidenable404()StringgetEncoding()abstract byte[]getResourceAsBytes(String resource, boolean debug)booleanisGzipped()voidsetBasicAuthentication(String basicAuthentication)voidsetCookies(CookieManager cm)voidsetHttpRequest(Object httpRequest, Object httpResponse)voidsetHttpRequest(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)Deprecated.binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it.voidsetProxy(String proxy)voidsetServletContext(Object ctx)voidsetServletContext(javax.servlet.ServletContext ctx)Deprecated.binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it.voidsetSessionID(String sessionID)
-
-
-
Method Detail
-
setProxy
public void setProxy(String proxy)
-
setHttpRequest
public void setHttpRequest(Object httpRequest, Object httpResponse)
- Parameters:
httpRequest- javax.servlet or jakarta.servlet HttpServletRequesthttpResponse- javax.servlet or jakarta.servlet HttpServletResponse
-
setHttpRequest
public void setHttpRequest(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)Deprecated.binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it. UsesetHttpRequest(Object, Object).
-
setBasicAuthentication
public void setBasicAuthentication(String basicAuthentication)
-
setCookies
public void setCookies(CookieManager cm)
-
setSessionID
public void setSessionID(String sessionID)
-
setServletContext
public void setServletContext(Object ctx)
- Parameters:
ctx- javax.servlet or jakarta.servlet ServletContext
-
setServletContext
public void setServletContext(javax.servlet.ServletContext ctx)
Deprecated.binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it. UsesetServletContext(Object).
-
enable404
public void enable404()
-
getEncoding
public String getEncoding()
-
isGzipped
public boolean isGzipped()
-
getResourceAsBytes
public abstract byte[] getResourceAsBytes(String resource, boolean debug) throws IOException
- Throws:
IOException
-
-