public interface ExpiresHeader extends SipHeader
Modifier and Type | Method and Description |
---|---|
ExpiresHeader |
clone() |
static ExpiresHeader |
create(int expires) |
static ExpiresHeader |
frame(Buffer buffer)
Create a new
SipHeader based on the buffer. |
int |
getExpires() |
void |
setExpires(int expires) |
static final Buffer NAME
int getExpires()
void setExpires(int expires)
ExpiresHeader clone()
static ExpiresHeader create(int expires)
static ExpiresHeader frame(Buffer buffer) throws SipParseException
SipHeader
SipHeader
based on the buffer. Each SipHeader
will override this
factory method to parse the header into a more specialized header.
Note, the header returned really is a SipHeader
and is NOT e.g. a ToHeader
.
If you really need to parse it as a ToHeader
you should use theframe
in interface SipHeader
SipHeader
.SipParseException
- in case the header is not a correct formatted header.Copyright © 2014. All Rights Reserved.