Tabnine Logo
ExtensibleRequestType
Code IndexAdd Tabnine to your IDE (free)

How to use
ExtensibleRequestType
in
net.opengis.swes.x20

Best Java code snippets using net.opengis.swes.x20.ExtensibleRequestType (Showing top 11 results out of 315)

origin: org.n52.svalbard/svalbard-xmlbeans

protected SwesExtensions parseExtensibleRequest(ExtensibleRequestType extensibleRequestType)
    throws DecodingException {
  return parseExtensibleRequestExtension(extensibleRequestType.getExtensionArray());
}
origin: org.n52.sensorweb.sos/test-suite-sos-20

protected void addServiceParameter(
    ExtensibleRequestType extensibleRequestType) {
  extensibleRequestType.setService(SERVICE);
}
origin: org.n52.sensorweb.sos/test-suite-sos-20

protected void addVersionParameter(
    ExtensibleRequestType extensibleRequestType) {
  extensibleRequestType.setVersion(VERSION);
}
origin: org.n52.sensorweb/52n-xml-swes-v20

/**
 * Sets the "ExtensibleRequest" element
 */
public void setExtensibleRequest(net.opengis.swes.x20.ExtensibleRequestType extensibleRequest)
{
  synchronized (monitor())
  {
    check_orphaned();
    net.opengis.swes.x20.ExtensibleRequestType target = null;
    target = (net.opengis.swes.x20.ExtensibleRequestType)get_store().find_element_user(EXTENSIBLEREQUEST$1, 0);
    if (target == null)
    {
      target = (net.opengis.swes.x20.ExtensibleRequestType)get_store().add_element_user(EXTENSIBLEREQUEST$0);
    }
    target.set(extensibleRequest);
  }
}

origin: org.n52.svalbard/svalbard-xmlbeans

default void addExtension(ExtensibleRequestType ert, OwsServiceRequest request) throws EncodingException {
  for (Extension<?> extension : request.getExtensions().getExtensions()) {
    ert.addNewExtension().set(encodeObjectToXml(extension.getNamespace(), extension));
  }
}
origin: org.n52.sensorweb/52n-xml-swes-v20

/**
 * Sets the "ExtensibleRequest" element
 */
public void setExtensibleRequest(net.opengis.swes.x20.ExtensibleRequestType extensibleRequest)
{
  synchronized (monitor())
  {
    check_orphaned();
    net.opengis.swes.x20.ExtensibleRequestType target = null;
    target = (net.opengis.swes.x20.ExtensibleRequestType)get_store().find_element_user(EXTENSIBLEREQUEST$1, 0);
    if (target == null)
    {
      target = (net.opengis.swes.x20.ExtensibleRequestType)get_store().add_element_user(EXTENSIBLEREQUEST$0);
    }
    target.set(extensibleRequest);
  }
}

origin: org.n52.svalbard/svalbard-xmlbeans

default void addService(ExtensibleRequestType ert, OwsServiceRequest request) {
  if (request.isSetService()) {
    ert.setService(request.getService());
  } else {
    ert.setService(SosConstants.SOS);
  }
}
origin: org.n52.sensorweb/52n-sps-core

@Override
protected void checkSupportingSwesRequestExtensions(ExtensibleRequestType extensibleRequest) throws OwsExceptionReport {
  XmlObject[] extensionArray = extensibleRequest.getExtensionArray();
  if (extensionArray != null && extensionArray.length > 0) {
    // operator does not support any extension
    OwsExceptionReport owsExceptionReport = new OwsExceptionReport();
    owsExceptionReport.addOwsException(new RequestExtensionNotSupportedException());
    throw owsExceptionReport;
  }
}
origin: org.n52.svalbard/svalbard-xmlbeans

default void addVersion(ExtensibleRequestType ert, OwsServiceRequest request) {
  if (request.isSetVersion()) {
    ert.setVersion(request.getVersion());
  } else {
    ert.setVersion(Sos2Constants.SERVICEVERSION);
  }
}
origin: org.n52.sensorweb.sos/test-suite-sos-20

public void emptyServiceParameter(ExtensibleRequestType req,
                 XmlObject xmlDocument) {
  req.setService("");
  Response res = soap(xmlDocument);
  getErrors().checkThat(res.getStatus(), is(400));
  getErrors()
      .checkThat(res.asNode(), is(missingServiceParameterValueExceptionFault()));
}
origin: org.n52.sensorweb.sos/test-suite-sos-20

public void invalidServiceParameter(ExtensibleRequestType req,
                  XmlObject xmlDocument) {
  req.setService("INVALID");
  Response res = soap(xmlDocument);
  getErrors().checkThat(res.getStatus(), is(400));
  getErrors()
      .checkThat(res.asNode(), is(invalidServiceParameterValueExceptionFault("INVALID")));
}
net.opengis.swes.x20ExtensibleRequestType

Javadoc

An XML ExtensibleRequestType(@http://www.opengis.net/swes/2.0). This is a complex type.

Most used methods

  • getExtensionArray
    Gets ith "extension" element
  • setService
    Sets the "service" attribute
  • setVersion
    Sets the "version" attribute
  • addNewExtension
    Appends and returns a new empty value (as xml) as the last "extension" element
  • set

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Reference (javax.naming)
  • From CI to AI: The AI layer in your organization
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