/*
* (C) Copyright 2006-2009 Nuxeo SAS <http://nuxeo.com> and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jean-Marc Orliaguet, Chalmers
*
* $Id$
*/
package org.nuxeo.theme.webengine.negotiation.theme;
import javax.servlet.http.HttpServletRequest;
import org.nuxeo.ecm.webengine.model.WebContext;
import org.nuxeo.theme.negotiation.Scheme;
public final class DefaultTheme implements Scheme {
public String getOutcome(final Object context) {
HttpServletRequest request = ((WebContext) context).getRequest();
return (String) request.getAttribute("org.nuxeo.theme.default.theme");
}
}