|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jakewharton.pingdom.entities.Check.CheckTypeWrapper
public static final class Check.CheckTypeWrapper
Wrapper for CheckType
which allows for deserializing either the
simple string type or a more complex object representation of the type
with a single class.
Constructor Summary | |
---|---|
Check.CheckTypeWrapper(CheckType typeNative,
Check.CheckTypeBase typeObject)
|
Method Summary | |
---|---|
Check.DnsType |
asDns()
Wrap type object as an Check.DnsType . |
Check.HttpType |
asHttp()
Wrap type object as an Check.HttpType . |
Check.HttpCustomType |
asHttpCustom()
Wrap type object as an Check.HttpCustomType . |
Check.ImapType |
asImap()
Wrap type object as an Check.ImapType . |
Check.PingType |
asPing()
Wrap type object as an Check.PingType . |
Check.Pop3Type |
asPop3()
Wrap type object as an Check.Pop3Type . |
Check.SmtpType |
asSmtp()
Wrap type object as an Check.SmtpType . |
Check.TcpType |
asTcp()
Wrap type object as an Check.TcpType . |
Check.UdpType |
asUdp()
Wrap type object as an Check.UdpType . |
CheckType |
getNative()
Get native type enum value. |
Check.CheckTypeBase |
getTypeObject()
Get type object representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Check.CheckTypeWrapper(CheckType typeNative, Check.CheckTypeBase typeObject)
Method Detail |
---|
public CheckType getNative()
public Check.CheckTypeBase getTypeObject()
Get type object representation.
This is a general inflation target which contains all possible
values for all types. You should call getNative()
in your
code and then the corresponding asXXX()
method.
public Check.HttpType asHttp()
Check.HttpType
.
public Check.HttpCustomType asHttpCustom()
Check.HttpCustomType
.
public Check.TcpType asTcp()
Check.TcpType
.
public Check.PingType asPing()
Check.PingType
.
public Check.DnsType asDns()
Check.DnsType
.
public Check.UdpType asUdp()
Check.UdpType
.
public Check.SmtpType asSmtp()
Check.SmtpType
.
public Check.Pop3Type asPop3()
Check.Pop3Type
.
public Check.ImapType asImap()
Check.ImapType
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |