congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OwsServiceResponse.getContentType
Code IndexAdd Tabnine to your IDE (free)

How to use
getContentType
method
in
org.n52.shetland.ogc.ows.service.OwsServiceResponse

Best Java code snippets using org.n52.shetland.ogc.ows.service.OwsServiceResponse.getContentType (Showing top 6 results out of 315)

origin: org.n52.shetland/shetland

public boolean isSetContentType() {
  return getContentType() != null;
}
origin: org.n52.arctic-sea/shetland

public boolean isSetContentType() {
  return getContentType() != null;
}
origin: org.n52.sensorweb.sos/statistics

private void init() {
  if (response.getContentType() != null) {
    put(ServiceEventDataMapping.SRESP_CONTENT_TYPE, response.getContentType().toString());
  }
}
origin: 52North/SOS

private void init() {
  if (response.getContentType() != null) {
    put(ServiceEventDataMapping.SRESP_CONTENT_TYPE, response.getContentType().toString());
  }
}
origin: org.n52.wps/iceland-stream

@Override
public void write(OwsServiceResponse t,
    OutputStream out,
    ResponseProxy responseProxy) throws IOException, EncodingException {
  StreamWriterKey key = new StreamWriterKey(t.getClass(), t.getContentType());
  StreamWriter<Object> writer = repository.getWriter(key).orElseThrow(() -> new NoEncoderForKeyException(key));
  writer.write(t, out);
}
origin: org.n52.iceland/iceland

  for (MediaType mt : acceptHeader) {
    MediaType mediaType = mt.withoutParameter(HTTP_MEDIA_TYPE_QUALITY_PARAM);
    if (response.getContentType().isCompatible(mediaType)) {
      return response.getContentType();
  return defaultContentType;
} else {
  MediaType mediaType = response.getContentType().withoutParameter(HTTP_MEDIA_TYPE_QUALITY_PARAM);
  if (hasEncoder(response, mediaType)) {
    return mediaType;
org.n52.shetland.ogc.ows.serviceOwsServiceResponsegetContentType

Popular methods of OwsServiceResponse

  • getService
  • getVersion
  • setService
  • setVersion
  • close
  • getExtensions
  • getOperationName
  • isSetContentType
  • setContentType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Top plugins for WebStorm
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