Table of Contents

Class CloudFoundryCorsHandler

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

Constructors

CloudFoundryCorsHandler(CloudFoundryOptions, IEnumerable<ISecurityService>, ILogger<CloudFoundryCorsHandler>)

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

Parameters

options CloudFoundryOptions
securityServices IEnumerable<ISecurityService>
logger ILogger<CloudFoundryCorsHandler>

CloudFoundryCorsHandler(IEndpointOptions, IEnumerable<ISecurityService>, IEnumerable<IManagementOptions>, ILogger<CloudFoundryCorsHandler>)

public CloudFoundryCorsHandler(IEndpointOptions options, IEnumerable<ISecurityService> securityServices, IEnumerable<IManagementOptions> mgmtOptions, ILogger<CloudFoundryCorsHandler> logger = null)

Parameters

options IEndpointOptions
securityServices IEnumerable<ISecurityService>
mgmtOptions IEnumerable<IManagementOptions>
logger ILogger<CloudFoundryCorsHandler>

Methods

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>

RequestVerbAndPathMatch(string, string)

public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)

Parameters

httpMethod string
requestPath string

Returns

bool