protected SwesExtensions parseExtensibleRequest(ExtensibleRequestType extensibleRequestType) throws DecodingException { return parseExtensibleRequestExtension(extensibleRequestType.getExtensionArray()); }
protected void addServiceParameter( ExtensibleRequestType extensibleRequestType) { extensibleRequestType.setService(SERVICE); }
protected void addVersionParameter( ExtensibleRequestType extensibleRequestType) { extensibleRequestType.setVersion(VERSION); }
/** * 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); } }
default void addExtension(ExtensibleRequestType ert, OwsServiceRequest request) throws EncodingException { for (Extension<?> extension : request.getExtensions().getExtensions()) { ert.addNewExtension().set(encodeObjectToXml(extension.getNamespace(), extension)); } }
/** * 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); } }
default void addService(ExtensibleRequestType ert, OwsServiceRequest request) { if (request.isSetService()) { ert.setService(request.getService()); } else { ert.setService(SosConstants.SOS); } }
@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; } }
default void addVersion(ExtensibleRequestType ert, OwsServiceRequest request) { if (request.isSetVersion()) { ert.setVersion(request.getVersion()); } else { ert.setVersion(Sos2Constants.SERVICEVERSION); } }
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())); }
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"))); }