Package de.xima.fc.gui.model
Class ServerSelectionModel.FrontendServer
- java.lang.Object
-
- de.xima.fc.gui.model.ServerSelectionModel.FrontendServer
-
- All Implemented Interfaces:
ServerSelectionModel.Server
,Serializable
- Enclosing class:
- ServerSelectionModel
public static class ServerSelectionModel.FrontendServer extends Object implements ServerSelectionModel.Server
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FrontendServer(Projekt p, MandantFrontendServer mfs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseFormIncludeUrl()
String
getBaseFormProvideUrl()
String
getBaseUrl()
String
getDisplayName()
String
getFormIncludeUrl()
long
getId()
String
getIncludeUrlFor(String resourceName)
String
getPreAliasLink()
String
getProvideLink(boolean useId)
String
toString()
-
-
-
Constructor Detail
-
FrontendServer
public FrontendServer(Projekt p, MandantFrontendServer mfs)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceServerSelectionModel.Server
- Returns:
- Name of this server, shown to the user.
-
getId
public long getId()
- Specified by:
getId
in interfaceServerSelectionModel.Server
- Returns:
- Unique ID for this server.
-
getProvideLink
public String getProvideLink(boolean useId)
- Specified by:
getProvideLink
in interfaceServerSelectionModel.Server
- Parameters:
useId
- Iffalse
, uses the form and client alias for the link. Otherwise, uses the client and project ID.- Returns:
- Link for opening the form with this server. (/form/provide)
-
getPreAliasLink
public String getPreAliasLink()
- Specified by:
getPreAliasLink
in interfaceServerSelectionModel.Server
- Returns:
String
form request link part before alias
-
getFormIncludeUrl
public String getFormIncludeUrl()
- Specified by:
getFormIncludeUrl
in interfaceServerSelectionModel.Server
- Returns:
- Link for the include script. (/form/include.js?form_base=...)
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interfaceServerSelectionModel.Server
- Returns:
- Formcycle base URL. (eg. localhost:8080/xima-formcycle/)
-
getBaseFormIncludeUrl
public String getBaseFormIncludeUrl()
- Specified by:
getBaseFormIncludeUrl
in interfaceServerSelectionModel.Server
- Returns:
- Link for the include script. (/form/include.js)
-
getBaseFormProvideUrl
public String getBaseFormProvideUrl()
- Specified by:
getBaseFormProvideUrl
in interfaceServerSelectionModel.Server
- Returns:
String
base of the form provide url
-
getIncludeUrlFor
public String getIncludeUrlFor(String resourceName)
- Specified by:
getIncludeUrlFor
in interfaceServerSelectionModel.Server
- Parameters:
resourceName
- Name of a resource to include.- Returns:
- URL for the given resource (eg. jQuery)
-
-