public class RequestExtensionVoter extends AbstractBoolVoter
AggregationState
object against a list of allowed and/or rejected extensions.Constructor and Description |
---|
RequestExtensionVoter(javax.inject.Provider<AggregationState> aggregationStateProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addAllowed(String contentType) |
void |
addRejected(String contentType) |
protected boolean |
boolVote(Object value) |
protected javax.inject.Provider<AggregationState> |
getAggregationStateProvider() |
List<String> |
getAllowed() |
List<String> |
getRejected() |
void |
setAllowed(List<String> allowed) |
void |
setRejected(List<String> rejected) |
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, vote
getName, isEnabled, setEnabled, setName
@Inject public RequestExtensionVoter(javax.inject.Provider<AggregationState> aggregationStateProvider)
public void addAllowed(String contentType)
public void addRejected(String contentType)
protected boolean boolVote(Object value)
boolVote
in class AbstractBoolVoter
protected javax.inject.Provider<AggregationState> getAggregationStateProvider()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.