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

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

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

origin: geoserver/geoserver

/**
 * See if we have to add cache control headers. Won't alter them if the response already set
 * them.
 */
public String[][] getHeaders(Object value, Operation operation) throws ServiceException {
  String[][] headers = delegate.getHeaders(value, operation);
  if (headers == null) {
    // if no headers at all, add and exit
    return new String[][] {{HttpHeaders.CACHE_CONTROL, "max-age=0, must-revalidate"}};
  } else {
    // will add only if not already there
    Map<String, String> map = (Map) ArrayUtils.toMap(headers);
    map.putIfAbsent(HttpHeaders.CACHE_CONTROL, "max-age=0, must-revalidate");
    headers = new String[map.size()][2];
    int i = 0;
    for (Map.Entry<String, String> entry : map.entrySet()) {
      headers[i][0] = entry.getKey();
      headers[i][1] = entry.getValue();
      i++;
    }
  }
  return headers;
}
origin: geoserver/geoserver

String[][] headers = response.getHeaders(result, opDescriptor);
boolean contentDispositionProvided = false;
if (headers != null) {
origin: org.geoserver/gs-wfs

@Override
public String[][] getHeaders(Object value, Operation operation) throws ServiceException {
  return response.getHeaders(value, operation);
}
org.geoserver.owsResponsegetHeaders

Javadoc

Returns a 2xn array of Strings, each of which is an HTTP header pair to be set on the HTTP Response. Can return null if there are no headers to be set on the response.

Popular methods of Response

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

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm plugins
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