aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/VisitorDestinationParameters.java
blob: 854faa0c763ccaec8e2786b297b320c9e579b7f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi;

/**
 * Parameters for creating or opening a visitor destination session.
 *
 * @author <a href="mailto:thomasg@yahoo-inc.com">Thomas Gundersen</a>
 */
public class VisitorDestinationParameters extends Parameters {
    private String sessionName;
    private VisitorDataHandler dataHandler;

    /**
     * Creates visitor destination parameters from the supplied parameters.
     *
     * @param sessionName The name of the destination session.
     * @param handler The data handler.
     */
    public VisitorDestinationParameters(String sessionName, VisitorDataHandler handler) {
        this.sessionName = sessionName;
        dataHandler = handler;
    }

    /** @return the name of the destination session */
    public String getSessionName() { return sessionName; };

    /** @return the data handler */
    public VisitorDataHandler getDataHandler() { return dataHandler; };
}