Package com.helger.http.csp
Class AbstractCSPPolicy<T extends ICSPDirective>
java.lang.Object
com.helger.http.csp.AbstractCSPPolicy<T>
- Type Parameters:
T- The CSP directive type
- Direct Known Subclasses:
CSPPolicy
Abstract CSP policy declaration.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDirective(T aDirective) booleanintinthashCode()booleanisEmpty()booleancom.helger.base.state.EChangecom.helger.base.state.EChangeremoveDirective(T aDirective) com.helger.base.state.EChangeremoveDirectiveAtIndex(int nIndex) toString()
-
Constructor Details
-
AbstractCSPPolicy
public AbstractCSPPolicy()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
isNotEmpty
public boolean isNotEmpty() -
getDirectiveCount
@Nonnegative public int getDirectiveCount() -
addDirective
-
removeDirective
-
removeDirectiveAtIndex
@Nonnull public com.helger.base.state.EChange removeDirectiveAtIndex(int nIndex) -
removeAllDirectives
@Nonnull public com.helger.base.state.EChange removeAllDirectives() -
getAsString
-
equals
-
hashCode
public int hashCode() -
toString
-