Codota Logo
GeoServerApplication.servletRequest
Code IndexAdd Codota to your IDE (free)

How to use
servletRequest
method
in
org.geoserver.web.GeoServerApplication

Best Java code snippets using org.geoserver.web.GeoServerApplication.servletRequest (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.geoserver.web/gs-web-core

/**
 * Convenience method to get the underlying servlet request backing the current wicket request.
 *
 * <p>The request is obtained from the current RequestCycle.
 */
public HttpServletRequest servletRequest() {
  RequestCycle cycle = RequestCycle.get();
  if (cycle == null) {
    throw new IllegalStateException("Method must be called from a wicket request thread");
  }
  return servletRequest(cycle.getRequest());
}
origin: org.geoserver.web/gs-web-demo

private String getBaseURL() {
  HttpServletRequest req = GeoServerApplication.get().servletRequest();
  return ResponseUtils.baseURL(req);
}
origin: org.geoserver.web/gs-web-wcs

  public Page createPage() {
    DemoRequest request = new DemoRequest(null);
    HttpServletRequest http = GeoServerApplication.get().servletRequest();
    String url =
        ResponseUtils.buildURL(
            ResponseUtils.baseURL(http),
            "ows",
            Collections.singletonMap("strict", "true"),
            URLType.SERVICE);
    request.setRequestUrl(url);
    request.setRequestBody((String) responseWindow.getDefaultModelObject());
    return new DemoRequestResponse(new Model(request));
  }
});
origin: org.geoserver.web/gs-web-wcs

  public Page createPage() {
    DemoRequest request = new DemoRequest(null);
    HttpServletRequest http =
        GeoServerApplication.get().servletRequest(getRequest());
    String url =
        ResponseUtils.buildURL(
            ResponseUtils.baseURL(http),
            "ows",
            Collections.singletonMap("strict", "true"),
            URLType.SERVICE);
    request.setRequestUrl(url);
    request.setRequestBody((String) responseWindow.getDefaultModelObject());
    return new DemoRequestResponse(new Model(request));
  }
});
origin: org.geoserver.web/gs-web-demo

        .servletRequest(DemoRequestsPage.this.getRequest());
proxyBaseUrl = GeoServerExtensions.getProperty("PROXY_BASE_URL");
if (StringUtils.isEmpty(proxyBaseUrl)) {
origin: org.geoserver.web/gs-web-wms

HttpServletRequest req = GeoServerApplication.get().servletRequest();
String base = ResponseUtils.baseURL(req);
String baseUrl = ResponseUtils.buildURL(base, "/", null, URLType.RESOURCE);
origin: org.geoserver.web/gs-web-demo

  @Override
  public void renderHead(Component component, IHeaderResponse response) {
    HttpServletRequest req =
        getGeoServerApplication().servletRequest(getRequest());
    String baseUrl = baseURL(req);
    response.render(
        new CssUrlReferenceHeaderItem(
            buildURL(
                baseUrl,
                "openlayers3/ol.css",
                null,
                URLMangler.URLType.RESOURCE),
            null,
            null));
    response.render(
        new JavaScriptUrlReferenceHeaderItem(
            buildURL(
                baseUrl,
                "openlayers3/ol.js",
                null,
                URLMangler.URLType.RESOURCE),
            null,
            false,
            "UTF-8",
            null));
  }
});
org.geoserver.webGeoServerApplicationservletRequest

Javadoc

Convenience method to get the underlying servlet request backing the current wicket request.

The request is obtained from the current RequestCycle.

Popular methods of GeoServerApplication

  • get
  • getCatalog
  • getGeoServer
    Returns the geoserver configuration instance.
  • getBeanOfType
    Loads a bean from the spring application context of a specific type.If there are multiple beans of t
  • getBeansOfType
    Loads beans from the spring application context of a specific type.
  • getSecurityManager
    Returns the security manager.
  • getApplicationContext
    Returns the spring application context.
  • getBean
    Loads a bean from the spring application context with a specific name.
  • getResourceLoader
    Returns the geoserver resource loader.
  • getDebugSettings
  • clearWicketCaches
    Clears all the wicket caches so that resources and localization files will be re-read
  • getApplicationSettings
  • clearWicketCaches,
  • getApplicationSettings,
  • getRequestCycleSettings,
  • getResourceSettings,
  • getSecuritySettings,
  • getConfigurationType,
  • getMarkupSettings,
  • getRequestCycleListeners,
  • getRootRequestMapper

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now