blob: 1474228a9d50e01ed4c7899e8c897094ee0978c7 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License") + you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openmeetings.servlet.outputhandler;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.openmeetings.OpenmeetingsVariables;
import org.apache.openmeetings.servlet.BaseHttpServlet;
import org.apache.openmeetings.servlet.ServerNotInitializedException;
import org.red5.logging.Red5LoggerFactory;
import org.slf4j.Logger;
/**
*
* @author sebastianwagner
*
*/
public class BackupExportFacade extends BaseHttpServlet {
private static final long serialVersionUID = -928315730609302260L;
private static final Logger log = Red5LoggerFactory.getLogger(
BackupExportFacade.class, OpenmeetingsVariables.webAppRootKey);
/*
* (non-Javadoc)
*
* @see
* javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest
* , javax.servlet.http.HttpServletResponse)
*/
@Override
protected void service(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) throws ServletException,
IOException {
try {
getBean(BackupExport.class).service(httpServletRequest, httpServletResponse,
getServletContext());
} catch (ServerNotInitializedException e) {
handleNotBooted(httpServletResponse);
} catch (Exception er) {
log.error("Error exporting ", er);
}
}
}