Class UserProfileHandler

  • All Implemented Interfaces:
    org.swisspush.gateleen.core.logging.LoggableResource

    public class UserProfileHandler
    extends Object
    implements org.swisspush.gateleen.core.logging.LoggableResource
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Constructor Detail

      • UserProfileHandler

        public UserProfileHandler​(io.vertx.core.Vertx vertx,
                                  org.swisspush.gateleen.core.storage.ResourceStorage storage,
                                  UserProfileConfiguration userProfileConfiguration)
        Constructor for the UserProfileHandler.
        Parameters:
        vertx - vertx
        storage - storage
        userProfileConfiguration - userProfileConfiguration
    • Method Detail

      • enableResourceLogging

        public void enableResourceLogging​(boolean resourceLoggingEnabled)
        Specified by:
        enableResourceLogging in interface org.swisspush.gateleen.core.logging.LoggableResource
      • isUserProfileRequest

        public boolean isUserProfileRequest​(io.vertx.core.http.HttpServerRequest request)
      • handle

        public void handle​(io.vertx.core.http.HttpServerRequest request)
      • cleanupUserProfile

        protected void cleanupUserProfile​(io.vertx.core.json.JsonObject profile,
                                          io.vertx.core.Handler<io.vertx.core.json.JsonObject> profileCallback)