C# Class org.noear.sited.Util

Mostrar archivo Open project: noear/SiteD

Public Methods

Method Description
createNode ( SdSource source ) : SdNode
createNodeSet ( SdSource source ) : SdNodeSet
http ( SdSource source, bool isUpdate, HttpMessage msg ) : void
log ( SdSource source, SdNode node, String url, String json, int tag ) : void
log ( SdSource source, String tag, String msg ) : void
log ( SdSource source, String tag, String msg, Exception tr ) : void
md5 ( String code ) : String
parseInt ( String str ) : int
urlEncode ( String str, SdNode config ) : String

Private Methods

Method Description
doHttp ( SdSource source, HttpMessage msg, __CacheBlock cache, HttpCallback callback ) : void
tryInitCache ( ) : void

Method Details

createNode() public static method

public static createNode ( SdSource source ) : SdNode
source SdSource
return SdNode

createNodeSet() public static method

public static createNodeSet ( SdSource source ) : SdNodeSet
source SdSource
return SdNodeSet

http() public static method

public static http ( SdSource source, bool isUpdate, HttpMessage msg ) : void
source SdSource
isUpdate bool
msg HttpMessage
return void

log() public static method

public static log ( SdSource source, SdNode node, String url, String json, int tag ) : void
source SdSource
node SdNode
url String
json String
tag int
return void

log() public static method

public static log ( SdSource source, String tag, String msg ) : void
source SdSource
tag String
msg String
return void

log() public static method

public static log ( SdSource source, String tag, String msg, Exception tr ) : void
source SdSource
tag String
msg String
tr System.Exception
return void

md5() public static method

public static md5 ( String code ) : String
code String
return String

parseInt() public static method

public static parseInt ( String str ) : int
str String
return int

urlEncode() public static method

public static urlEncode ( String str, SdNode config ) : String
str String
config SdNode
return String