View Javadoc
1   /*
2    * This file is part of dependency-check-core.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   * Copyright (c) 2023 Jeremy Long. All Rights Reserved.
17   */
18  package org.owasp.dependencycheck.maven;
19  
20  /**
21   * Proxy configuration options.
22   *
23   * @author Jeremy Long
24   */
25  public class ProxyConfig {
26  
27      /**
28       * The proxy host.
29       */
30      private String host;
31      /**
32       * The proxy port.
33       */
34      private int port = 8080;
35      /**
36       * ID of server in Maven settings.xml, <username> and <password> will be
37       * used.
38       */
39      private String serverId;
40  
41      /**
42       * Get the host.
43       *
44       * @return the host
45       */
46      public String getHost() {
47          return host;
48      }
49  
50      /**
51       * Set the host.
52       *
53       * @param host the new host
54       */
55      public void setHost(String host) {
56          this.host = host;
57      }
58  
59      /**
60       * Get the port.
61       *
62       * @return the port
63       */
64      public int getPort() {
65          return port;
66      }
67  
68      /**
69       * Set the new port number.
70       *
71       * @param port the port number
72       */
73      public void setPort(int port) {
74          this.port = port;
75      }
76  
77      /**
78       * The server id.
79       *
80       * @return the server id
81       */
82      public String getServerId() {
83          return serverId;
84      }
85  
86      /**
87       * Sets the server id.
88       *
89       * @param serverId the new server id
90       */
91      public void setServerId(String serverId) {
92          this.serverId = serverId;
93      }
94  
95  }