View Javadoc
1   /*
2    * This file is part of Waarp Project (named also Waarp or GG).
3    *
4    *  Copyright (c) 2019, Waarp SAS, and individual contributors by the @author
5    *  tags. See the COPYRIGHT.txt in the distribution for a full listing of
6    * individual contributors.
7    *
8    *  All Waarp Project is free software: you can redistribute it and/or
9    * modify it under the terms of the GNU General Public License as published by
10   * the Free Software Foundation, either version 3 of the License, or (at your
11   * option) any later version.
12   *
13   * Waarp is distributed in the hope that it will be useful, but WITHOUT ANY
14   * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15   * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16   *
17   *  You should have received a copy of the GNU General Public License along with
18   * Waarp . If not, see <http://www.gnu.org/licenses/>.
19   */
20  package org.waarp.openr66.protocol.localhandler.packet.json;
21  
22  import org.waarp.openr66.protocol.localhandler.packet.LocalPacketFactory;
23  
24  /**
25   * Exporting Configuration response JSON packet
26   */
27  public class ConfigExportResponseJsonPacket extends ConfigExportJsonPacket {
28  
29    protected byte command;
30    protected String filehost;
31    protected String filerule;
32    protected String filebusiness;
33    protected String filealias;
34    protected String fileroles;
35  
36    /**
37     * @return the command
38     */
39    public final byte getCommand() {
40      return command;
41    }
42  
43    /**
44     * @param command the command to set
45     */
46    public final void setCommand(final byte command) {
47      this.command = command;
48    }
49  
50    /**
51     * @return the filehost
52     */
53    public final String getFilehost() {
54      return filehost;
55    }
56  
57    /**
58     * @param filehost the filehost to set
59     */
60    public final void setFilehost(final String filehost) {
61      this.filehost = filehost;
62    }
63  
64    /**
65     * @return the filerule
66     */
67    public final String getFilerule() {
68      return filerule;
69    }
70  
71    /**
72     * @param filerule the filerule to set
73     */
74    public final void setFilerule(final String filerule) {
75      this.filerule = filerule;
76    }
77  
78    /**
79     * @return the filebusiness
80     */
81    public final String getFilebusiness() {
82      return filebusiness;
83    }
84  
85    /**
86     * @param filebusiness the filebusiness to set
87     */
88    public final void setFilebusiness(final String filebusiness) {
89      this.filebusiness = filebusiness;
90    }
91  
92    /**
93     * @return the filealias
94     */
95    public final String getFilealias() {
96      return filealias;
97    }
98  
99    /**
100    * @param filealias the filealias to set
101    */
102   public final void setFilealias(final String filealias) {
103     this.filealias = filealias;
104   }
105 
106   /**
107    * @return the fileroles
108    */
109   public final String getFileroles() {
110     return fileroles;
111   }
112 
113   /**
114    * @param fileroles the fileroles to set
115    */
116   public final void setFileroles(final String fileroles) {
117     this.fileroles = fileroles;
118   }
119 
120   @Override
121   public final void setRequestUserPacket() {
122     setRequestUserPacket(LocalPacketFactory.CONFEXPORTPACKET);
123   }
124 }