blob: a2e8e3c6b0b759f89792722dd8b19e5323da43ac [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2018 The Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* The Eclipse Foundation - initial API and implementation
*******************************************************************************/
package org.eclipse.epp.internal.mpc.core.transport.httpclient;
import org.eclipse.epp.mpc.core.service.ITransport;
import org.eclipse.epp.mpc.core.service.ITransportFactory;
public class HttpClientTransportFactory implements ITransportFactory {
private HttpClientTransport transport;
@Override
public ITransport getTransport() {
return transport;
}
public void setTransport(HttpClientTransport transport) {
this.transport = transport;
}
public void bindTransport(HttpClientTransport transport) {
setTransport(transport);
}
public void unbindTransport(HttpClientTransport transport) {
if (transport == this.transport) {
setTransport(null);
}
}
}