Package com.composum.nodes.debugutil
Class RequestLoggingFilter.LoggingWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- com.composum.nodes.debugutil.RequestLoggingFilter.LoggingWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
- RequestLoggingFilter
protected static class RequestLoggingFilter.LoggingWriter extends FilterWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilder
buf
protected String
uri
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description LoggingWriter(Writer writer, String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
write(char[] cbuf, int off, int len)
void
write(int c)
void
write(String str, int off, int len)
-
Methods inherited from class java.io.FilterWriter
flush
-
-
-
-
Field Detail
-
uri
protected final String uri
-
buf
protected final StringBuilder buf
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterWriter
- Throws:
IOException
-
write
public void write(int c) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
-