registerBuilder method

void registerBuilder(
  1. String format,
  2. OutputBuilder<O, P> builder
)

Map a URL to an OutputBuilder

@param format The URL being mapped; for example, "users/:id" or "groups/:id/topics/:topic_id" @param options The OutputBuilder that creates an output if the given format is matched

Implementation

void registerBuilder(String format, OutputBuilder<O, P> builder) {
  if (VoyagerUtils.isWildcard(format)) {
    _wildcardRoutes[format] = builder;
  } else {
    _routes[format] = builder;
  }
}