本文整理了Java中org.geoserver.ows.Request.isSOAP
方法的一些代码示例,展示了Request.isSOAP
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.isSOAP
方法的具体详情如下:
包路径:org.geoserver.ows.Request
类名称:Request
方法名:isSOAP
[英]True if the request is a SOAP request.
[中]如果请求是SOAP请求,则为True。
代码示例来源:origin: geoserver/geoserver
if (request.isSOAP()
&& (handler instanceof OWS10ServiceExceptionHandler
|| handler instanceof OWS11ServiceExceptionHandler)) {
代码示例来源:origin: geoserver/geoserver
if (req.isSOAP()) {
req.getHttpResponse().setContentType(SOAP_MIME);
} else {
boolean abortResponse = true;
try {
if (req.isSOAP()) {
if (req.isSOAP() && result instanceof TransformerBase) {
((TransformerBase) result).setOmitXMLDeclaration(true);
if (req.isSOAP()) {
代码示例来源:origin: geoserver/geoserver
if (!request.isSOAP()) {
encoder.setIndentSize(2);
encoder.setLineWidth(60);
encoder.setOmitXMLDeclaration(request.isSOAP());
代码示例来源:origin: geoserver/geoserver
report.getException().add(e);
if (!request.isSOAP()) {
encoder.setIndentSize(2);
encoder.setLineWidth(60);
encoder.setOmitXMLDeclaration(request.isSOAP());
代码示例来源:origin: geoserver/geoserver
request.setOperation(operation);
if (request.isSOAP()) {
代码示例来源:origin: org.geoserver/gs-wfs
protected void write(
FeatureTypeInfo[] featureTypeInfos, OutputStream output, Operation describeFeatureType)
throws IOException {
// hack for SOAP request, when encoding as SOAP response the schema is actually required
// to be encoded in base64
if (Dispatcher.REQUEST.get() != null && Dispatcher.REQUEST.get().isSOAP()) {
output.write(
("<wfs:DescribeFeatureTypeResponse xmlns:wfs='" + getWFSNamespaceURI() + "'>")
.getBytes());
ByteArrayOutputStream bout = new ByteArrayOutputStream();
doWrite(featureTypeInfos, bout, describeFeatureType);
output.write(Base64.encodeBase64(bout.toByteArray()));
output.write("</wfs:DescribeFeatureTypeResponse>".getBytes());
} else {
// normal write
doWrite(featureTypeInfos, output, describeFeatureType);
}
}
代码示例来源:origin: org.geoserver/gs-wfs
@Override
public void write(Object value, OutputStream output, Operation operation)
throws IOException, ServiceException {
Encoder encoder = new Encoder(new WFSConfiguration());
encoder.setEncoding(Charset.forName(getInfo().getGeoServer().getSettings().getCharset()));
encoder.setOmitXMLDeclaration(Dispatcher.REQUEST.get().isSOAP());
String baseURL = (String) EMFUtils.get((EObject) operation.getParameters()[0], "baseUrl");
encoder.setSchemaLocation(WFS.NAMESPACE, buildSchemaURL(baseURL, "wfs/2.0/wfs.xsd"));
encode(encoder, value, output, operation);
}
代码示例来源:origin: org.geoserver/gs-wfs
Request dispatcherRequest = Dispatcher.REQUEST.get();
if (dispatcherRequest != null) {
encoder.setOmitXMLDeclaration(dispatcherRequest.isSOAP());
代码示例来源:origin: org.geoserver/gs-wcs2_0
if (!request.isSOAP()) {
encoder.setIndentSize(2);
encoder.setLineWidth(60);
encoder.setOmitXMLDeclaration(request.isSOAP());
内容来源于网络,如有侵权,请联系作者删除!