/*
 * 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 wicket.examples.debug;

import wicket.Application;
import wicket.markup.html.basic.Label;
import wicket.markup.html.panel.Panel;

/**
 * A Wicket panel that shows interesting information about a given Wicket
 * session.
 * 
 * @author Jonathan Locke
 */
public final class ApplicationView extends Panel
{
	private static final long serialVersionUID = 1L;

	/**
	 * Constructor.
	 * 
	 * @param id
	 *            Component id
	 * @param application
	 *            The application to view
	 */
	public ApplicationView(final String id, final Application application)
	{
		super(id);

		// Basic attributes
		add(new Label("name", application.getName()));
		add(new Label("componentUseCheck", ""
				+ application.getDebugSettings().getComponentUseCheck()));
		add(new Label("compressWhitespace", ""
				+ application.getMarkupSettings().getCompressWhitespace()));
		add(new Label("stripComments", "" + application.getMarkupSettings().getStripComments()));
		add(new Label("stripWicketTags", "" + application.getMarkupSettings().getStripWicketTags()));
		add(new Label("bufferResponse", ""
				+ application.getRequestCycleSettings().getBufferResponse()));
		add(new Label("resourcePollFrequency", ""
				+ application.getResourceSettings().getResourcePollFrequency()));
		add(new Label("versionPages", "" + application.getPageSettings().getVersionPagesByDefault()));
		add(new Label("pageMapEvictionStrategy", ""
				+ application.getSessionSettings().getPageMapEvictionStrategy()));
	}
}

@@ -100,16 +100,17 @@
 eements.
+ 
  See the
@@ -142,16 +142,16 @@
 with
+%0A *
  this
-%0A *
  wor
@@ -213,16 +213,19 @@
 hip.
+%0A *
  The ASF
 %0A * 
@@ -220,19 +220,16 @@
  The ASF
-%0A *
  license
@@ -288,16 +288,16 @@
  2.0
+%0A *
  (the
-%0A *
  %22Li
@@ -356,16 +356,19 @@
 nce with
+%0A *
  the Lic
@@ -372,19 +372,17 @@
 License.
-%0A *
+ 
  You may
@@ -416,20 +416,24 @@
 se at%0A *
- 
 %0A *
+     
  http://
@@ -470,17 +470,16 @@
 E-2.0%0A *
- 
 %0A * Unle
@@ -614,16 +614,19 @@
 SIS,
+%0A *
  WITHOUT
 %0A * 
@@ -621,19 +621,16 @@
  WITHOUT
-%0A *
  WARRANT
@@ -686,24 +686,27 @@
 implied.
+%0A *
  See the
 %0A * Lice
@@ -697,19 +697,16 @@
  See the
-%0A *
  License
@@ -757,16 +757,19 @@
 ions and
+%0A *
  limitat
@@ -778,19 +778,16 @@
 ns under
-%0A *
  the Lic

Fix license