SupportedEncodings parseEncodings( DeegreeWFS jaxbConfig ) { SupportedRequests supportedRequests = jaxbConfig.getSupportedRequests(); if ( supportedRequests != null ) { if ( isAtLeastOneRequestTypeConfigured( supportedRequests ) || isGlobalSupportedEncodingsConfigured( supportedRequests ) ) return parseEncodings( supportedRequests ); } return new UnlimitedSupportedEncodings(); }
/** * Parse the supported request and encodings from DeegreeWMS configuration * * @param jaxbConfig * the DeegreeWMS configuration to parse the encoding from, never <code>null</code> * @return the parsed supported requests and encodings, never <code>null</code> */ public SupportedEncodings parseEncodings( DeegreeWMS jaxbConfig ) { SupportedRequests supportedRequests = jaxbConfig.getSupportedRequests(); if ( supportedRequests != null ) { if ( isAtLeastOneRequestTypeConfigured( supportedRequests ) || isGlobalSupportedEncodingsConfigured( supportedRequests ) ) return parseEncodings( supportedRequests ); } return new UnlimitedSupportedEncodings(); }