This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.w3c.readwriteweb.cache | |
import com.ning.http.client.AsyncHandler.STATE | |
import com.ning.http.client.AsyncHandler | |
import com.ning.http.client.AsyncHttpClient | |
import com.ning.http.client.HttpResponseBodyPart | |
import com.ning.http.client.HttpResponseHeaders | |
import com.ning.http.client.HttpResponseStatus | |
import com.ning.http.client.Response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2012 Henry Story (bblfish.net) | |
* under the MIT licence defined at | |
* http://www.opensource.org/licenses/mit-license.html | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in the | |
* Software without restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | |
* and to permit persons to whom the Software is furnished to do so, subject to the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2012 Henry Story (bblfish.net) | |
* under the MIT licence defined at | |
* http://www.opensource.org/licenses/mit-license.html | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in the | |
* Software without restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | |
* and to permit persons to whom the Software is furnished to do so, subject to the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.w3.rdf | |
import org.w3.algebraic._ | |
trait Module { | |
val xsdString = IRI("http://www.w3.org/2001/XMLSchema#string") | |
val rdfLangString = IRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString") | |
trait GraphInterface extends Iterable[Triple] { self => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.w3.rdf | |
import org.w3.algebraic._ | |
trait Module { | |
val xsdString = IRI("http://www.w3.org/2001/XMLSchema#string") | |
val rdfLangString = IRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString") | |
trait GraphInterface extends Iterable[Triple] { self => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.w3.rdf | |
import org.w3.algebraic._ | |
trait Module { | |
val xsdString = IRI("http://www.w3.org/2001/XMLSchema#string") | |
val rdfLangString = IRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString") | |
trait GraphInterface extends Iterable[Triple] { self => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2012 Henry Story | |
* under the Open Source MIT Licence http://www.opensource.org/licenses/MIT | |
*/ | |
package org.w3.rdf | |
import nomo._ | |
import nomo.Errors.{TreeError, Single} | |
import scala.collection.mutable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class AuthZ[A](act: Action[A])(implicit findGuard: RequestHeader => Guard) extends Action[A] { | |
def apply(req: Request): Result = { | |
val guard = findGuard(req) | |
if (guard.allow(guard.subject(req))) act(req) | |
else Results.Unauthorized | |
} | |
override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.w3.readwriteweb.play.auth | |
import play.api.mvc._ | |
import javax.security.auth.Subject | |
import java.security.Principal | |
import play.api.libs.concurrent.Promise | |
import java.security.cert.Certificate | |
/** |
OlderNewer