Package io.github.kirstenali.racore.core
Class Endpoint
java.lang.Object
io.github.kirstenali.racore.core.Endpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddInterceptor(Interceptor interceptor) static voidstatic voiddispatch(HttpExchange exchange) static voidstatic voidstatic voidstatic voidstatic voidstatic PathresolvePath(String requestPath) static void
-
Constructor Details
-
Endpoint
public Endpoint()
-
-
Method Details
-
initializeServer
public static void initializeServer() -
addInterceptor
-
get
-
post
-
put
-
delete
-
patch
-
serveStatic
public static void serveStatic() -
resolvePath
-
dispatch
- Throws:
IOException
-