Package org.faceless.publisher.type
Class OAuth2AuthenticationURLConnectionProcessor
java.lang.Object
org.faceless.publisher.type.AbstractURLConnectionProcessor
org.faceless.publisher.type.OAuth2AuthenticationURLConnectionProcessor
- All Implemented Interfaces:
URLConnectionProcessor
A wrapper around the
OAuth2
object which allows it to be used as part of
the resource loading process - i.e. it allows HTML, stylesheets, images etc. protected
by OAuth2 authorization to be loaded like any other resource-
Constructor Summary
ConstructorDescriptionCreate an OAuth2AuthenticationURLConnectionProcessor -
Method Summary
Modifier and TypeMethodDescriptionvoid
before
(URL2Connection con) If this processermatches
, this method is called before the supplied URL connection is made.Methods inherited from class org.faceless.publisher.type.AbstractURLConnectionProcessor
after, getMatches, matches
-
Constructor Details
-
OAuth2AuthenticationURLConnectionProcessor
Create an OAuth2AuthenticationURLConnectionProcessor- Parameters:
oauth2
- the OAuth2 object containing the authorization details
-
-
Method Details
-
before
Description copied from interface:URLConnectionProcessor
If this processermatches
, this method is called before the supplied URL connection is made. It can alter any request headers.- Specified by:
before
in interfaceURLConnectionProcessor
- Overrides:
before
in classAbstractURLConnectionProcessor
- Parameters:
con
- the connection- Throws:
IOException
-