PAPI
- The type of the PushAPIpublic abstract class EndpointBuilder<PAPI extends PushAPI>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
connectorName |
protected java.lang.String |
connectorType |
protected java.util.Map<java.lang.String,java.lang.String> |
extraParameters |
protected java.lang.String |
host |
protected java.lang.String |
login |
protected java.lang.String |
password |
protected java.lang.String |
port |
protected Protocol |
protocol |
protected java.lang.String |
urlPrefix |
protected PushAPIVersion |
version |
Constructor and Description |
---|
EndpointBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract PAPI |
build()
Creates instances of end-point
PushAPI . |
EndpointBuilder<PAPI> |
withConnectorName(java.lang.String connectorName) |
EndpointBuilder<PAPI> |
withConnectorType(java.lang.String connectorType) |
EndpointBuilder<PAPI> |
withExtraParameters(java.util.Map<java.lang.String,java.lang.String> extraParameters) |
EndpointBuilder<PAPI> |
withHost(java.lang.String host) |
EndpointBuilder<PAPI> |
withLogin(java.lang.String login) |
EndpointBuilder<PAPI> |
withPassword(java.lang.String password) |
EndpointBuilder<PAPI> |
withPort(java.lang.String port) |
EndpointBuilder<PAPI> |
withProtocol(Protocol protocol) |
EndpointBuilder<PAPI> |
withUrlPrefix(java.lang.String urlPrefix) |
EndpointBuilder<PAPI> |
withVersion(PushAPIVersion version) |
protected PushAPIVersion version
protected Protocol protocol
protected java.lang.String host
protected java.lang.String port
protected java.lang.String urlPrefix
protected java.lang.String connectorName
protected java.lang.String connectorType
protected java.lang.String login
protected java.lang.String password
protected java.util.Map<java.lang.String,java.lang.String> extraParameters
public EndpointBuilder<PAPI> withVersion(PushAPIVersion version)
version
- The veriosn of the protocolPushAPIVersion
public EndpointBuilder<PAPI> withProtocol(Protocol protocol)
protocol
- The network protocolProtocol
public EndpointBuilder<PAPI> withHost(java.lang.String host)
host
- The target host namepublic EndpointBuilder<PAPI> withPort(java.lang.String port)
port
- The target host portpublic EndpointBuilder<PAPI> withUrlPrefix(java.lang.String urlPrefix)
urlPrefix
- The URL prefix, if any. Can be null
public EndpointBuilder<PAPI> withConnectorName(java.lang.String connectorName)
connectorName
- The name of the source. Usually the connector name. Should not be null
public EndpointBuilder<PAPI> withConnectorType(java.lang.String connectorType)
connectorType
- Connector type. Do not if it is ever used. Usually null
.public EndpointBuilder<PAPI> withLogin(java.lang.String login)
login
- Login for authentication. Can be null
public EndpointBuilder<PAPI> withPassword(java.lang.String password)
password
- Password for authentication. Can be null
public EndpointBuilder<PAPI> withExtraParameters(java.util.Map<java.lang.String,java.lang.String> extraParameters)
extraParameters
- Extra HTTP parameters. Can be null
public abstract PAPI build() throws PushAPIException
PushAPI
. As the name says, the end-point PushAPI is the API at the top of the PushAPI filters stack, being the one
actually sending the data to any other server.PushAPIException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.