Class TimeRestrictedAccess
- java.lang.Object
-
- io.apiman.gateway.engine.policies.config.TimeRestrictedAccess
-
public class TimeRestrictedAccess extends Object
Determines timeslot when service with specific path pattern can be called. Extendible by adding additional cron type ranges like weeks,month years. Empty values represents full range.Elements:
- timeStart,timeEnd represents time range (in current implementation date part is ignored) - dayStart,dayEnd: represents one of the weekdays with values from 1 to 7 (from Monday to Sunday)
- Author:
- wtr@redhat.com, florian.volk@scheer-group.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeRestrictedAccess.OffsetDateTimeDeserializerCustom deserializer as @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = TIME_PATTERN) is not able to parse the config string ("07:58:13") directly into the format that is currently need (1970-01-01T07:58:13Z)
-
Constructor Summary
Constructors Constructor Description TimeRestrictedAccess()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetDayEnd()IntegergetDayStart()StringgetPathPattern()OffsetDateTimegetTimeEnd()OffsetDateTimegetTimeStart()inthashCode()voidsetDayEnd(Integer dayEnd)voidsetDayStart(Integer dayStart)voidsetPathPattern(String pathPattern)voidsetTimeEnd(OffsetDateTime timeEnd)voidsetTimeStart(OffsetDateTime timeStart)
-
-
-
Method Detail
-
getPathPattern
public String getPathPattern()
-
setPathPattern
public void setPathPattern(String pathPattern)
-
getTimeStart
public OffsetDateTime getTimeStart()
-
setTimeStart
public void setTimeStart(OffsetDateTime timeStart)
-
getTimeEnd
public OffsetDateTime getTimeEnd()
-
setTimeEnd
public void setTimeEnd(OffsetDateTime timeEnd)
-
getDayStart
public Integer getDayStart()
-
setDayStart
public void setDayStart(Integer dayStart)
-
getDayEnd
public Integer getDayEnd()
-
setDayEnd
public void setDayEnd(Integer dayEnd)
-
-