C# Класс Terradue.OpenSearch.OpenSearchFactory

OpenSearch factory. Helper class with a set of static class with the most common manipulation functions for OpenSearch.
Показать файл Открыть проект

Открытые методы

Метод Описание
BuildRequestUrlForTemplate ( OpenSearchDescriptionUrl remoteUrlTemplate, NameValueCollection searchParameters, NameValueCollection requestUrlTemplateDef, QuerySettings querySettings ) : OpenSearchUrl

Builds the request URL for template.

BuildRequestUrlForTemplate ( OpenSearchDescriptionUrl remoteUrlTemplate, NameValueCollection searchParameters, QuerySettings querySettings ) : OpenSearchUrl

Builds the request URL for template.

BuildRequestUrlFromTemplateNameParameters ( OpenSearchUrl remoteUrlTemplate, NameValueCollection templateSearchParameters ) : string

Builds the request URL from template name parameters.

FindOpenSearchable ( OpenSearchEngine ose, Uri baseUrl, string mimeType = null, bool soft = false ) : IOpenSearchable

Finds the open search description.

GetBaseOpenSearchParameter ( ) : NameValueCollection

Gets the base open search parameter.

GetCount ( NameValueCollection parameters ) : int
GetDefaultParametersDescription ( int maxCount ) : List
GetEnclosures ( IOpenSearchResultCollection result ) : SyndicationLink[]
GetIdFromParamName ( IOpenSearchable entity, string mimeType, string paramName ) : string

Gets the name of the identifier from parameter.

GetOpenSearchParameters ( OpenSearchDescriptionUrl osUrl ) : NameValueCollection

Gets the open search parameters.

GetOpenSearchUrlByRel ( OpenSearchDescription osd, string rel ) : OpenSearchDescriptionUrl

Gets the open search URL by rel.

GetOpenSearchUrlByType ( OpenSearchDescription osd, string type ) : OpenSearchDescriptionUrl

Gets the type of the open search URL by.

GetOpenSearchUrlByTypeAndMaxParam ( OpenSearchDescription osd, List mimeTypes, NameValueCollection osParameters ) : OpenSearchDescriptionUrl
GetParamNameFromId ( NameValueCollection parameters, string id ) : string

Gets the parameter name from identifier.

LoadOpenSearchDescriptionDocument ( OpenSearchUrl url ) : OpenSearchDescription

Loads the OpenSearch description document.

MergeOpenSearchParameters ( IOpenSearchable entities, string contentType ) : NameValueCollection

Merges the open search parameters.

PaginationFreeEqual ( NameValueCollection parameters, NameValueCollection parameters2 ) : bool

Paginations the free equal.

RemoveLinksByRel ( IOpenSearchResultCollection &results, string relType ) : void
ReplaceOpenSearchDescriptionLinks ( IOpenSearchable entity, IOpenSearchResultCollection osr ) : void
ReplaceSelfLinks ( IOpenSearchable entity, NameValueCollection parameters, IOpenSearchResultCollection osr, Func entryTemplate ) : void
ReplaceSelfLinks ( IOpenSearchable entity, NameValueCollection parameters, IOpenSearchResultCollection osr, Func entryTemplate, string contentType ) : void
ReplaceSelfLinks ( IOpenSearchable entity, OpenSearchRequest request, IOpenSearchResultCollection osr, Func entryTemplate ) : void
ReplaceTemplateByIdentifier ( NameValueCollection osParameters, OpenSearchDescriptionUrl osdUrl ) : NameValueCollection
ResolveTypeFromRequest ( HttpRequest request, OpenSearchEngine ose ) : Type
ReverseTemplateOpenSearchParameters ( NameValueCollection osdParam ) : NameValueCollection

Reverses the template open search parameters.

Описание методов

BuildRequestUrlForTemplate() публичный статический Метод

