|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.javax.sip.header.SIPDate
public class SIPDate
Implements a parser class for tracking expiration time when specified as a Date value.
From the HTTP 1.1 spec 14.18 Date The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. The field value is an HTTP-date, as described in section 3.3.1; it MUST be sent in RFC 1123 [8]-date format. Date = "Date" ":" HTTP-date An example is Date: Tue, 15 Nov 1994 08:12:31 GMT
フィールドの概要 | |
---|---|
static java.lang.String |
APR
|
static java.lang.String |
AUG
|
static java.lang.String |
DEC
|
static java.lang.String |
FEB
|
static java.lang.String |
FRI
|
static java.lang.String |
GMT
|
static java.lang.String |
JAN
|
static java.lang.String |
JUL
|
static java.lang.String |
JUN
|
static java.lang.String |
MAR
|
static java.lang.String |
MAY
|
static java.lang.String |
MON
|
static java.lang.String |
NOV
|
static java.lang.String |
OCT
|
static java.lang.String |
SAT
|
static java.lang.String |
SEP
|
static java.lang.String |
SUN
|
static java.lang.String |
THU
|
static java.lang.String |
TUE
|
static java.lang.String |
WED
|
コンストラクタの概要 | |
---|---|
SIPDate()
Initializer, sets all the fields to invalid values. |
|
SIPDate(long timeMillis)
Construct a SIP date from the time offset given in miliseconds |
メソッドの概要 | |
---|---|
java.lang.String |
encode()
Get canonical string representation. |
boolean |
equals(java.lang.Object that)
equality check. |
int |
getDeltaSeconds()
Get the time offset from the current time. |
int |
getHour()
get the hour |
java.util.Calendar |
getJavaCal()
The only accessor we allow is to the java calendar record. |
int |
getMinute()
get the minute |
java.lang.String |
getMonth()
get the month |
int |
getSecond()
get the second |
java.lang.String |
getWkday()
get the WkDay field |
int |
getYear()
Get the year member. |
void |
setDay(int d)
Set the day member |
void |
setHour(int h)
Set the hour member |
void |
setMinute(int m)
Set the minute member |
void |
setMonth(java.lang.String m)
Set the month member |
void |
setSecond(int s)
Set the second member |
void |
setWkday(java.lang.String w)
Set the wkday member |
void |
setYear(int y)
Set the year member |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final java.lang.String GMT
public static final java.lang.String MON
public static final java.lang.String TUE
public static final java.lang.String WED
public static final java.lang.String THU
public static final java.lang.String FRI
public static final java.lang.String SAT
public static final java.lang.String SUN
public static final java.lang.String JAN
public static final java.lang.String FEB
public static final java.lang.String MAR
public static final java.lang.String APR
public static final java.lang.String MAY
public static final java.lang.String JUN
public static final java.lang.String JUL
public static final java.lang.String AUG
public static final java.lang.String SEP
public static final java.lang.String OCT
public static final java.lang.String NOV
public static final java.lang.String DEC
コンストラクタの詳細 |
---|
public SIPDate()
public SIPDate(long timeMillis)
timeMillis
- long to setメソッドの詳細 |
---|
public boolean equals(java.lang.Object that)
java.lang.Object
内の equals
public java.lang.String encode()
public java.util.Calendar getJavaCal()
public java.lang.String getWkday()
public java.lang.String getMonth()
public int getHour()
public int getMinute()
public int getSecond()
public void setWkday(java.lang.String w) throws java.lang.IllegalArgumentException
w
- String to set
java.lang.IllegalArgumentException
- if w is not a valid day.public void setDay(int d) throws java.lang.IllegalArgumentException
d
- int to set
java.lang.IllegalArgumentException
- if d is not a valid daypublic void setMonth(java.lang.String m) throws java.lang.IllegalArgumentException
m
- String to set.
java.lang.IllegalArgumentException
- if m is not a valid monthpublic void setYear(int y) throws java.lang.IllegalArgumentException
y
- int to set
java.lang.IllegalArgumentException
- if y is not a valid year.public int getYear()
public void setHour(int h) throws java.lang.IllegalArgumentException
h
- int to set
java.lang.IllegalArgumentException
- if h is not a valid hour.public void setMinute(int m) throws java.lang.IllegalArgumentException
m
- int to set
java.lang.IllegalArgumentException
- if m is not a valid minutepublic void setSecond(int s) throws java.lang.IllegalArgumentException
s
- int to set
java.lang.IllegalArgumentException
- if s is not a valid secondpublic int getDeltaSeconds()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |