Skip navigation links
oracle.stellent.wcm.javaee.servlet.proxy.impl
Class WCMGetPlaceHolderContent
java.lang.Object
oracle.stellent.wcm.javaee.servlet.proxy.impl.IdcServiceForProxy
oracle.stellent.wcm.javaee.servlet.proxy.impl.WCMGetPlaceHolderContent
-
public class WCMGetPlaceHolderContent
- extends IdcServiceForProxy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WCM_PLACEHOLDER_CONTENT_TOKEN
public static final java.lang.String WCM_PLACEHOLDER_CONTENT_TOKEN
-
- See Also:
- Constant Field Values
SS_DATAFILE
public static final java.lang.String SS_DATAFILE
-
- See Also:
- Constant Field Values
SS_REGION_DEFINITION
public static final java.lang.String SS_REGION_DEFINITION
-
- See Also:
- Constant Field Values
SS_TEMPLATE
public static final java.lang.String SS_TEMPLATE
-
- See Also:
- Constant Field Values
WCMGetPlaceHolderContent
public WCMGetPlaceHolderContent(javax.servlet.ServletContext servletContext)
handleService
public ProxyResponse handleService(ProxyRequest proxyRequest,
oracle.stellent.ridc.model.DataBinder dataBinder,
ServletRequestContext servletRequestContext)
throws javax.servlet.ServletException,
java.io.IOException
- Handle a service call.
-
- Overrides:
handleService
in class IdcServiceForProxy
-
- Parameters:
proxyRequest
- the proxy request
dataBinder
- the data binder containing the request
servletRequestContext
- the request context
- Returns:
- the proxy response
- Throws:
javax.servlet.ServletException
java.io.IOException
getLocalDataFromJson
protected java.util.Map<java.lang.String,java.lang.String> getLocalDataFromJson(java.lang.String jsonResponseString,
java.util.Map<java.lang.String,java.lang.String> localDataMap)
throws org.json.JSONException
-
- Throws:
org.json.JSONException
stripHtmlTag
protected java.lang.String stripHtmlTag(java.lang.String stringToReplace,
java.lang.String tagName)
- Strips the first occurrence of the html tag with the tagName.
-
- Parameters:
stringToReplace
- the string to strip the tag from
tagName
- the html tag name
- Returns:
- the string with the tag stripped.
stripScriptTags
protected java.lang.String stripScriptTags(java.lang.String stringtoreplace)
- Strip the script tags and the script content from the string. Also encodes the string to json if specified
-
- Parameters:
stringtoreplace
- the string to strip the script tags from
- Returns:
- the stripped version of the string
createProxyResponse
protected ProxyResponse createProxyResponse(ServletRequestContext requestContext,
SiteRequest siteRequest,
SiteResponse siteResponse,
java.lang.String responseBinderString)
throws java.io.IOException,
javax.servlet.ServletException
- Handle the site response into a valid Http servlet response
-
- Parameters:
requestContext
- the request context
siteRequest
- the site request
siteResponse
-
- Returns:
- the proxy response
- Throws:
java.io.IOException
javax.servlet.ServletException
Skip navigation links
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.