org.vfny.geoserver.action
Class LoadXMLAction
java.lang.Object
org.apache.struts.action.Action
org.vfny.geoserver.action.GeoServerAction
org.vfny.geoserver.action.ConfigAction
org.vfny.geoserver.action.LoadXMLAction
- public class LoadXMLAction
- extends ConfigAction
Load GeoServer configuration.
The existing getServer instances is updated with a call to load(..) based
on the existing XML configuration files.
It seems this class also creates the GeoServer instance in a lazy fashion!
That would mean that if this class cannot load, the application cannot load?
This could not possibly be the case, because the load action should only
appear when logged in.
Load need to remain on the current page, right now it takes us on a wild
ride back to the welcome screen.
Q: Does this need to load the Validation Processor as well?
Fields inherited from class org.apache.struts.action.Action |
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Method Summary |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Execute method that redirects user if not loggin in. |
Methods inherited from class org.apache.struts.action.Action |
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadXMLAction
public LoadXMLAction()
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Description copied from class:
ConfigAction
- Execute method that redirects user if not loggin in.
The UserContainer is gathered from the session context using the
GeoServerAction.getUserContainer( request method ).
- Overrides:
execute
in class ConfigAction
- Throws:
java.io.IOException
javax.servlet.ServletException
- See Also:
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)