Class AbstractRequestResponseLogging
-
- All Implemented Interfaces:
-
pro.fessional.wings.slardar.servlet.stream.RequestResponseLogging
public abstract class AbstractRequestResponseLogging implements RequestResponseLogging
Prefix - feature token, such as jvmId. Body - Must enable reuse Stream or caching.
- Since:
2022-06-07
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAbstractRequestResponseLogging.Condition
-
Field Summary
Fields Modifier and Type Field Description public StringbeforeRequestPrefixpublic StringafterResponsePrefix
-
Constructor Summary
Constructors Constructor Description AbstractRequestResponseLogging()
-
Method Summary
Modifier and Type Method Description StringgetBeforeRequestPrefix()voidsetBeforeRequestPrefix(String beforeRequestPrefix)StringgetAfterResponsePrefix()voidsetAfterResponsePrefix(String afterResponsePrefix)abstract AbstractRequestResponseLogging.ConditionloggingConfig(@NotNull() ReuseStreamRequestWrapper req)Get the config of request logging, `null` means no log voidbeforeRequest(@NotNull() RequestResponseLogging.Conf cnf, @NotNull() ReuseStreamRequestWrapper req)handle log before doFilter, that do Not run `dispatch` voidafterResponse(@NotNull() RequestResponseLogging.Conf cnf, @NotNull() ReuseStreamRequestWrapper req, @NotNull() ReuseStreamResponseWrapper res)handle log after doFilter, that completed response, not output to client -
-
Method Detail
-
getBeforeRequestPrefix
String getBeforeRequestPrefix()
-
setBeforeRequestPrefix
void setBeforeRequestPrefix(String beforeRequestPrefix)
-
getAfterResponsePrefix
String getAfterResponsePrefix()
-
setAfterResponsePrefix
void setAfterResponsePrefix(String afterResponsePrefix)
-
loggingConfig
abstract AbstractRequestResponseLogging.Condition loggingConfig(@NotNull() ReuseStreamRequestWrapper req)
Get the config of request logging, `null` means no log
-
beforeRequest
void beforeRequest(@NotNull() RequestResponseLogging.Conf cnf, @NotNull() ReuseStreamRequestWrapper req)
handle log before doFilter, that do Not run `dispatch`
- Parameters:
cnf- the configreq- the request wrapper
-
afterResponse
void afterResponse(@NotNull() RequestResponseLogging.Conf cnf, @NotNull() ReuseStreamRequestWrapper req, @NotNull() ReuseStreamResponseWrapper res)
handle log after doFilter, that completed response, not output to client
- Parameters:
cnf- the configreq- the request wrapperres- the response wrapper
-
-
-
-