Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
NorthernWind - lightweight CMS Copyright (C) 2011-2011 by Tidalwave s.a.s. (http://www.tidalwave.it) Licensed 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. WWW: http://northernwind.java.net SCM: http://java.net/hg/northernwind~src /
package it.tidalwave.northernwind.frontend.ui.vaadin;
import  javax.annotation.Nonnull;
import  org.springframework.context.annotation.Scope;

The Vaadin specialization of SiteViewController.

Author(s):
Fabrizio Giudici
Version:
$Id$ /
@Configurable @Scope(value="session") @Slf4j
  {
    @Nonnull @Inject
    private VaadinSiteView siteView;
    
    @Nonnull @Inject
Tracks the incoming URI. /
    private final URIHandler uriHandler = new URIHandler()
      {
        @Override
        public DownloadStream handleURI (final @Nonnull URL contextfinal @Nonnull String relativeUri
          {
            try
              {
                .set(null);
                handleUri(contextrelativeUri);
                return .get();
              }
            catch (HttpErrorException e)
              {
                .error(""e);
//                e.getStatusCode();
                // TODO: send status code
                return null;
              }
            finally
              {
                .set(null);
              }
          }
      };
    
    
/
    private void registerUriHandler()
      {
        // FIXME: seems to be registered twice? See logs
        .info(">>>> registered URI handler: {}");
      }
  }
New to GrepCode? Check out our FAQ X