C# 클래스 Apache.NMS.Util.URISupport

Class to provide support for Uri query parameters which uses .Net reflection to identify and set properties.
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ParseComposite void
SplitComponents String[]

공개 메소드들

메소드 설명
CheckParenthesis ( String str ) : bool
CreateCompatibleUri ( string uriString ) : Uri

Given a string that could be a Composite Uri that uses syntax not compatible with the .NET Uri class such as an ActiveMQ failover Uri formatted as "failover://(tcp://localhost:61616)", the initial '://' must be changed to ':(' so that the Uri class doesn't attempt to parse the '(tcp:' as the Uri's Authority as that is not a valid host name.

CreateQueryString ( StringDictionary options ) : String
CreateRemainingUri ( Uri originalUri, StringDictionary parameters ) : Uri
CreateUriWithQuery ( Uri uri, string query ) : Uri
ExtractProperties ( StringDictionary props, string prefix ) : StringDictionary
GetProperties ( StringDictionary props, string prefix ) : StringDictionary
ParseComposite ( Uri uri ) : CompositeData
ParseParameters ( Uri uri ) : StringDictionary
ParseQuery ( String query ) : StringDictionary

Parse a Uri query string of the form ?x=y&z=0 into a map of name/value pairs.

RemoveQuery ( Uri original ) : Uri
SetProperties ( object target, StringDictionary map ) : void

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.

SetProperties ( object target, StringDictionary map, string prefix ) : void

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.

StripPrefix ( String value, String prefix ) : String
UrlDecode ( String s ) : String
UrlEncode ( String s ) : String

비공개 메소드들

메소드 설명
ParseComposite ( Uri uri, CompositeData rc, String ssp ) : void

SplitComponents ( String componentString ) : String[]

메소드 상세

CheckParenthesis() 공개 정적인 메소드

public static CheckParenthesis ( String str ) : bool
str String
리턴 bool

CreateCompatibleUri() 공개 정적인 메소드

Given a string that could be a Composite Uri that uses syntax not compatible with the .NET Uri class such as an ActiveMQ failover Uri formatted as "failover://(tcp://localhost:61616)", the initial '://' must be changed to ':(' so that the Uri class doesn't attempt to parse the '(tcp:' as the Uri's Authority as that is not a valid host name.
public static CreateCompatibleUri ( string uriString ) : Uri
uriString string /// A string that could be a Composite Uri that uses syntax not compatible /// with the .NET Uri class ///
리턴 System.Uri

CreateQueryString() 공개 정적인 메소드

public static CreateQueryString ( StringDictionary options ) : String
options System.Collections.Specialized.StringDictionary
리턴 String

CreateRemainingUri() 공개 정적인 메소드

public static CreateRemainingUri ( Uri originalUri, StringDictionary parameters ) : Uri
originalUri System.Uri
parameters System.Collections.Specialized.StringDictionary
리턴 System.Uri

CreateUriWithQuery() 공개 정적인 메소드

public static CreateUriWithQuery ( Uri uri, string query ) : Uri
uri System.Uri
query string
리턴 System.Uri

ExtractProperties() 공개 정적인 메소드

public static ExtractProperties ( StringDictionary props, string prefix ) : StringDictionary
props System.Collections.Specialized.StringDictionary
prefix string
리턴 System.Collections.Specialized.StringDictionary

GetProperties() 공개 정적인 메소드

public static GetProperties ( StringDictionary props, string prefix ) : StringDictionary
props System.Collections.Specialized.StringDictionary
prefix string
리턴 System.Collections.Specialized.StringDictionary

ParseComposite() 공개 정적인 메소드

public static ParseComposite ( Uri uri ) : CompositeData
uri System.Uri
리턴 CompositeData

ParseParameters() 공개 정적인 메소드

public static ParseParameters ( Uri uri ) : StringDictionary
uri System.Uri
리턴 System.Collections.Specialized.StringDictionary

ParseQuery() 공개 정적인 메소드

Parse a Uri query string of the form ?x=y&z=0 into a map of name/value pairs.
public static ParseQuery ( String query ) : StringDictionary
query String The query string to parse. This string should not contain /// Uri escape characters.
리턴 System.Collections.Specialized.StringDictionary

RemoveQuery() 공개 정적인 메소드

public static RemoveQuery ( Uri original ) : Uri
original System.Uri
리턴 System.Uri

SetProperties() 공개 정적인 메소드

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.
public static SetProperties ( object target, StringDictionary map ) : void
target object The object whose properties will be set.
map System.Collections.Specialized.StringDictionary Map of key/value pairs.
리턴 void

SetProperties() 공개 정적인 메소드

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.
public static SetProperties ( object target, StringDictionary map, string prefix ) : void
target object The object whose properties will be set.
map System.Collections.Specialized.StringDictionary Map of key/value pairs.
prefix string Key value prefix. This is prepended to the property name /// before searching for a matching key value.
리턴 void

StripPrefix() 공개 정적인 메소드

public static StripPrefix ( String value, String prefix ) : String
value String
prefix String
리턴 String

UrlDecode() 공개 정적인 메소드

public static UrlDecode ( String s ) : String
s String
리턴 String

UrlEncode() 공개 정적인 메소드

public static UrlEncode ( String s ) : String
s String
리턴 String