org.vfny.geoserver.action
Class SaveXMLAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.vfny.geoserver.action.GeoServerAction
          extended byorg.vfny.geoserver.action.ConfigAction
              extended byorg.vfny.geoserver.action.SaveXMLAction

public class SaveXMLAction
extends ConfigAction

Save GeoServer state to XML.

This is a propert ConfigAction - you need to be logged in for this to work.


Field Summary
 
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
 
Constructor Summary
SaveXMLAction()
           
 
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.vfny.geoserver.action.ConfigAction
getDataConfig, getGlobalConfig, getWFSConfig, getWMSConfig
 
Methods inherited from class org.vfny.geoserver.action.GeoServerAction
getApplicationState, getGeoServer, getUserContainer, isLoggedIn, logOut
 
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
 

Constructor Detail

SaveXMLAction

public SaveXMLAction()
Method Detail

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)