Class BaseServiceInputParameter
java.lang.Object
com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
com.flowable.serviceregistry.engine.impl.repository.BaseServiceInputParameter
- All Implemented Interfaces:
ServiceInputParameter
,ServiceParameter
public class BaseServiceInputParameter
extends BaseServiceParameter
implements ServiceInputParameter
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Object
protected boolean
protected boolean
protected boolean
Fields inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
description, displayName, exampleData, mappingName, name, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
When set to true, this parameter is appended to the URL as query parameter using theServiceParameter.getName()
as URL parameter name for REST Services.boolean
void
setBodyLocation
(String bodyLocation) void
setDefaultValue
(Object defaultValue) void
setExcludedFromBody
(boolean excludedFromBody) void
setQueryParameter
(boolean queryParameter) void
setRequired
(boolean required) Methods inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType, setDescription, setDisplayName, setExampleData, setMappingName, setName, setType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.serviceregistry.api.repository.ServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType
-
Field Details
-
required
protected boolean required -
excludedFromBody
protected boolean excludedFromBody -
queryParameter
protected boolean queryParameter -
bodyLocation
-
defaultValue
-
-
Constructor Details
-
BaseServiceInputParameter
public BaseServiceInputParameter()
-
-
Method Details
-
isRequired
public boolean isRequired()- Specified by:
isRequired
in interfaceServiceInputParameter
-
setRequired
public void setRequired(boolean required) -
isExcludedFromBody
public boolean isExcludedFromBody()- Specified by:
isExcludedFromBody
in interfaceServiceInputParameter
-
setExcludedFromBody
public void setExcludedFromBody(boolean excludedFromBody) -
isQueryParameter
public boolean isQueryParameter()Description copied from interface:ServiceInputParameter
When set to true, this parameter is appended to the URL as query parameter using theServiceParameter.getName()
as URL parameter name for REST Services.The
ServiceParameter.getMappingName()
can be used to decouple the query parameter name from the parameter name used in the models. Consider settingServiceInputParameter.isExcludedFromBody()
totrue
, when the parameter is not required to be passed in the request body.- Specified by:
isQueryParameter
in interfaceServiceInputParameter
- Returns:
true
in case this parameter should be added as URL query parameter.
-
setQueryParameter
public void setQueryParameter(boolean queryParameter) -
getBodyLocation
- Specified by:
getBodyLocation
in interfaceServiceInputParameter
-
setBodyLocation
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceServiceInputParameter
-
setDefaultValue
-