Search in sources :

Example 1 with OperationRequestEncoderKey

use of org.n52.svalbard.encode.OperationRequestEncoderKey in project arctic-sea by 52North.

the class CodingHelper method xmlEncoderKeysForOperationAndMediaType.

public static Set<EncoderKey> xmlEncoderKeysForOperationAndMediaType(String service, String version, String... operations) {
    HashSet<EncoderKey> set = new HashSet<>(operations.length);
    for (String operation : operations) {
        set.add(new OperationRequestEncoderKey(service, version, operation, MediaTypes.TEXT_XML));
        set.add(new OperationRequestEncoderKey(service, version, operation, MediaTypes.APPLICATION_XML));
    }
    return set;
}
Also used : XmlDocumentEncoderKey(org.n52.svalbard.encode.XmlDocumentEncoderKey) EncoderKey(org.n52.svalbard.encode.EncoderKey) OperationRequestEncoderKey(org.n52.svalbard.encode.OperationRequestEncoderKey) XmlPropertyTypeEncoderKey(org.n52.svalbard.encode.XmlPropertyTypeEncoderKey) XmlEncoderKey(org.n52.svalbard.encode.XmlEncoderKey) OperationRequestEncoderKey(org.n52.svalbard.encode.OperationRequestEncoderKey) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 EncoderKey (org.n52.svalbard.encode.EncoderKey)1 OperationRequestEncoderKey (org.n52.svalbard.encode.OperationRequestEncoderKey)1 XmlDocumentEncoderKey (org.n52.svalbard.encode.XmlDocumentEncoderKey)1 XmlEncoderKey (org.n52.svalbard.encode.XmlEncoderKey)1 XmlPropertyTypeEncoderKey (org.n52.svalbard.encode.XmlPropertyTypeEncoderKey)1