Package org.apache.muse.ws.resource.ext.faults

Examples of org.apache.muse.ws.resource.ext.faults.InvalidMessageFormatFault


        //       
        QName qname = WsrpConstants.PROPERTY_QNAME;
        Element[] properties = XmlUtils.getElements(request, qname);
       
        if (properties.length == 0)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoPropertiesInGet"));
       
        _qnames = new QName[properties.length];
       
        for (int n = 0; n < properties.length; ++n)
        {
            _qnames[n] = XmlUtils.getQName(properties[n]);
           
            if (_qnames[n] == null)
            {
                Object[] filler = { new Integer(n) };
                throw new InvalidMessageFormatFault(_MESSAGES.get("NullPropertyN", filler));
            }
        }
    }
View Full Code Here


       
        Element expression =
            XmlUtils.getElement(request, WsrpConstants.QUERY_EXPRESSION_QNAME);
       
        if (expression == null)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoQueryExpressionFound"));
       
        _dialect = expression.getAttribute(WsrpConstants.DIALECT);
       
        if (_dialect == null || _dialect.length() == 0)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoDialectFound"));
       
        _query = XmlUtils.extractText(expression);
       
        if (_query == null)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoQueryFound"));
    }
View Full Code Here

            throw new NullPointerException(_MESSAGES.get("NullRequestElement"));
       
        _qname = XmlUtils.getQName(request);
       
        if (_qname == null)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NullGetProperty"));
    }
View Full Code Here

        //
       
        String timeString = xml.getAttribute(MuwsConstants.TIME);
       
        if (timeString == null || timeString.length() == 0)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoTransitionTime"));
       
        try
        {
            _transitionTime = XsdUtils.getLocalTime(timeString);
        }
       
        catch (ParseException error)
        {
            throw new InvalidMessageFormatFault(error);
        }
       
        //
        // now grab the two state values - the "previous" one is optional
        //
       
        Element previousXML = XmlUtils.getElement(xml, MuwsConstants.PREVIOUS_QNAME);
       
        if (previousXML != null)
            _previous = new SimpleStateType(previousXML);
       
        Element enteredXML = XmlUtils.getElement(xml, MuwsConstants.ENTERED_QNAME);

        if (enteredXML == null)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoEnteredState"));
       
        _entered = new SimpleStateType(enteredXML);
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.ext.faults.InvalidMessageFormatFault

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.