lumis.portal.page.cache
Class HtmlGenerationConfig

Package class diagram package HtmlGenerationConfig
java.lang.Object
  extended by lumis.portal.page.cache.HtmlGenerationConfig

public class HtmlGenerationConfig
extends java.lang.Object

Contains configurations for the cache HTML generation.

Since:
4.1.0

Constructor Summary
HtmlGenerationConfig(org.w3c.dom.Node htmlGenerationNode)
           
 
Method Summary
 int getConnecTimeout()
          Returns the HTTP connect timeout.
 java.lang.String getFrameworkUrl()
          Returns the frameworkUrl used to generate html cache.
 java.lang.String getHtmlFileExtension()
          Returns the extension used for html files.
 int getPageRequestTimeout()
          Returns the timeout, in milliseconds, for a cached page request.
 java.lang.String getShtmlFileExtension()
          Returns the extension used for shtml files.
 int getSsiWaitBeforeSendRedirect()
          Returns the time to wait in milliseconds before sending a redirect for a SSI page that was not found.
 boolean isHtmlCacheLogNavigation()
          Returns if the access to cached html files should cause navigation log.
 boolean isSsiSendRedirectOnPageNotFound()
          Indicates if a send redirect should be used when a SSI page is not found, instead of directly streaming the generated html.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlGenerationConfig

public HtmlGenerationConfig(org.w3c.dom.Node htmlGenerationNode)
                     throws PortalException
Throws:
PortalException
Method Detail

isHtmlCacheLogNavigation

public boolean isHtmlCacheLogNavigation()
Returns if the access to cached html files should cause navigation log.

Returns:
true to log navigation on cached html, false otherwise.
Since:
4.1.0

getFrameworkUrl

public java.lang.String getFrameworkUrl()
Returns the frameworkUrl used to generate html cache.

Returns:
the frameworkUrl used to generate html cache.
Since:
4.1.0

getHtmlFileExtension

public java.lang.String getHtmlFileExtension()
Returns the extension used for html files.

Returns:
the extension used for html files.
Since:
4.1.0

getShtmlFileExtension

public java.lang.String getShtmlFileExtension()
Returns the extension used for shtml files.

Returns:
the extension used for shtml files.
Since:
4.1.0

getPageRequestTimeout

public int getPageRequestTimeout()
Returns the timeout, in milliseconds, for a cached page request. When a request for a page that does not have its cache available is done, a period up to this timeout limit is waited to allow the generator to generate the required cache. If the generation is not done within this timeout, an error is sent in the response.

Returns:
the pageRequestTimeout the timeout in milliseconds.
Since:
4.1.0

isSsiSendRedirectOnPageNotFound

public boolean isSsiSendRedirectOnPageNotFound()
Indicates if a send redirect should be used when a SSI page is not found, instead of directly streaming the generated html.

Returns:
if true use send redirect, else stream the generated html.
Since:
4.1.0

getSsiWaitBeforeSendRedirect

public int getSsiWaitBeforeSendRedirect()
Returns the time to wait in milliseconds before sending a redirect for a SSI page that was not found. Used only if isSsiSendRedirectOnPageNotFound() is true.

Returns:
the time to wait in milliseconds.
Since:
4.1.0

getConnecTimeout

public int getConnecTimeout()
Returns the HTTP connect timeout.

Returns:
the timeout in milliseconds.
Since:
5.6.0
See Also:
URLConnection.setConnectTimeout(int)


Lumisportal  6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.