All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wicket.jmx.RequestCycleSettings Maven / Gradle / Ivy

Go to download

Wicket Java Management Extensions for Wicket 1.x (will be part of the main distro from Wicket 2.0 on)

The newest version!
/*
 * ==============================================================================
 * 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.
 */
package wicket.jmx;


/**
 * Exposes Application related functionality for JMX.
 * 
 * @author eelcohillenius
 */
public class RequestCycleSettings implements RequestCycleSettingsMBean
{
	private final wicket.Application application;

	/**
	 * Create.
	 * 
	 * @param application
	 */
	public RequestCycleSettings(wicket.Application application)
	{
		this.application = application;
	}

	/**
	 * @see wicket.jmx.RequestCycleSettingsMBean#getBufferResponse()
	 */
	public boolean getBufferResponse()
	{
		return application.getRequestCycleSettings().getBufferResponse();
	}

	/**
	 * @see wicket.jmx.RequestCycleSettingsMBean#getGatherExtendedBrowserInfo()
	 */
	public boolean getGatherExtendedBrowserInfo()
	{
		return application.getRequestCycleSettings().getGatherExtendedBrowserInfo();
	}

	/**
	 * @see wicket.jmx.RequestCycleSettingsMBean#getResponseRequestEncoding()
	 */
	public String getResponseRequestEncoding()
	{
		return application.getRequestCycleSettings().getResponseRequestEncoding();
	}

	/**
	 * @see wicket.jmx.RequestCycleSettingsMBean#setBufferResponse(boolean)
	 */
	public void setBufferResponse(boolean bufferResponse)
	{
		application.getRequestCycleSettings().setBufferResponse(bufferResponse);
	}

	/**
	 * @see wicket.jmx.RequestCycleSettingsMBean#setGatherExtendedBrowserInfo(boolean)
	 */
	public void setGatherExtendedBrowserInfo(boolean gatherExtendedBrowserInfo)
	{
		application.getRequestCycleSettings().setGatherExtendedBrowserInfo(
				gatherExtendedBrowserInfo);
	}

	/**
	 * @see wicket.jmx.RequestCycleSettingsMBean#setResponseRequestEncoding(java.lang.String)
	 */
	public void setResponseRequestEncoding(String responseRequestEncoding)
	{
		application.getRequestCycleSettings().setResponseRequestEncoding(responseRequestEncoding);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy