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   * Business Request JSON packet
26   */
27  public class BusinessRequestJsonPacket extends JsonPacket {
28  
29    protected boolean isToApplied;
30    protected String className;
31    protected String arguments;
32    protected String extraArguments;
33    protected int delay;
34    protected boolean isValidated;
35  
36    /**
37     * @return the isValidated
38     */
39    public final boolean isValidated() {
40      return isValidated;
41    }
42  
43    /**
44     * @param isValidated the isValidated to set
45     */
46    public final void setValidated(final boolean isValidated) {
47      this.isValidated = isValidated;
48    }
49  
50    /**
51     * @return the isToApplied
52     */
53    public final boolean isToApplied() {
54      return isToApplied;
55    }
56  
57    /**
58     * @param isToApplied the isToApplied to set
59     */
60    public final void setToApplied(final boolean isToApplied) {
61      this.isToApplied = isToApplied;
62    }
63  
64    /**
65     * @return the className
66     */
67    public final String getClassName() {
68      return className;
69    }
70  
71    /**
72     * @param className the className to set
73     */
74    public final void setClassName(final String className) {
75      this.className = className;
76    }
77  
78    /**
79     * @return the arguments
80     */
81    public final String getArguments() {
82      return arguments;
83    }
84  
85    /**
86     * @param arguments the arguments to set
87     */
88    public final void setArguments(final String arguments) {
89      this.arguments = arguments;
90    }
91  
92    /**
93     * @return the extraArguments
94     */
95    public final String getExtraArguments() {
96      return extraArguments;
97    }
98  
99    /**
100    * @param extraArguments the extraArguments to set
101    */
102   public final void setExtraArguments(final String extraArguments) {
103     this.extraArguments = extraArguments;
104   }
105 
106   /**
107    * @return the delay
108    */
109   public final int getDelay() {
110     return delay;
111   }
112 
113   /**
114    * @param delay the delay to set
115    */
116   public final void setDelay(final int delay) {
117     this.delay = delay;
118   }
119 
120   @Override
121   public final void setRequestUserPacket() {
122     setRequestUserPacket(LocalPacketFactory.BUSINESSREQUESTPACKET);
123   }
124 }