Class WebModuleReaderImpl
- java.lang.Object
-
- org.glassfish.loadbalancer.admin.cli.reader.impl.WebModuleReaderImpl
-
- All Implemented Interfaces:
BaseReader,WebModuleReader
public class WebModuleReaderImpl extends Object implements WebModuleReader
Provides web module information relavant to Load balancer tier.- Author:
- Kshitiz Saxena
-
-
Constructor Summary
Constructors Constructor Description WebModuleReaderImpl(String name, ApplicationRef ref, Application application, WebBundleDescriptor webBundleDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)Accepts a visitor and calls its visit methodStringgetContextRoot()Returns config context of this moduleStringgetDisableTimeoutInMinutes()Returns disable timeout for this moduleStringgetErrorUrl()Returns error url for this web moduleIdempotentUrlPatternReader[]getIdempotentUrlPattern()Returns idempotent url patterns for this module.booleangetLbEnabled()Returns load balancer enabled flag.
-
-
-
Constructor Detail
-
WebModuleReaderImpl
public WebModuleReaderImpl(String name, ApplicationRef ref, Application application, WebBundleDescriptor webBundleDescriptor)
-
-
Method Detail
-
getContextRoot
public String getContextRoot() throws LbReaderException
Description copied from interface:WebModuleReaderReturns config context of this module- Specified by:
getContextRootin interfaceWebModuleReader- Returns:
- String context root for this web module
- Throws:
LbReaderException
-
getErrorUrl
public String getErrorUrl() throws LbReaderException
Description copied from interface:WebModuleReaderReturns error url for this web module- Specified by:
getErrorUrlin interfaceWebModuleReader- Returns:
- String This url acts as error page for this module
- Throws:
LbReaderException
-
getLbEnabled
public boolean getLbEnabled() throws LbReaderExceptionDescription copied from interface:WebModuleReaderReturns load balancer enabled flag.- Specified by:
getLbEnabledin interfaceWebModuleReader- Returns:
- Throws:
LbReaderException
-
getDisableTimeoutInMinutes
public String getDisableTimeoutInMinutes() throws LbReaderException
Description copied from interface:WebModuleReaderReturns disable timeout for this module- Specified by:
getDisableTimeoutInMinutesin interfaceWebModuleReader- Returns:
- Throws:
LbReaderException
-
getIdempotentUrlPattern
public IdempotentUrlPatternReader[] getIdempotentUrlPattern() throws LbReaderException
Description copied from interface:WebModuleReaderReturns idempotent url patterns for this module.- Specified by:
getIdempotentUrlPatternin interfaceWebModuleReader- Returns:
- IdempotentUrlPatternReader[] list of idempotent url patterns
- Throws:
LbReaderException
-
accept
public void accept(Visitor v) throws Exception
Description copied from interface:BaseReaderAccepts a visitor and calls its visit method- Specified by:
acceptin interfaceBaseReader- Throws:
Exception
-
-