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
ConstructorsConstructorDescriptionCreate an OAuth2AuthenticationURLConnectionProcessor -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore(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:URLConnectionProcessorIf this processermatches, this method is called before the supplied URL connection is made. It can alter any request headers.- Specified by:
beforein interfaceURLConnectionProcessor- Overrides:
beforein classAbstractURLConnectionProcessor- Parameters:
con- the connection- Throws:
IOException
-