|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jmage.mapper.ServletMapper
public class ServletMapper
Maps ImageRequests based on queryString params.
| Field Summary | |
|---|---|
static java.lang.String |
CHAIN_DELIMITER
|
protected java.lang.String |
chainDelimiter
|
static java.lang.String |
CHAINPARAM_DELIMITER
|
protected java.lang.String |
chainParamDelimiter
|
protected static ApplicationContext |
context
|
protected static org.apache.log4j.Logger |
log
|
protected ThreadLocalServletImageRequestMap |
requestMap
|
protected static java.lang.String |
TOMCAT_CLIENTABORT
|
| Constructor Summary | |
|---|---|
ServletMapper()
|
|
| Method Summary | |
|---|---|
protected java.net.URI |
completeUri(java.lang.String resource)
Fix partial URIs |
protected java.lang.String |
determineContentType(java.lang.String imagePath)
What content type are we looking for? |
protected void |
fillChainParam(java.lang.String key,
java.lang.String value,
ImageRequest imageRequest)
Set the chain param on the ImageRequest |
protected void |
fillFilterChainProperties(java.lang.String key,
java.lang.String value,
java.util.Properties filterChainProperties)
Extract per filterchain only properties. |
protected void |
fillImageParam(java.lang.String key,
java.lang.String image,
ImageRequest imageRequest)
Set the image param on the ImageRequest |
ImageRequestMapper |
getImageRequestMapper()
|
void |
init()
|
protected ImageRequest |
populateImageRequestFrom(javax.servlet.http.HttpServletRequest request)
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CHAINPARAM_DELIMITER
public static final java.lang.String CHAIN_DELIMITER
protected static org.apache.log4j.Logger log
protected static ApplicationContext context
protected static final java.lang.String TOMCAT_CLIENTABORT
protected ThreadLocalServletImageRequestMap requestMap
protected java.lang.String chainParamDelimiter
protected java.lang.String chainDelimiter
| Constructor Detail |
|---|
public ServletMapper()
| Method Detail |
|---|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionpublic ImageRequestMapper getImageRequestMapper()
protected ImageRequest populateImageRequestFrom(javax.servlet.http.HttpServletRequest request)
throws java.net.URISyntaxException
java.net.URISyntaxException
protected void fillFilterChainProperties(java.lang.String key,
java.lang.String value,
java.util.Properties filterChainProperties)
key - the per filterchain property keyvalue - the per filterchain property valuefilterChainProperties - per image request properties
protected void fillImageParam(java.lang.String key,
java.lang.String image,
ImageRequest imageRequest)
throws java.net.URISyntaxException
key - imageRequest -
java.net.URISyntaxException
protected void fillChainParam(java.lang.String key,
java.lang.String value,
ImageRequest imageRequest)
throws java.net.URISyntaxException
key - value - imageRequest -
java.net.URISyntaxException
protected java.net.URI completeUri(java.lang.String resource)
throws java.net.URISyntaxException
resource -
java.net.URISyntaxExceptionprotected java.lang.String determineContentType(java.lang.String imagePath)
imagePath -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||