Class UserProfileHandler

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void cleanupUserProfile​(io.vertx.core.json.JsonObject profile, io.vertx.core.Handler<io.vertx.core.json.JsonObject> profileCallback)  
      void enableResourceLogging​(boolean resourceLoggingEnabled)  
      void handle​(io.vertx.core.http.HttpServerRequest request)  
      boolean isUserProfileRequest​(io.vertx.core.http.HttpServerRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • UserProfileHandler

        @Deprecated
        public UserProfileHandler​(io.vertx.core.Vertx vertx,
                                  org.swisspush.gateleen.core.storage.ResourceStorage storage,
                                  org.swisspush.gateleen.logging.LoggingResourceManager loggingResourceManager,
                                  UserProfileConfiguration userProfileConfiguration)
        Deprecated.
        Use UserProfileHandler(Vertx, ResourceStorage, UserProfileConfiguration) instead, because the LoggingResourceManager is not used anymore
        Constructor for the UserProfileHandler.
        Parameters:
        vertx - vertx
        storage - the storage
        loggingResourceManager - manager for the logging resources
        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)