Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.javaee.servlet.proxy.impl
Class WCMGetPlaceHolderContent

java.lang.Object
  extended by oracle.stellent.wcm.javaee.servlet.proxy.impl.IdcServiceForProxy
      extended by oracle.stellent.wcm.javaee.servlet.proxy.impl.WCMGetPlaceHolderContent


public class WCMGetPlaceHolderContent
extends IdcServiceForProxy

Field Summary
static java.lang.String SS_DATAFILE
           
static java.lang.String SS_REGION_DEFINITION
           
static java.lang.String SS_TEMPLATE
           
static java.lang.String WCM_PLACEHOLDER_CONTENT_TOKEN
           

 

Constructor Summary
WCMGetPlaceHolderContent(javax.servlet.ServletContext servletContext)
           

 

Method Summary
protected  ProxyResponse createProxyResponse(ServletRequestContext requestContext, SiteRequest siteRequest, SiteResponse siteResponse, java.lang.String responseBinderString)
          Handle the site response into a valid Http servlet response
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)
           
 ProxyResponse handleService(ProxyRequest proxyRequest, oracle.stellent.ridc.model.DataBinder dataBinder, ServletRequestContext servletRequestContext)
          Handle a service call.
protected  java.lang.String stripHtmlTag(java.lang.String stringToReplace, java.lang.String tagName)
          Strips the first occurrence of the html tag with the tagName.
protected  java.lang.String stripScriptTags(java.lang.String stringtoreplace)
          Strip the script tags and the script content from the string.

 

Methods inherited from class oracle.stellent.wcm.javaee.servlet.proxy.impl.IdcServiceForProxy
createProxyResponse, getProxyLogic, getServletContext, getWcmApplication

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

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

Constructor Detail

WCMGetPlaceHolderContent

public WCMGetPlaceHolderContent(javax.servlet.ServletContext servletContext)

Method Detail

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

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.