Class Remote
- java.lang.Object
-
- org.apache.maven.buildcache.xml.config.Remote
-
- All Implemented Interfaces:
Serializable
public class Remote extends Object implements Serializable
Class Remote.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Remote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Get the repository id used to find authentication / mirror information in maven settings, default to 'cache'.StringgetTransport()Get the transport to use, currently, only 'resolver' is supported.StringgetUrl()Get address of remote cache.booleanisEnabled()Get the enabled field.booleanisSaveToRemote()Get save output to remote cache.voidsetEnabled(boolean enabled)Set the enabled field.voidsetId(String id)Set the repository id used to find authentication / mirror information in maven settings, default to 'cache'.voidsetSaveToRemote(boolean saveToRemote)Set save output to remote cache.voidsetTransport(String transport)Set the transport to use, currently, only 'resolver' is supported.voidsetUrl(String url)Set address of remote cache.
-
-
-
Method Detail
-
getId
public String getId()
Get the repository id used to find authentication / mirror information in maven settings, default to 'cache'.- Returns:
- String
-
getTransport
public String getTransport()
Get the transport to use, currently, only 'resolver' is supported.- Returns:
- String
-
getUrl
public String getUrl()
Get address of remote cache.- Returns:
- String
-
isEnabled
public boolean isEnabled()
Get the enabled field.- Returns:
- boolean
-
isSaveToRemote
public boolean isSaveToRemote()
Get save output to remote cache. Recommended to enable on CI agents only.- Returns:
- boolean
-
setEnabled
public void setEnabled(boolean enabled)
Set the enabled field.- Parameters:
enabled- a enabled object.
-
setId
public void setId(String id)
Set the repository id used to find authentication / mirror information in maven settings, default to 'cache'.- Parameters:
id- a id object.
-
setSaveToRemote
public void setSaveToRemote(boolean saveToRemote)
Set save output to remote cache. Recommended to enable on CI agents only.- Parameters:
saveToRemote- a saveToRemote object.
-
setTransport
public void setTransport(String transport)
Set the transport to use, currently, only 'resolver' is supported.- Parameters:
transport- a transport object.
-
setUrl
public void setUrl(String url)
Set address of remote cache.- Parameters:
url- a url object.
-
-