Package edu.uiuc.ncsa.security.core.util
Class AbstractEnvironment
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.AbstractEnvironment
-
- All Implemented Interfaces:
Logable,Serializable
- Direct Known Subclasses:
MailEnvironment,SASEnvironment,TestEnvironment
public abstract class AbstractEnvironment extends Object implements Logable, Serializable
Basic runtime environment. Generally, you read a configuration with one of the configuration utilities then create an instance of this. This contains all the configuration and configured factories that the application needs. This permits different environments to operate simultaneously if there are, for instance, multiple services running.Created by Jeff Gaynor
on Nov 5, 2010 at 10:17:04 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEnvironment()protectedAbstractEnvironment(MyLoggingFacade myLogger)protectedAbstractEnvironment(MyLoggingFacade myLogger, Map<String,String> constants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String x)Write a debug message to the log.voiderror(String x)Write an error message to the log.Map<String,String>getConstants()Returns a hash map of constants that are used for this service.MyLoggingFacadegetMyLogger()voidinfo(String x)Write an informational message to the logbooleanisDebugOn()Query if debugging is enabled for this logger.booleanisPingable()Turn off or on pinging for this OA4MP install.voidsetDebugOn(boolean setOn)Enable/disable debugging for this loggervoidsetPingable(boolean pingable)voidwarn(String x)Write a warning to the log.
-
-
-
Constructor Detail
-
AbstractEnvironment
protected AbstractEnvironment(MyLoggingFacade myLogger)
-
AbstractEnvironment
protected AbstractEnvironment(MyLoggingFacade myLogger, Map<String,String> constants)
-
AbstractEnvironment
protected AbstractEnvironment()
-
-
Method Detail
-
isDebugOn
public boolean isDebugOn()
Description copied from interface:LogableQuery if debugging is enabled for this logger.
-
getConstants
public Map<String,String> getConstants()
Returns a hash map of constants that are used for this service. There are required constants (such as for the callback url) and others may be added too.
-
setDebugOn
public void setDebugOn(boolean setOn)
Description copied from interface:LogableEnable/disable debugging for this logger- Specified by:
setDebugOnin interfaceLogable
-
getMyLogger
public MyLoggingFacade getMyLogger()
-
debug
public void debug(String x)
Description copied from interface:LogableWrite a debug message to the log.
-
error
public void error(String x)
Description copied from interface:LogableWrite an error message to the log. Typically this is invoked as the last command before throwing an exception.
-
info
public void info(String x)
Description copied from interface:LogableWrite an informational message to the log
-
warn
public void warn(String x)
Description copied from interface:LogableWrite a warning to the log. This indicates a severe, but non-fatal condition exists.
-
isPingable
public boolean isPingable()
Turn off or on pinging for this OA4MP install. If disabled, all pings will generate a server side exception.- Returns:
-
setPingable
public void setPingable(boolean pingable)
-
-