本文整理了Java中org.geoserver.ows.Request.isGet
方法的一些代码示例,展示了Request.isGet
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.isGet
方法的具体详情如下:
包路径:org.geoserver.ows.Request
类名称:Request
方法名:isGet
[英]True if the request is a GET one
[中]如果请求是GET one,则为True
代码示例来源:origin: geoserver/geoserver
if (!request.isGet()) { // && httpRequest.getInputStream().available() > 0) {
代码示例来源:origin: org.geoserver.csw/csw-core
@Override
public void encode(Object o) throws IllegalArgumentException {
AttributesImpl attributes = new AttributesImpl();
addAttribute(attributes, "xmlns:csw", CSW.NAMESPACE);
addAttribute(attributes, "xmlns:ows", OWS.NAMESPACE);
addAttribute(attributes, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
addAttribute(attributes, "xmlns:xlink", XLINK.NAMESPACE);
String locationAtt = "xsi:schemaLocation";
StringBuilder locationDef = new StringBuilder();
locationDef.append(CSW.NAMESPACE).append(" ");
locationDef.append(cswSchemaLocation("record.xsd"));
addAttribute(attributes, locationAtt, locationDef.toString());
addAttribute(attributes, "timeStamp", Converters.convert(new Date(), String.class));
start("csw:Acknowledgement", attributes);
start("csw:EchoedRequest");
Request request = Dispatcher.REQUEST.get();
if (request.isGet()) {
encodeGetEcho(request);
} else {
encodePostEcho();
}
end("csw:EchoedRequest");
end("csw:Acknowledgement");
}
代码示例来源:origin: org.geoserver.csw/gs-csw-core
@Override
public void encode(Object o) throws IllegalArgumentException {
AttributesImpl attributes = new AttributesImpl();
addAttribute(attributes, "xmlns:csw", CSW.NAMESPACE);
addAttribute(attributes, "xmlns:ows", OWS.NAMESPACE);
addAttribute(attributes, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
addAttribute(attributes, "xmlns:xlink", XLINK.NAMESPACE);
String locationAtt = "xsi:schemaLocation";
StringBuilder locationDef = new StringBuilder();
locationDef.append(CSW.NAMESPACE).append(" ");
locationDef.append(cswSchemaLocation("record.xsd"));
addAttribute(attributes, locationAtt, locationDef.toString());
addAttribute(attributes, "timeStamp", Converters.convert(new Date(), String.class));
start("csw:Acknowledgement", attributes);
start("csw:EchoedRequest");
Request request = Dispatcher.REQUEST.get();
if (request.isGet()) {
encodeGetEcho(request);
} else {
encodePostEcho();
}
end("csw:EchoedRequest");
end("csw:Acknowledgement");
}
代码示例来源:origin: org.geoserver/gs-wfs
if (request.isGet()) {
final HttpServletRequest httpRequest = request.getHttpRequest();
String baseUrl = ResponseUtils.baseURL(httpRequest);
代码示例来源:origin: org.geoserver/gs-wfs
if (req.isGet()) {
kvp = new KvpMap(req.getRawKvp());
} else {
内容来源于网络,如有侵权,请联系作者删除!