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 Object

Contains configurations for the cache HTML generation.

Since:
4.1.0

Constructor Summary
HtmlGenerationConfig(Node htmlGenerationNode)
           
 
Method Summary
 int getConnecTimeout()
          Returns the HTTP connect timeout.
 int getExpirationLimit()
          Returns the maximum number of web resource caches that can be expired in a single render data changed event.
 String getFrameworkUrl()
          Returns the frameworkUrl used to generate html cache.
 String getHtmlFileExtension()
          Returns the extension used for html files.
 int getPageRequestTimeout()
          Returns the timeout, in milliseconds, for a cached page request.
 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(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 String getFrameworkUrl()
Returns the frameworkUrl used to generate html cache.

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

getHtmlFileExtension

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

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

getShtmlFileExtension

public 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)

getExpirationLimit

public int getExpirationLimit()
Returns the maximum number of web resource caches that can be expired in a single render data changed event.

The default value is 0 and represents a unlimited number of web resource cache that can be expired.

Returns:
the maximum number of web resource caches that can be expired in a single render data changed event.
Since:
6.2.0
See Also:
PageRenderDataChangedEvent} and all classes that inherit it.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.