Class EPPUnhandledNamespacesMonitorLogger
java.lang.Object
com.verisign.epp.codec.unhandlednamespaces.v1_0.EPPUnhandledNamespacesMonitorLogger
- All Implemented Interfaces:
EPPUnhandledNamespacesMonitor
public class EPPUnhandledNamespacesMonitorLogger
extends Object
implements EPPUnhandledNamespacesMonitor
Monitor for unhandled namespaces by logging the full XML namespaces for the
unhandled namespaces. This is the default monitor used for the filter classes
(
EPPUnhandledNamespacesResponseFilter and
EPPUnhandledNamespacesPollMessageFilter).-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor with no usage specified.EPPUnhandledNamespacesMonitorLogger(org.slf4j.Logger aLogger, boolean aUseSuffix) Constructor that takes a usage value, which will be included in the logs. -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.LoggerGets the custom logger to use for logging the unhandled namespaces.booleanWill the logs include the XML namespace suffix instead of the full XML namespace?voidmonitorUnhandledNamespaces(EPPResponse aOrigResponse, EPPResponse aFilteredResponse, boolean aNoOp, Set<String> aUnhandledNamespaces, Object aData) Method called to monitor for returning unhandled namespace information to clients and to report it to the clients out of band to EPP.voidsetLogger(org.slf4j.Logger aLogger) Gets the custom logger to use for logging the unhandled namespaces.voidsetUseSuffix(boolean useSuffix) Sets whether the logs include the XML namespace suffix instead of the full XML namespace.
-
Constructor Details
-
EPPUnhandledNamespacesMonitorLogger
public EPPUnhandledNamespacesMonitorLogger()Default constructor with no usage specified. -
EPPUnhandledNamespacesMonitorLogger
public EPPUnhandledNamespacesMonitorLogger(org.slf4j.Logger aLogger, boolean aUseSuffix) Constructor that takes a usage value, which will be included in the logs.- Parameters:
aLogger- Logger to use for logging. Set tonullto use the default logger, which isEPPUnhandledNamespacesMonitorLogger.class.aUseSuffix- Log the unhandled namespace suffix in place of the full XML namespace for condensed logging.
-
-
Method Details
-
isUseSuffix
public boolean isUseSuffix()Will the logs include the XML namespace suffix instead of the full XML namespace?- Returns:
trueif the logs include the XML namespace suffix instead of the full XML namespace;falseotherwise.
-
setUseSuffix
public void setUseSuffix(boolean useSuffix) Sets whether the logs include the XML namespace suffix instead of the full XML namespace.- Parameters:
useSuffix-trueif the logs include the XML namespace suffix instead of the full XML namespace;falseotherwise.
-
getLogger
public org.slf4j.Logger getLogger()Gets the custom logger to use for logging the unhandled namespaces. If unset, the default logger using theEPPUnhandledNamespacesMonitorLoggerFQCN.- Returns:
- The custom logger if set;
nullotherwise.
-
setLogger
public void setLogger(org.slf4j.Logger aLogger) Gets the custom logger to use for logging the unhandled namespaces. If unset, the default logger using theEPPUnhandledNamespacesMonitorLoggerFQCN.- Parameters:
aLogger- The custom logger to use. Set tonullto not use a custom logger.
-
monitorUnhandledNamespaces
public void monitorUnhandledNamespaces(EPPResponse aOrigResponse, EPPResponse aFilteredResponse, boolean aNoOp, Set<String> aUnhandledNamespaces, Object aData) Method called to monitor for returning unhandled namespace information to clients and to report it to the clients out of band to EPP. This method will log the list of unhandled namespaces either using the full XML namespace whenuseSuffixisfalseor using the XML namespace suffix whenuseSuffixistrue.- Specified by:
monitorUnhandledNamespacesin interfaceEPPUnhandledNamespacesMonitor- Parameters:
aOrigResponse- The original EPP response that was created without consideration of the namespaces supported by the client.aFilteredResponse- The filtered EPP response that includes the filtered the unhandled namespace XML into <extValue> elements.aNoOp- If set totrue, the filter classes (EPPUnhandledNamespacesResponseFilterandEPPUnhandledNamespacesPollMessageFilter) are used only to identify for the use of unhandled namespaces andaUnhandledNamespaces- The list of unhandled namespace URIs that were filtered into <extValue> elements.aData- Data object passed to the filter classes (EPPUnhandledNamespacesResponseFilterandEPPUnhandledNamespacesPollMessageFilter).
-