Package ch.qos.logback.core.joran.action
Class IncludeAction
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.action.Action
-
- ch.qos.logback.core.joran.action.IncludeAction
-
- All Implemented Interfaces:
ContextAware
public class IncludeAction extends Action
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringattributeInUseprivate static java.lang.StringFILE_ATTRprivate static java.lang.StringINCLUDED_TAGprivate booleanoptionalprivate static java.lang.StringOPTIONAL_ATTRprivate static java.lang.StringRESOURCE_ATTRprivate static java.lang.StringURL_ATTR-
Fields inherited from class ch.qos.logback.core.joran.action.Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTE
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description IncludeAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.net.URLattributeToURL(java.lang.String urlAttribute)voidbegin(InterpretationContext ec, java.lang.String name, org.xml.sax.Attributes attributes)Called when the parser encounters an element matching aPattern.private booleancheckAttributes(org.xml.sax.Attributes attributes)(package private) voidclose(java.io.InputStream in)voidend(InterpretationContext ec, java.lang.String name)(package private) java.net.URLfilePathAsURL(java.lang.String path)(package private) java.io.InputStreamgetInputStream(InterpretationContext ec, org.xml.sax.Attributes attributes)(package private) java.net.URLgetInputURL(InterpretationContext ec, org.xml.sax.Attributes attributes)(package private) java.io.InputStreamopenURL(java.net.URL url)private voidoptionalWarning(java.lang.String msg)private voidparseAndRecord(java.io.InputStream inputSource, SaxEventRecorder recorder)(package private) java.net.URLresourceAsURL(java.lang.String resourceAttribute)private voidtrimHeadAndTail(SaxEventRecorder recorder)-
Methods inherited from class ch.qos.logback.core.joran.action.Action
body, getColumnNumber, getLineColStr, getLineNumber, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
INCLUDED_TAG
private static final java.lang.String INCLUDED_TAG
- See Also:
- Constant Field Values
-
FILE_ATTR
private static final java.lang.String FILE_ATTR
- See Also:
- Constant Field Values
-
URL_ATTR
private static final java.lang.String URL_ATTR
- See Also:
- Constant Field Values
-
RESOURCE_ATTR
private static final java.lang.String RESOURCE_ATTR
- See Also:
- Constant Field Values
-
OPTIONAL_ATTR
private static final java.lang.String OPTIONAL_ATTR
- See Also:
- Constant Field Values
-
attributeInUse
private java.lang.String attributeInUse
-
optional
private boolean optional
-
-
Method Detail
-
begin
public void begin(InterpretationContext ec, java.lang.String name, org.xml.sax.Attributes attributes) throws ActionException
Description copied from class:ActionCalled when the parser encounters an element matching aPattern.- Specified by:
beginin classAction- Throws:
ActionException
-
close
void close(java.io.InputStream in)
-
checkAttributes
private boolean checkAttributes(org.xml.sax.Attributes attributes)
-
attributeToURL
java.net.URL attributeToURL(java.lang.String urlAttribute)
-
openURL
java.io.InputStream openURL(java.net.URL url)
-
resourceAsURL
java.net.URL resourceAsURL(java.lang.String resourceAttribute)
-
optionalWarning
private void optionalWarning(java.lang.String msg)
-
filePathAsURL
java.net.URL filePathAsURL(java.lang.String path)
-
getInputURL
java.net.URL getInputURL(InterpretationContext ec, org.xml.sax.Attributes attributes)
-
getInputStream
java.io.InputStream getInputStream(InterpretationContext ec, org.xml.sax.Attributes attributes)
-
trimHeadAndTail
private void trimHeadAndTail(SaxEventRecorder recorder)
-
parseAndRecord
private void parseAndRecord(java.io.InputStream inputSource, SaxEventRecorder recorder) throws JoranException- Throws:
JoranException
-
end
public void end(InterpretationContext ec, java.lang.String name) throws ActionException
- Specified by:
endin classAction- Throws:
ActionException
-
-