Class InterceptorRule
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.interceptor.InterceptorRule
-
- All Implemented Interfaces:
Serializable
@Entity public class InterceptorRule extends PersistentObject
The model representing the rules for the GeoServer Interceptor class.A rule is following the schema:
. . . = The rules will be evaluated for every request where we determine the most specific rule to apply.
Allowed values for the rule are ALLOW, DENY, MODIFY. Allowed values for the event are REQUEST and RESPONSE.
- Author:
- Daniel Koch, Kai Volland, terrestris GmbH & Co. KG
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterceptorRule()InterceptorRule(HttpEnum.EventType event, InterceptorEnum.RuleType rule, OgcEnum.ServiceType service, OgcEnum.OperationType operation, String endPoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetEndPoint()HttpEnum.EventTypegetEvent()OgcEnum.OperationTypegetOperation()InterceptorEnum.RuleTypegetRule()OgcEnum.ServiceTypegetService()inthashCode()voidsetEndPoint(String endPoint)voidsetEvent(HttpEnum.EventType event)voidsetOperation(OgcEnum.OperationType operation)voidsetRule(InterceptorEnum.RuleType rule)voidsetService(OgcEnum.ServiceType service)StringtoString()-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions
-
-
-
-
Constructor Detail
-
InterceptorRule
public InterceptorRule()
-
InterceptorRule
public InterceptorRule(HttpEnum.EventType event, InterceptorEnum.RuleType rule, OgcEnum.ServiceType service, OgcEnum.OperationType operation, String endPoint)
- Parameters:
rule-service-operation-endPoint-
-
-
Method Detail
-
getEvent
public HttpEnum.EventType getEvent()
- Returns:
- the event
-
setEvent
public void setEvent(HttpEnum.EventType event)
- Parameters:
event- the event to set
-
getRule
public InterceptorEnum.RuleType getRule()
- Returns:
- the rule
-
setRule
public void setRule(InterceptorEnum.RuleType rule)
- Parameters:
rule- the rule to set
-
getService
public OgcEnum.ServiceType getService()
- Returns:
- the service
-
setService
public void setService(OgcEnum.ServiceType service)
- Parameters:
service- the service to set
-
getOperation
public OgcEnum.OperationType getOperation()
- Returns:
- the operation
-
setOperation
public void setOperation(OgcEnum.OperationType operation)
- Parameters:
operation- the operation to set
-
getEndPoint
public String getEndPoint()
- Returns:
- the endPoint
-
setEndPoint
public void setEndPoint(String endPoint)
- Parameters:
endPoint- the endPoint to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
toString
public String toString()
- Overrides:
toStringin classPersistentObject
-
-