org.fabric3.binding.ws.metro.provision.ConnectionConfiguration Maven / Gradle / Ivy
/*
* Fabric3
* Copyright (c) 2009-2015 Metaform Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fabric3.binding.ws.metro.provision;
import java.io.Serializable;
/**
* Configuration settings for the underlying web services HTTP connection.
*/
public class ConnectionConfiguration implements Serializable {
private static final long serialVersionUID = 6049593411715109203L;
public static int DEFAULT = -1;
private int requestTimeout = DEFAULT;
private int connectTimeout = DEFAULT;
private int clientStreamingChunkSize = DEFAULT;
public int getRequestTimeout() {
return requestTimeout;
}
public void setRequestTimeout(int requestTimeout) {
this.requestTimeout = requestTimeout;
}
public int getConnectTimeout() {
return connectTimeout;
}
public void setConnectTimeout(int connectTimeout) {
this.connectTimeout = connectTimeout;
}
public int getClientStreamingChunkSize() {
return clientStreamingChunkSize;
}
public void setClientStreamingChunkSize(int clientStreamingChunkSize) {
this.clientStreamingChunkSize = clientStreamingChunkSize;
}
}