C# 클래스 Terradue.OpenSearch.Engine.OpenSearchEngine

The engine for making OpenSearch request
상속: IOpenSearchableFactory
파일 보기 프로젝트 열기: Terradue/DotNetOpenSearch 1 사용 예제들

공개 메소드들

메소드 설명
ApplyOpenSearchElements ( IOpenSearchResultCollection &newResults, OpenSearchRequest request, IOpenSearchResponse response ) : void
AutoDiscoverFromQueryUrl ( OpenSearchUrl url ) : OpenSearchDescription

Try to discover the OpenSearchDescription from an URL.

Create ( OpenSearchDescription osd ) : IOpenSearchable

Create an IOpenSearchable from an OpenSearchUrl

Create ( OpenSearchUrl url ) : IOpenSearchable

Create an IOpenSearchable from an OpenSearchUrl

GetEnclosures ( IOpenSearchResultCollection result ) : SyndicationLink[]

Gets the enclosures.

GetExtensionByContentTypeAbility ( string contentType ) : IOpenSearchEngineExtension

Gets the first extension by content type ability.

GetExtensionByExtensionName ( string resultName ) : IOpenSearchEngineExtension
GetFirstExtensionByTypeAbility ( Type type ) : IOpenSearchEngineExtension
GetTypeByExtensionName ( string resultName ) : Type

Gets the name of the type by extension's result name

LoadOpenSearchDescriptionDocument ( OpenSearchUrl url ) : OpenSearchDescription

Loads an OpenSearchDescription document from an Url.

LoadPlugins ( ) : void

Loads the plugins automatically based on Mono.Addins

OpenSearchEngine ( ) : System

Initializes a new instance of the Terradue.OpenSearch.OpenSearchEngine class.

Query ( IOpenSearchable entity, NameValueCollection parameters ) : IOpenSearchResultCollection

Query the specified IOpenSearchable entity with specific parameters and returns result in native format.

Query ( IOpenSearchable entity, NameValueCollection parameters, Type resultType ) : IOpenSearchResultCollection

Query the specified IOpenSearchable entity with specific parameters and result with the specific result type.

Query ( IOpenSearchable entity, NameValueCollection parameters, string resultName ) : IOpenSearchResultCollection

Query the specified IOpenSearchable entity with specific parameters and result based on the extension's result name.

RegisterExtension ( IOpenSearchEngineExtension extension ) : void

Registers an extension for a specific type.

RegisterPostSearchFilter ( PostFilterAction filter ) : void

Registers a post search filter.

RegisterPreSearchFilter ( PreFilterAction filter ) : void

Registers a pre search filter.

비공개 메소드들

메소드 설명
ApplyPostSearchFilters ( OpenSearchRequest request, IOpenSearchResponse &response ) : void

Applies the post search filters.

ApplyPreSearchFilters ( OpenSearchRequest &request ) : void

Applies the pre search filters.

메소드 상세

ApplyOpenSearchElements() 공개 메소드

public ApplyOpenSearchElements ( IOpenSearchResultCollection &newResults, OpenSearchRequest request, IOpenSearchResponse response ) : void
newResults IOpenSearchResultCollection
request Terradue.OpenSearch.Request.OpenSearchRequest
response IOpenSearchResponse
리턴 void

AutoDiscoverFromQueryUrl() 공개 메소드

Try to discover the OpenSearchDescription from an URL.
public AutoDiscoverFromQueryUrl ( OpenSearchUrl url ) : OpenSearchDescription
url OpenSearchUrl URL.
리턴 Terradue.OpenSearch.Schema.OpenSearchDescription

Create() 공개 메소드

Create an IOpenSearchable from an OpenSearchUrl
public Create ( OpenSearchDescription osd ) : IOpenSearchable
osd Terradue.OpenSearch.Schema.OpenSearchDescription Osd.
리턴 IOpenSearchable

Create() 공개 메소드

Create an IOpenSearchable from an OpenSearchUrl
public Create ( OpenSearchUrl url ) : IOpenSearchable
url OpenSearchUrl URL to either a search or a description
리턴 IOpenSearchable

GetEnclosures() 공개 메소드

Gets the enclosures.
public GetEnclosures ( IOpenSearchResultCollection result ) : SyndicationLink[]
result IOpenSearchResultCollection Result.
리턴 SyndicationLink[]

GetExtensionByContentTypeAbility() 공개 메소드

Gets the first extension by content type ability.
public GetExtensionByContentTypeAbility ( string contentType ) : IOpenSearchEngineExtension
contentType string Content type.
리턴 IOpenSearchEngineExtension

GetExtensionByExtensionName() 공개 메소드

public GetExtensionByExtensionName ( string resultName ) : IOpenSearchEngineExtension
resultName string
리턴 IOpenSearchEngineExtension

GetFirstExtensionByTypeAbility() 공개 메소드

public GetFirstExtensionByTypeAbility ( Type type ) : IOpenSearchEngineExtension
type System.Type
리턴 IOpenSearchEngineExtension

GetTypeByExtensionName() 공개 메소드

Gets the name of the type by extension's result name
public GetTypeByExtensionName ( string resultName ) : Type
resultName string Result name.
리턴 System.Type

LoadOpenSearchDescriptionDocument() 공개 메소드

Loads an OpenSearchDescription document from an Url.
public LoadOpenSearchDescriptionDocument ( OpenSearchUrl url ) : OpenSearchDescription
url OpenSearchUrl URL.
리턴 Terradue.OpenSearch.Schema.OpenSearchDescription

LoadPlugins() 공개 메소드

Loads the plugins automatically based on Mono.Addins
public LoadPlugins ( ) : void
리턴 void

OpenSearchEngine() 공개 메소드

Initializes a new instance of the Terradue.OpenSearch.OpenSearchEngine class.
public OpenSearchEngine ( ) : System
리턴 System

Query() 공개 메소드

Query the specified IOpenSearchable entity with specific parameters and returns result in native format.
public Query ( IOpenSearchable entity, NameValueCollection parameters ) : IOpenSearchResultCollection
entity IOpenSearchable Entity.
parameters System.Collections.Specialized.NameValueCollection Parameters.
리턴 IOpenSearchResultCollection

Query() 공개 메소드

Query the specified IOpenSearchable entity with specific parameters and result with the specific result type.
public Query ( IOpenSearchable entity, NameValueCollection parameters, Type resultType ) : IOpenSearchResultCollection
entity IOpenSearchable Entity.
parameters System.Collections.Specialized.NameValueCollection Parameters.
resultType System.Type Result type.
리턴 IOpenSearchResultCollection

Query() 공개 메소드

Query the specified IOpenSearchable entity with specific parameters and result based on the extension's result name.
public Query ( IOpenSearchable entity, NameValueCollection parameters, string resultName ) : IOpenSearchResultCollection
entity IOpenSearchable Entity.
parameters System.Collections.Specialized.NameValueCollection Parameters.
resultName string Result name.
리턴 IOpenSearchResultCollection

RegisterExtension() 공개 메소드

Registers an extension for a specific type.
An extension with the same typoe already registered.
public RegisterExtension ( IOpenSearchEngineExtension extension ) : void
extension IOpenSearchEngineExtension Extension associated with the type
리턴 void

RegisterPostSearchFilter() 공개 메소드

Registers a post search filter.
public RegisterPostSearchFilter ( PostFilterAction filter ) : void
filter PostFilterAction Filter.
리턴 void

RegisterPreSearchFilter() 공개 메소드

Registers a pre search filter.
public RegisterPreSearchFilter ( PreFilterAction filter ) : void
filter PreFilterAction Filter.
리턴 void