Class RegionHandler

java.lang.Object
emu.grasscutter.server.http.dispatch.RegionHandler
All Implemented Interfaces:
Router

public final class RegionHandler extends Object implements Router
Handles requests related to region queries.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Region data container.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyRoutes(express.Express express, io.javalin.Javalin handle)
    Called when the router is initialized by Express.
    static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp
    Gets the current region query.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegionHandler

      public RegionHandler()
  • Method Details

    • applyRoutes

      public void applyRoutes(express.Express express, io.javalin.Javalin handle)
      Description copied from interface: Router
      Called when the router is initialized by Express.
      Specified by:
      applyRoutes in interface Router
      Parameters:
      express - An Express instance.
    • getCurrentRegion

      public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp getCurrentRegion()
      Gets the current region query.
      Returns:
      A QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp object.