org.directwebremoting.impl
Class DefaultDebugPageGenerator

java.lang.Object
  extended by org.directwebremoting.impl.DefaultDebugPageGenerator
All Implemented Interfaces:
DebugPageGenerator

public class DefaultDebugPageGenerator
extends java.lang.Object
implements DebugPageGenerator

A default implementation of TestPageGenerator

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultDebugPageGenerator()
           
 
Method Summary
 java.lang.String generateEngineUrl(java.lang.String root)
          Deprecated. 
 java.lang.String generateIndexPage(java.lang.String root)
          Generate some HTML that represents an index page
 java.lang.String generateInterfaceUrl(java.lang.String root, java.lang.String scriptName)
          Deprecated. 
 java.lang.String generateLibraryUrl(java.lang.String root, java.lang.String library)
          Deprecated. 
 java.lang.String generateTestPage(java.lang.String root, java.lang.String scriptName)
          Generate some HTML that represents a test page for a given script
 java.util.Collection<java.lang.String> getAvailableLibraries()
          Deprecated. 
 void setAccessControl(AccessControl accessControl)
          Accessor for the security manager
 void setConverterManager(ConverterManager converterManager)
          Accessor for the DefaultConverterManager that we configure
 void setDebug(boolean debug)
          Setter for debug enabling
 void setEngineHandlerUrl(java.lang.String engineHandlerUrl)
           
 void setInterfaceHandlerUrl(java.lang.String interfaceHandlerUrl)
          Setter for the URL that this handler available on
 void setModuleManager(ModuleManager moduleManager)
          Accessor for the ModuleManager that we configure
 void setTestHandlerUrl(java.lang.String testHandlerUrl)
           
 void setUtilHandlerUrl(java.lang.String utilHandlerUrl)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDebugPageGenerator

public DefaultDebugPageGenerator()
Method Detail

generateIndexPage

public java.lang.String generateIndexPage(java.lang.String root)
                                   throws java.lang.SecurityException
Description copied from interface: DebugPageGenerator
Generate some HTML that represents an index page

Specified by:
generateIndexPage in interface DebugPageGenerator
Parameters:
root - The prefix common to all DWR URLs. Usually contextPath+servletPath
Returns:
An index page in HTML
Throws:
java.lang.SecurityException - If the pages are not accessible

generateTestPage

public java.lang.String generateTestPage(java.lang.String root,
                                         java.lang.String scriptName)
                                  throws java.lang.SecurityException
Description copied from interface: DebugPageGenerator
Generate some HTML that represents a test page for a given script

Specified by:
generateTestPage in interface DebugPageGenerator
Parameters:
root - The prefix common to all DWR URLs. Usually contextPath+servletPath
scriptName - The script to generate for
Returns:
A test page in HTML
Throws:
java.lang.SecurityException - If the pages are not accessible

generateInterfaceUrl

@Deprecated
public java.lang.String generateInterfaceUrl(java.lang.String root,
                                                        java.lang.String scriptName)
Deprecated. 

Description copied from interface: DebugPageGenerator
For a given remoted class, generate a URL that will retrieve the Javascript interface

Specified by:
generateInterfaceUrl in interface DebugPageGenerator
Parameters:
root - The prefix common to all DWR URLs. Usually contextPath+servletPath
scriptName - The script to generate for
Returns:
A URL that points at the given scriptName

generateEngineUrl

@Deprecated
public java.lang.String generateEngineUrl(java.lang.String root)
Deprecated. 

Description copied from interface: DebugPageGenerator
Create a url that links to the engine.js file

Specified by:
generateEngineUrl in interface DebugPageGenerator
Parameters:
root - The prefix common to all DWR URLs. Usually contextPath+servletPath
Returns:
A URL that points at the central engine Javascript file

generateLibraryUrl

@Deprecated
public java.lang.String generateLibraryUrl(java.lang.String root,
                                                      java.lang.String library)
Deprecated. 

Description copied from interface: DebugPageGenerator
Create a url that links to one of the library files

Specified by:
generateLibraryUrl in interface DebugPageGenerator
Parameters:
root - The prefix common to all DWR URLs. Usually contextPath+servletPath
library - The name of a library as returned by DebugPageGenerator.getAvailableLibraries()
Returns:
A URL that points at the given library

getAvailableLibraries

@Deprecated
public java.util.Collection<java.lang.String> getAvailableLibraries()
Deprecated. 

Specified by:
getAvailableLibraries in interface DebugPageGenerator
Returns:
A list of the available libraries.

setConverterManager

public void setConverterManager(ConverterManager converterManager)
Accessor for the DefaultConverterManager that we configure

Parameters:
converterManager - The new DefaultConverterManager

setModuleManager

public void setModuleManager(ModuleManager moduleManager)
Accessor for the ModuleManager that we configure

Parameters:
moduleManager -

setAccessControl

public void setAccessControl(AccessControl accessControl)
Accessor for the security manager

Parameters:
accessControl - The accessControl to set.

setEngineHandlerUrl

public void setEngineHandlerUrl(java.lang.String engineHandlerUrl)
Parameters:
engineHandlerUrl - the engineHandlerUrl to set

setUtilHandlerUrl

public void setUtilHandlerUrl(java.lang.String utilHandlerUrl)
Parameters:
utilHandlerUrl - the utilHandlerUrl to set

setTestHandlerUrl

public void setTestHandlerUrl(java.lang.String testHandlerUrl)
Parameters:
testHandlerUrl - the testHandlerUrl to set

setInterfaceHandlerUrl

public void setInterfaceHandlerUrl(java.lang.String interfaceHandlerUrl)
Setter for the URL that this handler available on

Parameters:
interfaceHandlerUrl - the interfaceHandlerUrl to set

setDebug

public void setDebug(boolean debug)
Setter for debug enabling

Parameters:
debug -

Copyright 2008