Tabnine Logo
Response.getOutputFormats
Code IndexAdd Tabnine to your IDE (free)

How to use
getOutputFormats
method
in
org.geoserver.ows.Response

Best Java code snippets using org.geoserver.ows.Response.getOutputFormats (Showing top 4 results out of 315)

origin: geoserver/geoserver

Set outputFormats = response.getOutputFormats();
origin: org.geoserver/wfsv

public VersionedXmlSchemaEncoder(XmlSchemaEncoder delegate) {
  super(VersionedDescribeResults.class, delegate.getOutputFormats());
  this.delegate = delegate;
}
origin: org.geoserver/xslt

private Response findSourceResponse(Operation sourceOperation, TransformInfo info) {
  for (Response r : responses) {
    if (r.getOutputFormats().contains(info.getSourceFormat())
        && r.canHandle(sourceOperation)) {
      return r;
    }
  }
  return null;
}
origin: org.geoserver.community/gs-wfs3

/**
 * Returns a selection of supported formats for a given response object
 *
 * <p>TODO: this should be moved in a more central place, as it's of general utility (maybe the
 * filtering part could be made customizable via a lambda)
 *
 * @return A list of MIME types
 */
public static List<String> getAvailableFormats(Class responseType) {
  Set<String> formatNames = new LinkedHashSet<>();
  Collection responses = GeoServerExtensions.extensions(Response.class);
  for (Iterator i = responses.iterator(); i.hasNext(); ) {
    Response format = (Response) i.next();
    if (!responseType.isAssignableFrom(format.getBinding())) {
      continue;
    }
    // TODO: get better collaboration from content
    Set<String> formats = format.getOutputFormats();
    if (formats.isEmpty()) {
      continue;
    }
    // try to get a MIME type, otherwise pick the first available
    formats.stream().filter(f -> f.contains("/")).forEach(f -> formatNames.add(f));
  }
  return new ArrayList<>(formatNames);
}
org.geoserver.owsResponsegetOutputFormats

Popular methods of Response

  • getBinding
  • canHandle
  • getMimeType
  • write
  • getAttachmentFileName
  • getCharset
  • getHeaders
  • getPreferredDisposition

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • putExtra (Intent)
  • startActivity (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now