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
Fields Modifier and Type Field Description protected StringbodyLocationprotected ObjectdefaultValueprotected booleanexcludedFromBodyprotected booleanqueryParameterprotected booleanrequired-
Fields inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
description, displayName, mappingName, name, type
-
-
Constructor Summary
Constructors Constructor Description BaseServiceInputParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBodyLocation()ObjectgetDefaultValue()booleanisExcludedFromBody()booleanisQueryParameter()When set to true, this parameter is appended to the URL as query parameter using theServiceParameter.getName()as URL parameter name for REST Services.booleanisRequired()voidsetBodyLocation(String bodyLocation)voidsetDefaultValue(Object defaultValue)voidsetExcludedFromBody(boolean excludedFromBody)voidsetQueryParameter(boolean queryParameter)voidsetRequired(boolean required)-
Methods inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
getDescription, getDisplayName, getMappingName, getName, getType, setDescription, setDisplayName, 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, getMappingName, getName, getType
-
-
-
-
Method Detail
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin interfaceServiceInputParameter
-
setRequired
public void setRequired(boolean required)
-
isExcludedFromBody
public boolean isExcludedFromBody()
- Specified by:
isExcludedFromBodyin interfaceServiceInputParameter
-
setExcludedFromBody
public void setExcludedFromBody(boolean excludedFromBody)
-
isQueryParameter
public boolean isQueryParameter()
Description copied from interface:ServiceInputParameterWhen 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:
isQueryParameterin interfaceServiceInputParameter- Returns:
truein case this parameter should be added as URL query parameter.
-
setQueryParameter
public void setQueryParameter(boolean queryParameter)
-
getBodyLocation
public String getBodyLocation()
- Specified by:
getBodyLocationin interfaceServiceInputParameter
-
setBodyLocation
public void setBodyLocation(String bodyLocation)
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceServiceInputParameter
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
-
-