@Test(expected = MissingParameterValueException.class) public void testMissingServiceInGetCapabilitiesRequest() throws XmlException, IOException, OwsException { XmlObject getCapabilities = getRequest(REQUEST_GET_CAPABILITIES_MISSING_SERVICE); validatingDelegate.assureCorrectServiceAndVersionRequestParameters(getCapabilities); }
protected void assureCorrectServiceAndVersionRequestParameters(XmlObject request) throws OwsException { if (!isGetCapabilitiesRequest(request)) { validateRequiredServiceParameter(request); validateRequiredVersionParameter(request); } else { service.validateGetCapabilitiesParameters((GetCapabilitiesDocument) request); } }
XmlValidationDelegate implements RequestDelegationHandler { protected void assureCorrectServiceAndVersionRequestParameters(XmlObject request) throws OwsException { if (!isGetCapabilitiesRequest(request)) { validateRequiredServiceParameter(request); validateRequiredVersionParameter(request); } else { service.validateGetCapabilitiesParameters((GetCapabilitiesDocument) request); } } }
XmlValidationDelegate implements RequestDelegationHandler { protected void assureCorrectServiceAndVersionRequestParameters(XmlObject request) throws OwsException { if (!isGetCapabilitiesRequest(request)) { validateRequiredServiceParameter(request); validateRequiredVersionParameter(request); } else { service.validateGetCapabilitiesParameters((GetCapabilitiesDocument) request); } } XmlValidationDelegate(XmlDelegate toDecorate); }
XmlValidationDelegate implements RequestDelegationHandler { protected void assureCorrectServiceAndVersionRequestParameters(XmlObject request) throws OwsException { if (!isGetCapabilitiesRequest(request)) { validateRequiredServiceParameter(request); validateRequiredVersionParameter(request); } else { service.validateGetCapabilitiesParameters((GetCapabilitiesDocument) request); } } XmlValidationDelegate(XmlDelegate toDecorate); XmlObject delegate(); }
XmlValidationDelegate implements RequestDelegationHandler { protected void assureCorrectServiceAndVersionRequestParameters(XmlObject request) throws OwsException { if (!isGetCapabilitiesRequest(request)) { validateRequiredServiceParameter(request); validateRequiredVersionParameter(request); } else { service.validateGetCapabilitiesParameters((GetCapabilitiesDocument) request); } } XmlValidationDelegate(XmlDelegate toDecorate); XmlObject delegate();  }