Package org.apache.cxf.annotations.SchemaValidation

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


     * @param reader
     * @see #setDataReaderValidation(Service, Message, DataReader)
     */
    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


     * @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

     * @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

     * @param reader
     * @see #setDataReaderValidation(Service, Message, DataReader)
     */
    protected 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

        }
    }
   
   
    protected boolean shouldValidate(Message m) {
        SchemaValidationType type = ServiceUtils.getSchemaValidationType(m);
        return type.equals(SchemaValidationType.BOTH) || type.equals(SchemaValidationType.OUT);
    }
View Full Code Here

    protected DataReader<Node> getNodeDataReader(Message message) {
        return getDataReader(message, Node.class);
    }

    private void setSchemaInMessage(Service service, Message message, DataReader<?> reader) {
        SchemaValidationType type = ServiceUtils.getSchemaValidationType(message);
        if (type.equals(SchemaValidationType.BOTH) || type.equals(SchemaValidationType.IN)) {
            //all serviceInfos have the same schemas
            Schema schema = EndpointReferenceUtils.getSchema(service.getServiceInfos().get(0),
                                                             message.getExchange().getBus());
            reader.setSchema(schema);
        }
View Full Code Here

     * @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

     * @param reader
     * @see #setDataReaderValidation(Service, Message, DataReader)
     */
    protected 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

     * @param reader
     * @see #setDataReaderValidation(Service, Message, DataReader)
     */
    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

     *
     * @param message
     * @param type
     */
    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

Related Classes of org.apache.cxf.annotations.SchemaValidation.SchemaValidationType

Copyright © 2018 www.massapicom. 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.