blob: f2f44e4b5a32d3901e3c1dfc0732ab2e677c6e64 [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2021 the Eclipse BaSyx Authors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
******************************************************************************/
package org.eclipse.basyx.vab.protocol.http.connector;
import org.eclipse.basyx.vab.coder.json.connector.JSONConnector;
import org.eclipse.basyx.vab.modelprovider.api.IModelProvider;
import org.eclipse.basyx.vab.protocol.api.ConnectorProvider;
public class HTTPConnectorProvider extends ConnectorProvider {
/**
* returns HTTPConnetor wrapped with ConnectedHashmapProvider that handles
* message header information
*/
@Override
protected IModelProvider createProvider(String addr) {
return new JSONConnector(new HTTPConnector(addr));
}
}