Table of Contents

Class MappingsHandler

Namespace
Steeltoe.Management.Endpoint.Handler
Assembly
Steeltoe.Management.EndpointWeb.dll
public class MappingsHandler : ActuatorHandler, IActuatorHandler
Inheritance
MappingsHandler
Implements
Inherited Members

Constructors

MappingsHandler(MappingsEndpoint, IEnumerable<ISecurityService>, IApiExplorer, IEnumerable<IManagementOptions>, ILogger<MappingsHandler>)

public MappingsHandler(MappingsEndpoint endpoint, IEnumerable<ISecurityService> securityServices, IApiExplorer apiExplorer, IEnumerable<IManagementOptions> mgmtOptions, ILogger<MappingsHandler> logger = null)

Parameters

endpoint MappingsEndpoint
securityServices IEnumerable<ISecurityService>
apiExplorer IApiExplorer
mgmtOptions IEnumerable<IManagementOptions>
logger ILogger<MappingsHandler>

MappingsHandler(MappingsOptions, IEnumerable<ISecurityService>, IApiExplorer, ILogger<MappingsHandler>)

[Obsolete("Use newer constructor that passes in IManagementOptions instead")]
public MappingsHandler(MappingsOptions options, IEnumerable<ISecurityService> securityServices, IApiExplorer apiExplorer, ILogger<MappingsHandler> logger = null)

Parameters

options MappingsOptions
securityServices IEnumerable<ISecurityService>
apiExplorer IApiExplorer
logger ILogger<MappingsHandler>

Fields

_apiExplorer

protected IApiExplorer _apiExplorer

Field Value

IApiExplorer

_endpoint

protected MappingsEndpoint _endpoint

Field Value

MappingsEndpoint

_options

protected IMappingsOptions _options

Field Value

IMappingsOptions

Methods

AddRouteMappingsDescriptions(RouteCollection, IDictionary<string, IList<MappingDescription>>)

protected void AddRouteMappingsDescriptions(RouteCollection routes, IDictionary<string, IList<MappingDescription>> desc)

Parameters

routes RouteCollection
desc IDictionary<string, IList<MappingDescription>>

GetApplicationMappings()

protected ApplicationMappings GetApplicationMappings()

Returns

ApplicationMappings

GetMappingDescriptions(Collection<ApiDescription>)

protected IDictionary<string, IList<MappingDescription>> GetMappingDescriptions(Collection<ApiDescription> apiDescriptors)

Parameters

apiDescriptors Collection<ApiDescription>

Returns

IDictionary<string, IList<MappingDescription>>

GetRouteDetails(ApiDescription)

protected IRouteDetails GetRouteDetails(ApiDescription desc)

Parameters

desc ApiDescription

Returns

IRouteDetails

GetRouteDetails(Route)

protected AspNetRouteDetails GetRouteDetails(Route route)

Parameters

route Route

Returns

AspNetRouteDetails

HandleRequest(HttpContextBase)

public override void HandleRequest(HttpContextBase context)

Parameters

context HttpContextBase

IsAccessAllowed(HttpContextBase)

public override Task<bool> IsAccessAllowed(HttpContextBase context)

Parameters

context HttpContextBase

Returns

Task<bool>

PathMatch(string)

protected bool PathMatch(string requestPath)

Parameters

requestPath string

Returns

bool

RequestVerbAndPathMatch(string, string)

public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)

Parameters

httpMethod string
requestPath string

Returns

bool