|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Admin
This is the Admin interface used both by the LoggingServlet and the LmsSFActionBean when looking up the administration MBean.
| Method Summary | |
|---|---|
void |
addLoggingServletMapping(java.lang.String name,
java.lang.String url)
Creates a new Lms mapping: requests coming to http://host:port/Lms/log/name are processed (recorded) and forwarded to the specified url. |
void |
cleanAllCommunications()
Cleans up all the recorded communications |
void |
cleanCommunications(java.lang.String name)
Cleans up the communications for the given mapping name. |
void |
create()
|
void |
destroy()
|
LogData |
getLogData(java.lang.String name)
Gets the recorder data for a given mapping. |
void |
logCommunication(java.lang.String name,
Request request,
Response response)
Requires the provided Request and Response to be recorder under the given mapping name. |
void |
removeLoggingServletMapping(java.lang.String name)
Remove a mapping from the current list of Lms mapping |
java.util.List<LogData> |
showAllLogData()
Returns the full list of recorded data. |
java.util.Map<java.lang.String,java.lang.String> |
showAllLogMappings()
Returns a map whose keys are the mapping's short name and whose values are the corresponding specified urls. |
java.lang.String |
startLogRecording(java.lang.String name)
Enable recording on the given mapping |
void |
stopAllLogRecording()
Disable recording on all the mappings currently in place. |
java.lang.String |
stopLogRecording(java.lang.String name)
Disable recording on the given mapping |
| Method Detail |
|---|
void addLoggingServletMapping(java.lang.String name,
java.lang.String url)
name - The short name to be used for the mappingurl - The actual address requests should be forwarded to when using this mappingvoid removeLoggingServletMapping(java.lang.String name)
name - The name of the mapping to be removed.java.util.Map<java.lang.String,java.lang.String> showAllLogMappings()
java.util.List<LogData> showAllLogData()
LogData getLogData(java.lang.String name)
name - The mapping name of the required data
java.lang.String startLogRecording(java.lang.String name)
name - The name of the mapping on which the recording has to be enabled.
java.lang.String stopLogRecording(java.lang.String name)
name - The name of the mapping on which the recording has to be disabled.
void stopAllLogRecording()
void logCommunication(java.lang.String name,
Request request,
Response response)
name - The mapping namerequest - The request objectresponse - The response objectvoid cleanAllCommunications()
void cleanCommunications(java.lang.String name)
name -
void create()
throws java.lang.Exception
java.lang.Exception
void destroy()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||