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.String
attributeInUse
private static java.lang.String
FILE_ATTR
private static java.lang.String
INCLUDED_TAG
private boolean
optional
private static java.lang.String
OPTIONAL_ATTR
private static java.lang.String
RESOURCE_ATTR
private static java.lang.String
URL_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.URL
attributeToURL(java.lang.String urlAttribute)
void
begin(InterpretationContext ec, java.lang.String name, org.xml.sax.Attributes attributes)
Called when the parser encounters an element matching aPattern
.private boolean
checkAttributes(org.xml.sax.Attributes attributes)
(package private) void
close(java.io.InputStream in)
void
end(InterpretationContext ec, java.lang.String name)
(package private) java.net.URL
filePathAsURL(java.lang.String path)
(package private) java.io.InputStream
getInputStream(InterpretationContext ec, org.xml.sax.Attributes attributes)
(package private) java.net.URL
getInputURL(InterpretationContext ec, org.xml.sax.Attributes attributes)
(package private) java.io.InputStream
openURL(java.net.URL url)
private void
optionalWarning(java.lang.String msg)
private void
parseAndRecord(java.io.InputStream inputSource, SaxEventRecorder recorder)
(package private) java.net.URL
resourceAsURL(java.lang.String resourceAttribute)
private void
trimHeadAndTail(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:Action
Called when the parser encounters an element matching aPattern
.- Specified by:
begin
in 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:
end
in classAction
- Throws:
ActionException
-
-