Front-End Model Remote URL

Last modified by Pierre Jeanjean on 2026/05/18 17:13

Reference

Parser

RemoteURLParser

/**
 * @since 18.0.0RC1
 * @throws {@link Error} in case of issue when parsing the url
 */
interface RemoteURLParser {
  /**
   * @param url - the url to parse
   * @param type - an optional expected type of the parsed url
   * @since 18.0.0RC1
   */
  parse(url: string, type?: EntityType): EntityReference | undefined;
}

RemoteURLParserProvider

/**
 * @since 18.0.0RC1
 */
interface RemoteURLParserProvider {
  get(type?: string): RemoteURLParser | undefined;
}

Serializer

RemoteURLSerializer

/**
 * @since 18.0.0RC1
 */
interface RemoteURLSerializer {
  /**
   * @param reference - the reference to serialize
   */
  serialize(reference?: EntityReference): string | undefined;
}

RemoteURLSerializerProvider

/**
 * @since 18.0.0RC1
 */
interface RemoteURLSerializerProvider {
  get(type?: string): RemoteURLSerializer | undefined;
}

Related

Cristal - Model - Remote URL

Get Connected