Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
3scale integration plugin for Java applications. 3scale is an API Infrastructure service which handles API Keys, Rate Limiting, Analytics, Billing Payments and Developer Management. Includes a configurable API dashboard and developer portal CMS. More product stuff at http://www.3scale.net/, support information at http://support.3scale.net/.
Java HTML

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
dist
etc
lib
src
.classpath
.gitignore
.project
LICENCE
README.md
ReleaseNotes.txt
Threescale_api.iml
build.xml
pom.xml
threescale-api-2.0.2.tar.gz
threescale_api.ipr

README.md

Please see the embedded documentation in dist/docs.

Copyright (c) 2008-2011 3scale networks S.L., released under the MIT license.

V2.0.3 Introduced a new Servlet Filter, AuthorizeServletFilter. This performs the 3Scale authorize call to the server and if successful the next AuthorizeResponse is placed in the session data and the next filter in the chain is called.

To configure the filter use:

To configure ServletFilter

<context-param>
    <param-name>3scale.provider_private_key</param-name>
    <param-value>abc-e313daaa98cfd7bb6bc4c906fe233c4b</param-value>
</context-param>
<filter>
    <filter-name>Api Filter</filter-name>
    <filter-class>net.threescale.api.v2.ApiFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>Api Filter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

To test

for f in {1..2}; do curl -H"X-App-Id: a07cc69b" -H"X-App-Key: a424d9790800b149948dd4b7a0c61d41" \
-H"X-App-Rate: 10" -I "http://localhost:8083/v2/videos.json"; done
Something went wrong with that request. Please try again.