001/* 002 * (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * bjalon 016 */ 017package org.nuxeo.application.definition; 018 019import java.util.Map; 020 021import javax.servlet.http.HttpServletRequest; 022 023import org.nuxeo.ecm.mobile.handler.RequestHandler; 024 025/** 026 * @author bjalon 027 */ 028public class MyApplicationRequestHandler implements RequestHandler { 029 030 @Override 031 public boolean isRequestRedirectedToApplication(HttpServletRequest request) { 032 return true; 033 } 034 035 @Override 036 public RequestHandler init(Map<String, String> arg0) { 037 return this; 038 } 039 040 @Override 041 public boolean isRequestRedirectedToApplicationLoginForm(HttpServletRequest arg0) { 042 return true; 043 } 044 045}