Class ConnectorAction
java.lang.Object
org.opensearch.ml.common.connector.ConnectorAction
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class ConnectorAction
extends Object
implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested 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 Stringstatic final Stringstatic final StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionConnectorAction(org.opensearch.core.common.io.stream.StreamInput input) ConnectorAction(ConnectorAction.ActionType actionType, String method, String url, Map<String, String> headers, String requestBody, String preProcessFunction, String postProcessFunction) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanstatic ConnectorActionfromStream(org.opensearch.core.common.io.stream.StreamInput in) getUrl()inthashCode()static ConnectorActionparse(org.opensearch.core.xcontent.XContentParser parser) org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder xContentBuilder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
ACTION_TYPE_FIELD
- See Also:
-
METHOD_FIELD
- See Also:
-
URL_FIELD
- See Also:
-
HEADERS_FIELD
- See Also:
-
REQUEST_BODY_FIELD
- See Also:
-
ACTION_PRE_PROCESS_FUNCTION
- See Also:
-
ACTION_POST_PROCESS_FUNCTION
- See Also:
-
-
Constructor Details
-
ConnectorAction
-
ConnectorAction
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder xContentBuilder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
fromStream
public static ConnectorAction fromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
parse
public static ConnectorAction parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getActionType
-
getMethod
-
getUrl
-
getHeaders
-
getRequestBody
-
getPreProcessFunction
-
getPostProcessFunction
-
equals
-
canEqual
-
hashCode
public int hashCode()
-