Package com.composum.sling.nodes.tools
Class RuntimeFileServlet.LogfileFilter
- java.lang.Object
-
- com.composum.sling.nodes.tools.RuntimeFileServlet.LogfileFilter
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RuntimeFileServlet
public static class RuntimeFileServlet.LogfileFilter extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogfileFilter(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
LogfileFilter(@Nullable Pattern pattern, int prepend, int append)
LogfileFilter(RuntimeFileServlet.LogfileFilter template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkMatch(@Nullable String line)
boolean
equals(Object other)
protected int
getInt(@Nullable String str, int defaultValue)
int
hashCode()
boolean
isFilter()
@Nullable String
readLine(@NotNull RandomAccessFile fileAccess)
String
toString()
-
-
-
Field Detail
-
pattern
protected final Pattern pattern
-
prepend
protected final int prepend
-
append
protected final int append
-
more
protected int more
-
matched
protected boolean matched
-
skipped
protected boolean skipped
-
flushed
protected boolean flushed
-
flushBuffer
protected boolean flushBuffer
-
-
Constructor Detail
-
LogfileFilter
public LogfileFilter(@Nullable @Nullable Pattern pattern, int prepend, int append)
-
LogfileFilter
public LogfileFilter(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
LogfileFilter
public LogfileFilter(@NotNull RuntimeFileServlet.LogfileFilter template)
-
-
Method Detail
-
getInt
protected int getInt(@Nullable @Nullable String str, int defaultValue)
-
isFilter
public boolean isFilter()
-
readLine
@Nullable public @Nullable String readLine(@NotNull @NotNull RandomAccessFile fileAccess) throws IOException
- Throws:
IOException
-
checkMatch
protected boolean checkMatch(@Nullable @Nullable String line)
-
-