|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.astrogrid.samp.web.OpenPolicyResourceHandler
public class OpenPolicyResourceHandler
HTTP resource handler suitable for serving static cross-origin policy files.
| Constructor Summary | |
|---|---|
OpenPolicyResourceHandler(String policyPath,
ServerResource policyResource,
OriginAuthorizer authorizer)
Constructor. |
|
| Method Summary | |
|---|---|
static HttpServer.Handler |
createFlashPolicyHandler(OriginAuthorizer oAuth)
Returns a handler which can serve the /crossdomain.xml file used by Adobe Flash. |
static HttpServer.Handler |
createPolicyHandler(String path,
URL contentUrl,
String contentType,
OriginAuthorizer oAuth)
Creates a handler suitable for serving static cross-origin policy files. |
static HttpServer.Handler |
createSilverlightPolicyHandler(OriginAuthorizer oAuth)
Returns a handler which can serve the /clientaccesspolicy.xml file used by Microsoft Silverlight. |
HttpServer.Response |
serveRequest(HttpServer.Request request)
Provides a response to an HTTP request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenPolicyResourceHandler(String policyPath,
ServerResource policyResource,
OriginAuthorizer authorizer)
policyPath - path at which the policy file will reside on
this handler's serverpolicyResource - content of policy fileauthorizer - controls who is permitted to view the policy file| Method Detail |
|---|
public HttpServer.Response serveRequest(HttpServer.Request request)
HttpServer.Handler
serveRequest in interface HttpServer.Handlerrequest - HTTP request
public static HttpServer.Handler createPolicyHandler(String path,
URL contentUrl,
String contentType,
OriginAuthorizer oAuth)
throws IOException
path - path at which the policy file will reside on the
handler's HTTP servercontentUrl - external URL at which the resource contents
can be found; this will be retrieved once and
cachedoAuth - controls who is permitted to retrieve the policy file
IOException
public static HttpServer.Handler createFlashPolicyHandler(OriginAuthorizer oAuth)
throws IOException
oAuth - controls who is permitted to retrieve the policy file
IOException
public static HttpServer.Handler createSilverlightPolicyHandler(OriginAuthorizer oAuth)
throws IOException
oAuth - controls who is permitted to retrieve the policy file
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||