Examples of SchemaValidationType


Examples of org.apache.cxf.annotations.SchemaValidation.SchemaValidationType

     * @param message
     * @param reader
     */
    private void setOperationSchemaValidation(OperationInfo opInfo, Message message) {
        if (opInfo != null) {
            SchemaValidationType validationType =
                (SchemaValidationType) opInfo.getProperty(Message.SCHEMA_VALIDATION_ENABLED);
            if (validationType != null) {
                message.put(Message.SCHEMA_VALIDATION_ENABLED, validationType);
            }
        }
View Full Code Here

Examples of org.apache.cxf.annotations.SchemaValidation.SchemaValidationType

        initialise(client.getEndpoint());
    }
   
    private void initialise(Endpoint endpoint) {
        for (BindingOperationInfo bop : endpoint.getEndpointInfo().getBinding().getOperations()) {
            SchemaValidationType type = provider.getSchemaValidationType(bop.getOperationInfo());
            if (type != null) {
                bop.getOperationInfo().setProperty(Message.SCHEMA_VALIDATION_ENABLED, type);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.annotations.SchemaValidation.SchemaValidationType

     * @param message
     * @param type
     * @return
     */
    public static boolean isSchemaValidationEnabled(SchemaValidationType type, Message message) {
        SchemaValidationType messageType = getSchemaValidationType(message);
       
        return messageType.equals(type)
            || ((SchemaValidationType.IN.equals(type) || SchemaValidationType.OUT.equals(type))
                && SchemaValidationType.BOTH.equals(messageType));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.