Builds the request URL for template.
public static BuildRequestUrlForTemplate ( OpenSearchDescriptionUrl remoteUrlTemplate, NameValueCollection searchParameters, NameValueCollection requestUrlTemplateDef, QuerySettings querySettings ) : OpenSearchUrl
remoteUrlTemplate Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl Remote URL template.
searchParameters System.Collections.Specialized.NameValueCollection Search parameters.
requestUrlTemplateDef System.Collections.Specialized.NameValueCollection
querySettings QuerySettings
Результат OpenSearchUrl

BuildRequestUrlForTemplate() публичный статический Метод

Builds the request URL for template.
public static BuildRequestUrlForTemplate ( OpenSearchDescriptionUrl remoteUrlTemplate, NameValueCollection searchParameters, QuerySettings querySettings ) : OpenSearchUrl
remoteUrlTemplate Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl Remote URL template.
searchParameters System.Collections.Specialized.NameValueCollection Search parameters.
querySettings QuerySettings
Результат OpenSearchUrl

BuildRequestUrlFromTemplateNameParameters() публичный статический Метод

Builds the request URL from template name parameters.
public static BuildRequestUrlFromTemplateNameParameters ( OpenSearchUrl remoteUrlTemplate, NameValueCollection templateSearchParameters ) : string
remoteUrlTemplate OpenSearchUrl Remote URL template.
templateSearchParameters System.Collections.Specialized.NameValueCollection Template search parameters.
Результат string

FindOpenSearchable() публичный статический Метод

Finds the open search description.
public static FindOpenSearchable ( OpenSearchEngine ose, Uri baseUrl, string mimeType = null, bool soft = false ) : IOpenSearchable
ose Terradue.OpenSearch.Engine.OpenSearchEngine
baseUrl System.Uri Base URL.
mimeType string
soft bool
Результат IOpenSearchable

GetBaseOpenSearchParameter() публичный статический Метод

Gets the base open search parameter.
public static GetBaseOpenSearchParameter ( ) : NameValueCollection
Результат System.Collections.Specialized.NameValueCollection

GetCount() публичный статический Метод

public static GetCount ( NameValueCollection parameters ) : int
parameters System.Collections.Specialized.NameValueCollection
Результат int

GetDefaultParametersDescription() публичный статический Метод

public static GetDefaultParametersDescription ( int maxCount ) : List
maxCount int
Результат List

GetEnclosures() публичный статический Метод

public static GetEnclosures ( IOpenSearchResultCollection result ) : SyndicationLink[]
result IOpenSearchResultCollection
Результат SyndicationLink[]

GetIdFromParamName() публичный статический Метод

Gets the name of the identifier from parameter.
public static GetIdFromParamName ( IOpenSearchable entity, string mimeType, string paramName ) : string
entity IOpenSearchable Entity.
mimeType string MIME type.
paramName string Parameter name.
Результат string

GetOpenSearchParameters() публичный статический Метод

Gets the open search parameters.
public static GetOpenSearchParameters ( OpenSearchDescriptionUrl osUrl ) : NameValueCollection
osUrl Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl Os URL.
Результат System.Collections.Specialized.NameValueCollection

GetOpenSearchUrlByRel() публичный статический Метод

Gets the open search URL by rel.
public static GetOpenSearchUrlByRel ( OpenSearchDescription osd, string rel ) : OpenSearchDescriptionUrl
osd Terradue.OpenSearch.Schema.OpenSearchDescription Osd.
rel string Rel.
Результат Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl

GetOpenSearchUrlByType() публичный статический Метод

Gets the type of the open search URL by.
public static GetOpenSearchUrlByType ( OpenSearchDescription osd, string type ) : OpenSearchDescriptionUrl
osd Terradue.OpenSearch.Schema.OpenSearchDescription Osd.
type string Type.
Результат Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl

GetOpenSearchUrlByTypeAndMaxParam() публичный статический Метод

public static GetOpenSearchUrlByTypeAndMaxParam ( OpenSearchDescription osd, List mimeTypes, NameValueCollection osParameters ) : OpenSearchDescriptionUrl
osd Terradue.OpenSearch.Schema.OpenSearchDescription
mimeTypes List
osParameters System.Collections.Specialized.NameValueCollection
Результат Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl

