Class HttpConnector
java.lang.Object
org.opensearch.ml.common.connector.AbstractConnector
org.opensearch.ml.common.connector.HttpConnector
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject,Connector
- Direct Known Subclasses:
AwsConnector
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.opensearch.ml.common.connector.AbstractConnector
access, ACCESS_FIELD, ACCESS_KEY_FIELD, actions, ACTIONS_FIELD, BACKEND_ROLES_FIELD, backendRoles, CLIENT_CONFIG_FIELD, connectorClientConfig, CREATED_TIME_FIELD, createdTime, credential, decryptedCredential, decryptedHeaders, description, DESCRIPTION_FIELD, LAST_UPDATED_TIME_FIELD, lastUpdateTime, name, NAME_FIELD, owner, OWNER_FIELD, parameters, protocol, PROTOCOL_FIELD, SECRET_KEY_FIELD, SESSION_TOKEN_FIELD, version, VERSION_FIELDFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionHttpConnector(String name, String description, String version, String protocol, Map<String, String> parameters, Map<String, String> credential, List<ConnectorAction> actions, List<String> backendRoles, AccessMode accessMode, org.opensearch.commons.authuser.User owner, ConnectorClientConfig connectorClientConfig) HttpConnector(String protocol, org.opensearch.core.common.io.stream.StreamInput input) HttpConnector(String protocol, org.opensearch.core.xcontent.XContentParser parser) HttpConnector(org.opensearch.core.common.io.stream.StreamInput input) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected boolean<T> TcreatePredictPayload(Map<String, String> parameters) voidvoidbooleanprotected StringfillNullParameters(Map<String, String> parameters, String payload) inthashCode()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidupdate(MLCreateConnectorInput updateContent, Function<String, String> function) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.ml.common.connector.AbstractConnector
createPredictDecryptedHeaders, findPredictAction, getAccess, getActions, getBackendRoles, getConnectorClientConfig, getCreatedTime, getCredential, getDecryptedCredential, getDecryptedHeaders, getDescription, getLastUpdateTime, getName, getOwner, getParameters, getPredictEndpoint, getProtocol, getVersion, parseResponse, removeCredential, setAccess, setBackendRoles, setConnectorClientConfig, setDecryptedCredential, setOwnerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.ml.common.connector.Connector
validateConnectorURL, validatePayloadMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
CREDENTIAL_FIELD
- See Also:
-
RESPONSE_FILTER_FIELD
- See Also:
-
PARAMETERS_FIELD
- See Also:
-
SERVICE_NAME_FIELD
- See Also:
-
REGION_FIELD
- See Also:
-
-
Constructor Details
-
HttpConnector
public HttpConnector(String name, String description, String version, String protocol, Map<String, String> parameters, Map<String, String> credential, List<ConnectorAction> actions, List<String> backendRoles, AccessMode accessMode, org.opensearch.commons.authuser.User owner, ConnectorClientConfig connectorClientConfig) -
HttpConnector
public HttpConnector(String protocol, org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
HttpConnector
public HttpConnector(String protocol, org.opensearch.core.common.io.stream.StreamInput input) throws IOException - Throws:
IOException
-
HttpConnector
- Throws:
IOException
-
HttpConnector
public HttpConnector()
-
-
Method Details
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
writeTo
- Throws:
IOException
-
update
-
createPredictPayload
-
fillNullParameters
-
decrypt
-
cloneConnector
-
encrypt
-
getPredictHttpMethod
-
builder
-
equals
-
canEqual
-
hashCode
public int hashCode()
-