| 
 | Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
   oracle.stellent.wcm.client.script.ScriptFactory
oracle.stellent.wcm.client.script.ScriptFactory
public class ScriptFactory
Handle the creation of the script template objects
| Constructor Summary | |
|---|---|
| ScriptFactory(ClientApplication clientApplication) | |
| Method Summary | |
|---|---|
|  ScriptTemplate | createTemplate(RequestContext requestContext, java.lang.String path)Create the remote template for the given request context and path. | 
|  ScriptProvider | getScriptProvider(java.lang.String extension)Retrieve the script provider mapped to the given extension | 
|  boolean | isScriptEnabled() | 
|  boolean | isSupportedExtension(java.lang.String extension)Determine if the file name is a support script type | 
|  void | registerProvider(ScriptProvider scriptProvider, java.lang.String... extensions)Register a script provider with the given list of extensions | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ScriptFactory(ClientApplication clientApplication)
| Method Detail | 
|---|
public void registerProvider(ScriptProvider scriptProvider,
                             java.lang.String... extensions)
scriptProvider - the script providerextensions - the list of extensionspublic boolean isScriptEnabled()
public boolean isSupportedExtension(java.lang.String extension)
extension - the file extensionpublic ScriptProvider getScriptProvider(java.lang.String extension)
extension - the extension
public ScriptTemplate createTemplate(RequestContext requestContext,
                                     java.lang.String path)
                              throws ApplicationException
requestContext - the request contextpath - the web path to the remote templateApplicationException - if the template cannot be created| 
 | Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||