Package | Description |
---|---|
org.astrogrid.samp.web |
Classes relating to the SAMP Web Profile.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
SwingOriginAuthorizer
OriginAuthorizer which uses a popup dialogue to ask the user.
|
Modifier and Type | Field and Description |
---|---|
private OriginAuthorizer |
CorsHttpServer.authorizer_ |
private OriginAuthorizer |
OpenPolicyResourceHandler.authorizer_ |
static OriginAuthorizer |
OriginAuthorizers.FALSE
OriginAuthorizer which always denies access.
|
private OriginAuthorizer |
WebHubProfile.ServerFactory.oAuth_ |
static OriginAuthorizer |
OriginAuthorizers.SWING
OriginAuthorizer which queries the user via a popup dialogue.
|
static OriginAuthorizer |
OriginAuthorizers.TRUE
OriginAuthorizer which always permits access.
|
Modifier and Type | Method and Description |
---|---|
static OriginAuthorizer |
OriginAuthorizers.createFixedOriginAuthorizer(boolean individualPolicy,
boolean generalPolicy)
Returns an OriginAuthorizer with fixed responses, regardless of input.
|
static OriginAuthorizer |
OriginAuthorizers.createLoggingOriginAuthorizer(OriginAuthorizer auth,
java.util.logging.Level acceptLevel,
java.util.logging.Level refuseLevel)
Returns an OriginAuthorizer based on an existing one which logs
responses.
|
static OriginAuthorizer |
OriginAuthorizers.createMemoryOriginAuthorizer(OriginAuthorizer auth)
Returns an OriginAuthorizer based on an existing one which caches
responses.
|
OriginAuthorizer |
WebHubProfile.ServerFactory.getOriginAuthorizer()
Returns the authorization policy for external origins.
|
Modifier and Type | Method and Description |
---|---|
static HttpServer.Handler |
OpenPolicyResourceHandler.createFlashPolicyHandler(OriginAuthorizer oAuth)
Returns a handler which can serve the /crossdomain.xml file
used by Adobe Flash.
|
static OriginAuthorizer |
OriginAuthorizers.createLoggingOriginAuthorizer(OriginAuthorizer auth,
java.util.logging.Level acceptLevel,
java.util.logging.Level refuseLevel)
Returns an OriginAuthorizer based on an existing one which logs
responses.
|
static OriginAuthorizer |
OriginAuthorizers.createMemoryOriginAuthorizer(OriginAuthorizer auth)
Returns an OriginAuthorizer based on an existing one which caches
responses.
|
static HttpServer.Handler |
OpenPolicyResourceHandler.createPolicyHandler(java.lang.String path,
java.net.URL contentUrl,
java.lang.String contentType,
OriginAuthorizer oAuth)
Creates a handler suitable for serving static cross-origin policy files.
|
static HttpServer.Handler |
OpenPolicyResourceHandler.createSilverlightPolicyHandler(OriginAuthorizer oAuth)
Returns a handler which can serve the /clientaccesspolicy.xml file
used by Microsoft Silverlight.
|
void |
WebHubProfile.ServerFactory.setOriginAuthorizer(OriginAuthorizer oAuth)
Sets the authorization policy for external origins.
|
Constructor and Description |
---|
CorsHttpServer(java.net.ServerSocket socket,
OriginAuthorizer authorizer)
Constructor.
|
LoggingCorsHttpServer(java.net.ServerSocket socket,
OriginAuthorizer auth,
java.io.PrintStream out)
Constructor.
|
OpenPolicyResourceHandler(java.lang.String policyPath,
ServerResource policyResource,
OriginAuthorizer authorizer)
Constructor.
|