kubernetes/vendor/github.com/emicklei/go-restful/v3/jsr311.go

type RouterJSR311

// SelectRoute is part of the Router interface and returns the best match
// for the WebService and its Route for the given Request.
func (r RouterJSR311) SelectRoute(
	webServices []*WebService,
	httpRequest *http.Request) (selectedService *WebService, selectedRoute *Route, err error) {}

// ExtractParameters is used to obtain the path parameters from the route using the same matching
// engine as the JSR 311 router.
func (r RouterJSR311) ExtractParameters(route *Route, webService *WebService, urlPath string) map[string]string {}

func (RouterJSR311) extractParams(pathExpr *pathExpression, matches []string) map[string]string {}

// http://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-360003.7.2
func (r RouterJSR311) detectRoute(routes []Route, httpRequest *http.Request) (*Route, error) {}

// http://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-360003.7.2
// n/m > n/* > */*
func (r RouterJSR311) bestMatchByMedia(routes []Route, contentType string, accept string) *Route {}

// http://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-360003.7.2  (step 2)
func (r RouterJSR311) selectRoutes(dispatcher *WebService, pathRemainder string) []Route {}

// http://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-360003.7.2 (step 1)
func (r RouterJSR311) detectDispatcher(requestPath string, dispatchers []*WebService) (*WebService, string, error) {}

type routeCandidate

func (r routeCandidate) expressionToMatch() string {}

func (r routeCandidate) String() string {}

type sortableRouteCandidates

func (rcs *sortableRouteCandidates) Len() int {}

func (rcs *sortableRouteCandidates) Swap(i, j int) {}

func (rcs *sortableRouteCandidates) Less(i, j int) bool {}

type dispatcherCandidate

type sortableDispatcherCandidates

func (dc *sortableDispatcherCandidates) Len() int {}

func (dc *sortableDispatcherCandidates) Swap(i, j int) {}

func (dc *sortableDispatcherCandidates) Less(i, j int) bool {}