Class RestletRealmRouter

  • All Implemented Interfaces:
    org.restlet.Uniform

    @Deprecated
    public class RestletRealmRouter
    extends org.restlet.routing.Router
    Deprecated.
    Use RealmRoutingFactory#createRouter(Restlet) instead.
    A Restlet router which will route to service endpoints, dynamically handling realm URI parameters.
    Since:
    12.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String REALM
      Deprecated.
       
      static String REALM_OBJECT
      Deprecated.
       
      static String REALM_URL
      Deprecated.
       
      • Fields inherited from class org.restlet.routing.Router

        MODE_BEST_MATCH, MODE_CUSTOM, MODE_FIRST_MATCH, MODE_LAST_MATCH, MODE_NEXT_MATCH, MODE_RANDOM_MATCH
    • Constructor Summary

      Constructors 
      Constructor Description
      RestletRealmRouter()
      Deprecated.
      Constructs a new RealmRouter instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void doHandle​(org.restlet.Restlet next, org.restlet.Request request, org.restlet.Response response)
      Deprecated.
      Takes the last realm URI parameter from the request and appends to the growing full realm value.
      static String getRealmFromRequest​(org.restlet.Request request)
      Deprecated.
      Returns the realm from the given request.
      void setDefaultRoute​(org.restlet.routing.Route defaultRoute)
      Deprecated.
       
      • Methods inherited from class org.restlet.routing.Router

        attach, attach, attach, attach, attach, attach, attachDefault, attachDefault, createRoute, createRoute, detach, detach, getCustom, getDefaultMatchingMode, getDefaultMatchingQuery, getDefaultRoute, getMatchingMode, getMaxAttempts, getNext, getRequiredScore, getRetryDelay, getRoutes, getRoutingMode, handle, logRoute, redirectPermanent, redirectSeeOther, redirectTemporary, setDefaultMatchingMode, setDefaultMatchingQuery, setMaxAttempts, setRequiredScore, setRetryDelay, setRoutes, setRoutingMode, start, stop
      • Methods inherited from class org.restlet.Restlet

        createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
    • Constructor Detail

      • RestletRealmRouter

        public RestletRealmRouter()
        Deprecated.
        Constructs a new RealmRouter instance.
    • Method Detail

      • setDefaultRoute

        public void setDefaultRoute​(org.restlet.routing.Route defaultRoute)
        Deprecated.
        Overrides:
        setDefaultRoute in class org.restlet.routing.Router
      • doHandle

        protected void doHandle​(org.restlet.Restlet next,
                                org.restlet.Request request,
                                org.restlet.Response response)
        Deprecated.

        Takes the last realm URI parameter from the request and appends to the growing full realm value.

        i.e. last realm URI parameter: realm2, current full realm value: /realm1, after appending: /realm1/realm2.

        Overrides:
        doHandle in class org.restlet.routing.Router
        Parameters:
        next -
        request -
        response -
      • getRealmFromRequest

        public static String getRealmFromRequest​(org.restlet.Request request)
        Deprecated.
        Returns the realm from the given request.
        Parameters:
        request - Non null request to examine.
        Returns:
        Null if no realm was found, otherwise the given Realm as a String.