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

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

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

origin: geoserver/geoserver

public RevalidateTagResponse(Response delegate) {
  super(delegate.getBinding());
  this.delegate = delegate;
}
origin: geoserver/geoserver

  public int compare(Object o1, Object o2) {
    Class c1 = ((Response) o1).getBinding();
    Class c2 = ((Response) o2).getBinding();
    if (c1.equals(c2)) {
      return 0;
    }
    if (c1.isAssignableFrom(c2)) {
      return 1;
    }
    return -1;
  }
});
origin: geoserver/geoserver

Response response = (Response) itr.next();
Class binding = response.getBinding();
Response r2 = (Response) responses.get(1);
if (r1.getBinding().equals(r2.getBinding())) {
  String msg =
      "Multiple responses: (" + result.getClass() + "): " + r1 + ", " + r2;
origin: org.geoserver/gs-wfs

public ResponseWrapper(Response response, String mimeType) {
  super(response.getBinding(), mimeType);
  this.response = response;
  this.mimeType = mimeType;
}
origin: org.geoserver/xslt

@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
  // find all the responses we could use as a source
  List<Response> all = GeoServerExtensions.extensions(Response.class, applicationContext);
  responses = new ArrayList<Response>();
  for (Response response : all) {
    if (response.getBinding().equals(FeatureCollectionResponse.class) && response != this) {
      responses.add(response);
    }
  }
}
origin: org.geoserver/gs-wms

  /**
   * @return {@code "text/xml"}
   * @see org.geoserver.ows.Response#getMimeType(java.lang.Object,
   *     org.geoserver.platform.Operation)
   */
  @Override
  public String getMimeType(final Object value, final Operation operation)
      throws ServiceException {

    if (value.getClass().isAssignableFrom(super.getBinding())) {
      return mime;
    }

    throw new IllegalArgumentException(
        value == null ? "null" : value.getClass().getName() + "/" + operation.getId());
  }
}
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);
}
origin: org.geoserver/gwc

final Class<?> webMapClass = metaTileMap.getClass();
for (Response r : extensions) {
  if (r.getBinding().isAssignableFrom(webMapClass) && r.canHandle(operation)) {
    synchronized (cachedTileEncoders) {
      cachedTileEncoders.put(mimeType, r);
origin: org.geoserver/gs-gwc

final Class<?> webMapClass = metaTileMap.getClass();
for (Response r : extensions) {
  if (r.getBinding().isAssignableFrom(webMapClass) && r.canHandle(operation)) {
    synchronized (cachedTileEncoders) {
      cachedTileEncoders.put(mimeType, r);
org.geoserver.owsResponsegetBinding

Popular methods of Response

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JLabel (javax.swing)
  • CodeWhisperer 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