Pomona.RequestProcessing.HandlerMethod.MatchResourceNodeRequest C# (CSharp) Method

MatchResourceNodeRequest() private method

private MatchResourceNodeRequest ( HttpMethod httpMethod, ResourceType resourceType ) : RouteAction
httpMethod HttpMethod
resourceType Pomona.Common.TypeSystem.ResourceType
return Pomona.Routing.RouteAction
        private RouteAction MatchResourceNodeRequest(HttpMethod httpMethod, ResourceType resourceType)
        {
            if (!NameStartsWith(httpMethod))
                return null;

            switch (httpMethod)
            {
                case HttpMethod.Delete:
                    return MatchMethodTakingExistingResource(resourceType);
                case HttpMethod.Patch:
                    return MatchMethodTakingPatchedExistingResource(resourceType);
                case HttpMethod.Get:
                    return MatchMethodTakingResourceId(resourceType);
                case HttpMethod.Post:
                    return MatchMethodTakingExistingResourceAndForm(resourceType);
            }
            return null;
        }
    }