Package de.gematik
Class BaseMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.gematik.BaseMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CheckMojo,CombineMojo,PrepareItemsMojo
public abstract class BaseMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPath to the directory where the combined items get storedFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDecide which response-families are valid for each request and should be parsed.If it's not wanted to work with response-families specific response codes could be named.Path to truststorePath to truststorePath to file that contains the values to combineHost to use for proxyPort to use for proxyPath to truststorePath to truststorebooleanDecide if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint.booleanDecide if run should break on one or more failed requests.booleanisSkip()Parameter to decide if plugin should be executed.voidsetAcceptedResponseFamilies(String acceptedResponseFamilies) Decide which response-families are valid for each request and should be parsed.voidsetAllowedResponseCodes(String allowedResponseCodes) If it's not wanted to work with response-families specific response codes could be named.voidsetBreakOnContextError(boolean breakOnContextError) Decide if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint.voidsetBreakOnFailedRequest(boolean breakOnFailedRequest) Decide if run should break on one or more failed requests.voidsetClientCertStore(String clientCertStore) Path to truststorevoidsetClientCertStorePw(String clientCertStorePw) Path to truststorevoidsetCombineItemsFile(String combineItemsFile) Path to file that contains the values to combinevoidsetProxyHost(String proxyHost) Host to use for proxyvoidsetProxyPort(Integer proxyPort) Port to use for proxyvoidsetSkip(boolean skip) Parameter to decide if plugin should be executed.voidsetTruststore(String truststore) Path to truststorevoidsetTruststorePw(String truststorePw) Path to truststoreMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
GENERATED_COMBINE_ITEMS_DIR
Path to the directory where the combined items get stored -
apiErrors
-
-
Constructor Details
-
BaseMojo
public BaseMojo()
-
-
Method Details
-
getApiErrors
-
getCombineItemsFile
Path to file that contains the values to combine -
getTruststore
Path to truststore -
getTruststorePw
Path to truststore -
getClientCertStore
Path to truststore -
getClientCertStorePw
Path to truststore -
getProxyHost
Host to use for proxy -
getProxyPort
Port to use for proxy -
isSkip
public boolean isSkip()Parameter to decide if plugin should be executed. All executions are skipped -
isBreakOnFailedRequest
public boolean isBreakOnFailedRequest()Decide if run should break on one or more failed requests. If set to false, will generate a combine_items.json file with responding APIs only (if any). -
isBreakOnContextError
public boolean isBreakOnContextError()Decide if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint. -
getAcceptedResponseFamilies
Decide which response-families are valid for each request and should be parsed. (CSV separated) Is Listof: INFO -> 100-199 SUCCESS -> 200-299 REDIRECTION -> 300-399 CLIENT_ERROR -> 400 - 499 SERVER_ERROR -> 500 - 599 ALL -> All requests are valid. Default Success -
getAllowedResponseCodes
If it's not wanted to work with response-families specific response codes could be named. Overrides acceptedResponseFamilies Codes provided in CSV-format -
setCombineItemsFile
Path to file that contains the values to combine -
setTruststore
Path to truststore -
setTruststorePw
Path to truststore -
setClientCertStore
Path to truststore -
setClientCertStorePw
Path to truststore -
setProxyHost
Host to use for proxy -
setProxyPort
Port to use for proxy -
setSkip
public void setSkip(boolean skip) Parameter to decide if plugin should be executed. All executions are skipped -
setBreakOnFailedRequest
public void setBreakOnFailedRequest(boolean breakOnFailedRequest) Decide if run should break on one or more failed requests. If set to false, will generate a combine_items.json file with responding APIs only (if any). -
setBreakOnContextError
public void setBreakOnContextError(boolean breakOnContextError) Decide if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint. -
setAcceptedResponseFamilies
Decide which response-families are valid for each request and should be parsed. (CSV separated) Is Listof: INFO -> 100-199 SUCCESS -> 200-299 REDIRECTION -> 300-399 CLIENT_ERROR -> 400 - 499 SERVER_ERROR -> 500 - 599 ALL -> All requests are valid. Default Success -
setAllowedResponseCodes
If it's not wanted to work with response-families specific response codes could be named. Overrides acceptedResponseFamilies Codes provided in CSV-format
-