public class OpenAPIOperation extends RestOperation
Modifier | Constructor and Description |
---|---|
protected |
OpenAPIOperation(OpenAPIOperationConnection connection) |
Modifier and Type | Method and Description |
---|---|
OpenAPIOperationConnection |
getConnection()
Returns the base connection that was either provided or created when this instance was created.
|
protected org.apache.http.HttpEntity |
getEntity(ObjectData data)
Returns null for GET, HEAD & DELETE requests.
|
protected Iterable<Map.Entry<String,String>> |
getHeaders(ObjectData data)
Fetch a List of Parameter Header Entries and the Accept from
the openapi specification response path of: responses.
.content. |
protected Iterable<Map.Entry<String,String>> |
getParameters(ObjectData data)
Fetch a List of Query Entries.
|
protected String |
getPath(ObjectData data)
Returns the generated Path section of the URI.
|
protected boolean |
isRequestBodyRequired()
Returns a boolean value of the "required" attribute from OpenAPI request Cookie.
|
executeUpdate
execute
getContext
protected OpenAPIOperation(OpenAPIOperationConnection connection)
protected String getPath(ObjectData data)
getPath
in class RestOperation
data
- incoming request object data.protected Iterable<Map.Entry<String,String>> getHeaders(ObjectData data)
.content. .
Header Parameters come from the specification and will be serialized per specification.
getHeaders
in class RestOperation
data
- incoming request object data.protected Iterable<Map.Entry<String,String>> getParameters(ObjectData data)
getParameters
in class RestOperation
data
- incoming request object data.public OpenAPIOperationConnection getConnection()
ContextualOperation
getConnection
in class RestOperation
protected org.apache.http.HttpEntity getEntity(ObjectData data) throws IOException
getEntity
in class RestOperation
data
- incoming request object data.IOException
- IOException if unable to fetch dataprotected boolean isRequestBodyRequired()
isRequestBodyRequired
in class RestOperation