Examples of URIReference


Examples of javax.xml.crypto.URIReference

     * @return
     */
    protected static SecurityToken resolveToken(final String uri, XMLCryptoContext context) throws URIReferenceException, XWSSecurityException{
       
        URIDereferencer resolver = context.getURIDereferencer();
        URIReference uriRef = new URIReference(){
           
            public String getURI(){
                return uri;
            }
           
View Full Code Here

Examples of javax.xml.crypto.URIReference

    protected static SecurityHeaderElement resolveToken(final String uri, XMLCryptoContext context) throws
            URIReferenceException, XWSSecurityException {
        URIDereferencer resolver = context.getURIDereferencer();

        URIReference uriRef = new URIReference() {

            public String getURI() {
                return uri;
            }
View Full Code Here

Examples of javax.xml.crypto.URIReference

            uri = strId;
        }else {
            uri = "";
        }
       
        URIReference ref = new URIReference() {
            public String getType() {
                return "";
            }
            public String getURI() {
                return uri;
View Full Code Here

Examples of javax.xml.crypto.URIReference

    }
   
    private static Data getData(Reference reference,DOMValidateContext context) throws Exception{
       
        final String uri = reference.getURI();
        URIReference uriRef = new URIReference(){
            public String getURI(){
                return uri;
            }
           
            public String getType(){
View Full Code Here

Examples of net.fortytwo.twitlogic.model.URIReference

        if (l.startsWith("a ") | l.startsWith("an ")) {
            String rest = normed.substring(normed.indexOf(" ") + 1);

            if (TweetSyntax.HASHTAG_PATTERN.matcher(rest).matches()) {
                try {
                    context.handleCompletedTriple(new URIReference(RDF.TYPE), new Hashtag(rest.substring(1)));
                } catch (HandlerException e) {
                    throw new MatcherException(e);
                }
            } else {
                String rl = rest.toLowerCase();
View Full Code Here

Examples of net.fortytwo.twitlogic.model.URIReference

    }

    private void produceGender(final Gender gender,
                               final AfterthoughtContext context) throws MatcherException {
        try {
            context.handleCompletedTriple(new URIReference(FOAF.GENDER),
                    new PlainLiteral(gender.toString()));
        } catch (HandlerException e) {
            throw new MatcherException(e);
        }
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.model.URIReference

    public void matchNormalized(final String normed,
                                final AfterthoughtContext context) throws MatcherException {
        if (normed.equals("+1")) {
            Triple t = new Triple(
                    context.thisPerson(),
                    new URIReference(FOAF.INTEREST),
                    context.getSubject());

            try {
                context.handle(t);
            } catch (HandlerException e) {
View Full Code Here

Examples of net.fortytwo.twitlogic.model.URIReference

        Resource object = c.getObject();
        // Note: anything after the object is ignored

        if (predicateMatches(predicate)) {
            try {
                context.handleCompletedTriple(new URIReference(getPropertyURI()), object);
            } catch (HandlerException e) {
                throw new MatcherException(e);
            }
        }
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.model.URIReference

    // TODO: redirection resolution
    private TokenizedObjectPropertyClause forUrlObject(final String normed) {
        ThreeParts t = divide(normed, TweetSyntax.URL_PATTERN);
        return null == t
                ? null
                : new TokenizedObjectPropertyClause(t.first, new URIReference(t.second), t.third);
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.model.URIReference

       
        if (2 == a.length && 0 == a[0].length()) {
            String v = a[1].trim();
            if (0 < v.length()) {
                try {
                    context.handleCompletedTriple(new URIReference(propertyURI()),
                            new PlainLiteral(v));
                } catch (HandlerException e) {
                    throw new MatcherException(e);
                }
            }
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.