Codota Logo
RequestContext.getUserAgent
Code IndexAdd Codota to your IDE (free)

How to use
getUserAgent
method
in
org.deegree.services.controller.RequestContext

Best Java code snippets using org.deegree.services.controller.RequestContext.getUserAgent (Showing top 3 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: deegree/deegree3

@Override
protected void exportCapas( String getUrl, String postUrl, MapService service, HttpResponseBuffer response,
              ServiceIdentification identification, ServiceProvider provider,
              Map<String, String> customParameters, WMSController controller,
              OWSMetadataProvider metadata )
            throws IOException, OWSException {
  response.setContentType( "application/vnd.ogc.wms_xml" );
  String userAgent = OGCFrontController.getContext().getUserAgent();
  if ( userAgent != null && userAgent.toLowerCase().contains( "mozilla" ) ) {
    response.setContentType( "application/xml" );
  }
  response.addHeader( "Content-Disposition", "inline; filename=\"capabilities.xml\"" );
  try {
    XMLStreamWriter xmlWriter = response.getXMLWriter();
    new Capabilities111XMLAdapter( identification, provider, metadata, getUrl, postUrl, service, controller ).export( xmlWriter );
  } catch ( XMLStreamException e ) {
    throw new IOException( e );
  }
}
origin: deegree/deegree3

String userAgent = null;
if ( OGCFrontController.getContext() != null ) {
  userAgent = OGCFrontController.getContext().getUserAgent();
origin: deegree/deegree3

String userAgent = null;
if ( OGCFrontController.getContext() != null ) {
  userAgent = OGCFrontController.getContext().getUserAgent();
org.deegree.services.controllerRequestContextgetUserAgent

Popular methods of RequestContext

  • getResourcesUrl
    Returns the URL for contacting the ResourcesServlet instance via HTTP.
  • <init>
  • deriveWebappBaseUrl
  • getServiceUrl
    Returns the URL for contacting the OGCFrontController instance via HTTP (including OGC service insta
  • getServiceUrlWithPathInfo
  • getXForwardedHost
  • getXForwardedPort
  • getXForwardedProto

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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