Interface SessionTimerHeaderFactory
-
- All Known Subinterfaces:
OCHeaderFactory
public interface SessionTimerHeaderFactory
Factory interface for creating Session Timer headers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MinSEHeader
createMinSEHeader(int interval)
Create a Min-SE header with the given minimum session refresh interval.SessionExpiresHeader
createSessionExpiresHeader(int interval, SessionRefresher refresher)
Create a Session-Expires header with the given session refresh interval and refresher parameter.
-
-
-
Method Detail
-
createSessionExpiresHeader
SessionExpiresHeader createSessionExpiresHeader(int interval, SessionRefresher refresher) throws IllegalArgumentException
Create a Session-Expires header with the given session refresh interval and refresher parameter.- Parameters:
interval
- the session refresh interval, in seconds. May not be less than 90s.refresher
- the refresher party, eitherSessionRefresher.UAC
,SessionRefresher.UAS
orSessionRefresher.NONE
(no refresher specified).- Returns:
- a new
SessionExpiresHeader
object. - Throws:
IllegalArgumentException
- ifinterval
is less than 90s.
-
createMinSEHeader
MinSEHeader createMinSEHeader(int interval) throws IllegalArgumentException
Create a Min-SE header with the given minimum session refresh interval.- Parameters:
interval
- the minimum session refresh interval, in seconds. May not be less than 90s.- Returns:
- a new
MinSEHeader
object. - Throws:
IllegalArgumentException
- ifinterval
is less than 90s.
-
-