org.loom.interceptor
Class DefaultSSLPolicyInterceptor

java.lang.Object
  extended by org.loom.interceptor.DefaultSSLPolicyInterceptor
All Implemented Interfaces:
Interceptor, PopulateInterceptor, FormDecorator, LinkDecorator

public class DefaultSSLPolicyInterceptor
extends java.lang.Object
implements LinkDecorator, FormDecorator, PopulateInterceptor


Constructor Summary
DefaultSSLPolicyInterceptor()
           
 
Method Summary
 Resolution beforePopulate(ParsedAction action)
           
 void decorate(Form form)
          If the current request does not have the expected protocol (http/https), modify the forms pointing to this event.
 void decorate(Link link)
          If the current request does not have the expected protocol (http/https), modify the links pointing to this event.
protected  void decorate(UrlBuilder url, HtmlTag tag)
           
 SSLPolicyType getPolicy()
           
 void setPolicy(SSLPolicyType policy)
           
 void setSslPortResolver(SSLRedirectDataFactory sslPortResolver)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultSSLPolicyInterceptor

public DefaultSSLPolicyInterceptor()
Method Detail

beforePopulate

public Resolution beforePopulate(ParsedAction action)
Specified by:
beforePopulate in interface PopulateInterceptor
Parameters:
action - the action and event that is being executed
Returns:
if return value != null, stops the execution of the workflow and return the provided resolution

decorate

public void decorate(Link link)
If the current request does not have the expected protocol (http/https), modify the links pointing to this event.

Specified by:
decorate in interface LinkDecorator

decorate

public void decorate(Form form)
If the current request does not have the expected protocol (http/https), modify the forms pointing to this event.

Specified by:
decorate in interface FormDecorator

decorate

protected void decorate(UrlBuilder url,
                        HtmlTag tag)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPolicy

public SSLPolicyType getPolicy()

setPolicy

public void setPolicy(SSLPolicyType policy)

setSslPortResolver

public void setSslPortResolver(SSLRedirectDataFactory sslPortResolver)