outputstrategyfactory.java
来自「电子地图服务器,搭建自己的地图服务」· Java 代码 · 共 36 行
JAVA
36 行
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, availible at the root
* application directory.
*/
package org.geoserver.ows;
import javax.servlet.http.HttpServletResponse;
/**
* Factory used to create an {@link ServiceStrategy} for a request.
* <p>
* An {@link ServiceStrategy} is used to provide different modes of writing
* output.
* </p>
* <p>
* Examples include a "safe mode", in which the entire response is buffered
* before being output, as to ensure no errors occur during the writing
* of a response. Another example may include a "speed mode" where data is
* written directly to the output with no buffering.
* </p>
* @author Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
*
*/
public interface OutputStrategyFactory {
/**
* Creates an output strategy for a response.
*
* @param response The response which contains the live output stream in
* which to write data to.
*
* @return An output strategy to write output to.
*/
ServiceStrategy createOutputStrategy(HttpServletResponse response);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?