GetParamNameFromId() публичный статический Метод

Gets the parameter name from identifier.
public static GetParamNameFromId ( NameValueCollection parameters, string id ) : string
parameters System.Collections.Specialized.NameValueCollection Parameters.
id string Identifier.
Результат string

LoadOpenSearchDescriptionDocument() публичный статический Метод

Loads the OpenSearch description document.
public static LoadOpenSearchDescriptionDocument ( OpenSearchUrl url ) : OpenSearchDescription
url OpenSearchUrl URL.
Результат Terradue.OpenSearch.Schema.OpenSearchDescription

MergeOpenSearchParameters() публичный статический Метод

Merges the open search parameters.
public static MergeOpenSearchParameters ( IOpenSearchable entities, string contentType ) : NameValueCollection
entities IOpenSearchable Entities.
contentType string Content type.
Результат System.Collections.Specialized.NameValueCollection

PaginationFreeEqual() публичный статический Метод

Paginations the free equal.
public static PaginationFreeEqual ( NameValueCollection parameters, NameValueCollection parameters2 ) : bool
parameters System.Collections.Specialized.NameValueCollection Parameters.
parameters2 System.Collections.Specialized.NameValueCollection Parameters2.
Результат bool

RemoveLinksByRel() публичный статический Метод

public static RemoveLinksByRel ( IOpenSearchResultCollection &results, string relType ) : void
results IOpenSearchResultCollection
relType string
Результат void

ReplaceOpenSearchDescriptionLinks() публичный статический Метод

public static ReplaceOpenSearchDescriptionLinks ( IOpenSearchable entity, IOpenSearchResultCollection osr ) : void
entity IOpenSearchable
osr IOpenSearchResultCollection
Результат void

ReplaceSelfLinks() публичный статический Метод

public static ReplaceSelfLinks ( IOpenSearchable entity, NameValueCollection parameters, IOpenSearchResultCollection osr, Func entryTemplate ) : void
entity IOpenSearchable
parameters System.Collections.Specialized.NameValueCollection
osr IOpenSearchResultCollection
entryTemplate Func
Результат void

ReplaceSelfLinks() публичный статический Метод

public static ReplaceSelfLinks ( IOpenSearchable entity, NameValueCollection parameters, IOpenSearchResultCollection osr, Func entryTemplate, string contentType ) : void
entity IOpenSearchable
parameters System.Collections.Specialized.NameValueCollection
osr IOpenSearchResultCollection
entryTemplate Func
contentType string
Результат void

ReplaceSelfLinks() публичный статический Метод

public static ReplaceSelfLinks ( IOpenSearchable entity, OpenSearchRequest request, IOpenSearchResultCollection osr, Func entryTemplate ) : void
entity IOpenSearchable
request Terradue.OpenSearch.Request.OpenSearchRequest
osr IOpenSearchResultCollection
entryTemplate Func
Результат void

ReplaceTemplateByIdentifier() публичный статический Метод

public static ReplaceTemplateByIdentifier ( NameValueCollection osParameters, OpenSearchDescriptionUrl osdUrl ) : NameValueCollection
osParameters System.Collections.Specialized.NameValueCollection
osdUrl Terradue.OpenSearch.Schema.OpenSearchDescriptionUrl
Результат System.Collections.Specialized.NameValueCollection

ResolveTypeFromRequest() публичный статический Метод

public static ResolveTypeFromRequest ( HttpRequest request, OpenSearchEngine ose ) : Type
request System.Web.HttpRequest
ose Terradue.OpenSearch.Engine.OpenSearchEngine
Результат System.Type

ReverseTemplateOpenSearchParameters() публичный статический Метод

Reverses the template open search parameters.
public static ReverseTemplateOpenSearchParameters ( NameValueCollection osdParam ) : NameValueCollection
osdParam System.Collections.Specialized.NameValueCollection Osd parameter.
Результат System.Collections.Specialized.NameValueCollection