@Override protected Version getServiceVersion() { return new Version( 1, 1, 1 ); }
@Override protected Version getServiceVersion() { return new Version( 1, 3, 0 ); }
public GetRecordsResponse getRecords( int startPosition, int maxRecords, String outputFormat, String outputSchema, List<QName> typeNames, ResultType resultType, ReturnableElement elementSetName, Filter constraint ) throws IOException, XMLProcessingException, OWSExceptionReport, XMLStreamException { GetRecords getRecords = new GetRecords( new Version( 2, 0, 2 ), startPosition, maxRecords, outputFormat, outputSchema, typeNames, resultType, elementSetName, constraint ); return getRecords( getRecords ); }
public GetRecordsResponse getIsoRecords( ResultType resultType, ReturnableElement elementSetName, Filter constraint ) throws IOException, XMLProcessingException, OWSExceptionReport, XMLStreamException { GetRecords getRecords = new GetRecords( new Version( 2, 0, 2 ), 10, 15, "application/xml", "http://www.isotc211.org/2005/gmd", Collections.singletonList( new QName( CommonNamespaces.ISOAP10GMDNS, "MD_Metadata", CommonNamespaces.ISOAP10GMD_PREFIX ) ), ResultType.results, ReturnableElement.full, null ); return this.getRecords( getRecords ); }
public GetRecordsResponse getIsoRecords( int startPosition, int maxRecords, Filter constraint ) throws XMLProcessingException, IOException, OWSExceptionReport, XMLStreamException { GetRecords getRecords = new GetRecords( new Version( 2, 0, 2 ), startPosition, maxRecords, "application/xml", "http://www.isotc211.org/2005/gmd", Collections.singletonList( new QName(CommonNamespaces.ISOAP10GMDNS, "MD_Metadata", CommonNamespaces.ISOAP10GMD_PREFIX ) ), ResultType.results, ReturnableElement.full, constraint ); return this.getRecords( getRecords ); }
public GetRecordsResponse getIsoRecords( int startPosition, int maxRecords, ResultType resultType, ReturnableElement elementSetName, Filter constraint ) throws IOException, XMLProcessingException, OWSExceptionReport, XMLStreamException { GetRecords getRecords = new GetRecords( new Version( 2, 0, 2 ), startPosition, maxRecords, "application/xml", "http://www.isotc211.org/2005/gmd", Collections.singletonList( new QName( CommonNamespaces.ISOAP10GMDNS, "MD_Metadata", CommonNamespaces.ISOAP10GMD_PREFIX ) ), ResultType.results, ReturnableElement.full, null ); return this.getRecords( getRecords ); }
throw new InvalidParameterValueException( msg ); return new Version( x, y, z );
boolean all = sections.isEmpty() || sections.contains( "All" ); if ( all || sections.contains( "ServiceIdentification" ) ) { versions.add( new Version( 0, 4, 0 ) ); if ( serviceID != null ) { exportServiceIdentification110( writer, serviceID, "WPVS", versions );
if ( version.compareTo( new Version( 1, 1, 0 ) ) != 0 ) { throw new IllegalArgumentException( "Only WFS-GetGmlObject 1.1.0 serialization is supported by this encoder" );
public String getMetadataURLTemplate() { // TODO handle this properly in init(), needs service level dependency management if ( metadataURLTemplate == null ) { OwsManager mgr = workspace.getResourceManager( OwsManager.class ); Map<String, List<OWS>> ctrls = mgr.getAll(); for ( List<OWS> lists : ctrls.values() ) { for ( OWS o : lists ) { ImplementationMetadata<?> md = ( (OWSProvider) o.getMetadata().getProvider() ).getImplementationMetadata(); for ( String s : md.getImplementedServiceName() ) { if ( s.equalsIgnoreCase( "csw" ) && md.getImplementedVersions().contains( new Version( 2, 0, 2 ) ) ) { this.metadataURLTemplate = ""; // special case to use requested address } } } } } return metadataURLTemplate; }
if ( versionConstraintUpdate.equals( new Version( 1, 1, 0 ) ) ) { constraintUpdate = Filter110XMLDecoder.parse( xmlStream ); } else if ( versionConstraintUpdate.equals( new Version( 1, 0, 0 ) ) ) { constraintUpdate = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraintUpdate, Version.getVersionsString( new Version( 1, 1, 0 ) ), Version.getVersionsString( new Version( 1, 0, 0 ) ) ); LOG.info( msg ); throw new InvalidParameterValueException( msg );
Version version = new Version( 2, 0, 2 );
if ( versionConstraint.equals( new Version( 1, 1, 0 ) ) ) { } else if ( versionConstraint.equals( new Version( 1, 0, 0 ) ) ) { constraint = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraint, Version.getVersionsString( new Version( 1, 1, 0 ) ), Version.getVersionsString( new Version( 1, 0, 0 ) ) ); LOG.info( msg ); throw new InvalidParameterValueException( msg );
if ( version.compareTo( new Version( 1, 1, 0 ) ) != 0 ) { throw new IllegalArgumentException( "Only WFS-GetFeature 1.1.0 serialization is supported by this encoder" );
LOG.warn( "Service versions name may not be null, wrong call to exportServiceIdentification110, setting to unknown" ); versions = new ArrayList<Version>(); versions.add( new Version( 1, 0, 0 ) );
LOG.warn( "Service versions name may not be null, wrong call to exportServiceIdentification110, setting to unknown" ); versions = new ArrayList<Version>(); versions.add( new Version( 1, 0, 0 ) );
if ( versionConstraint.equals( new Version( 1, 1, 0 ) ) ) { } else if ( versionConstraint.equals( new Version( 1, 0, 0 ) ) ) { constraint = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraint, Version.getVersionsString( new Version( 1, 1, 0 ) ), Version.getVersionsString( new Version( 1, 0, 0 ) ) ); LOG.info( msg ); throw new InvalidParameterValueException( msg );
if ( versionConstraint.equals( new Version( 1, 1, 0 ) ) ) { } else if ( versionConstraint.equals( new Version( 1, 0, 0 ) ) ) { constraintDelete = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraint, Version.getVersionsString( new Version( 1, 1, 0 ) ), Version.getVersionsString( new Version( 1, 0, 0 ) ) ); LOG.info( msg ); throw new InvalidParameterValueException( msg ); return new Transaction( new Version( 2, 0, 2 ), operations, requestId, verboseRequest );
Version negotiatedVersion = null; if ( getCapabilitiesRequest.getAcceptVersions() == null ) { negotiatedVersion = new Version( 2, 0, 2 ); } else { negotiatedVersion = negotiateVersion( getCapabilitiesRequest );