- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.model.processor.ModelHandlerBase
-
- ch.qos.logback.core.model.processor.ResourceHandlerBase
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
IncludeModelHandler,PropertiesConfiguratorModelHandler
public abstract class ResourceHandlerBase extends ModelHandlerBase
-
-
Field Summary
Fields Modifier and Type Field Description protected StringattributeInUseprotected booleanoptional-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceHandlerBase(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URLattributeToURL(String urlAttribute)protected booleancheckAttributes(ResourceModel resourceModel)protected URLfilePathAsURL(String path)protected StringgetAttribureInUse()protected URLgetInputURL(ContextAwarePropertyContainer contextAwarePropertyContainer, ResourceModel resourceModel)protected InputStreamopenURL(URL url)protected URLresourceAsURL(String resourceAttribute)protected voidwarnIfRequired(String msg)-
Methods inherited from class ch.qos.logback.core.model.processor.ModelHandlerBase
getSupportedModelClass, handle, isSupportedModelType, postHandle, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
attributeInUse
protected String attributeInUse
-
optional
protected boolean optional
-
-
Constructor Detail
-
ResourceHandlerBase
protected ResourceHandlerBase(Context context)
-
-
Method Detail
-
openURL
protected InputStream openURL(URL url)
-
checkAttributes
protected boolean checkAttributes(ResourceModel resourceModel)
-
getAttribureInUse
protected String getAttribureInUse()
-
getInputURL
protected URL getInputURL(ContextAwarePropertyContainer contextAwarePropertyContainer, ResourceModel resourceModel)
-
filePathAsURL
protected URL filePathAsURL(String path)
-
attributeToURL
protected URL attributeToURL(String urlAttribute)
-
resourceAsURL
protected URL resourceAsURL(String resourceAttribute)
-
warnIfRequired
protected void warnIfRequired(String msg)
-
-