public class NetworkLinkControl extends Object implements Cloneable
Controls the behavior of files fetched by a
<NetworkLinkControl> <minRefreshPeriod>0</minRefreshPeriod> <!-- float --> <maxSessionLength>-1</maxSessionLength> <!-- float --> <cookie>...</cookie> <!-- string --> <message>...</message> <!-- string --> <linkName>...</linkName> <!-- string --> <linkDescription>...</linkDescription> <!-- string --> <linkSnippet maxLines="2">...</linkSnippet> <!-- string --> <expires>...</expires> <!-- kml:dateTime --> <Update>...</Update> <!-- Change,Create,Delete --> <AbstractView>...</AbstractView> <!-- LookAt or Camera --> </NetworkLinkControl>See Also:
| Modifier and Type | Field and Description |
|---|---|
protected AbstractView |
abstractView
|
protected String |
cookie
|
protected String |
expires
|
protected String |
linkDescription
|
protected String |
linkName
|
protected Snippet |
linkSnippet
|
protected double |
maxSessionLength
|
protected String |
message
|
protected double |
minRefreshPeriod
|
protected List<AbstractObject> |
networkLinkControlObjectExtension
|
protected List<Object> |
networkLinkControlSimpleExtension |
protected Update |
update
|
| Constructor and Description |
|---|
NetworkLinkControl() |
protected double minRefreshPeriod
Specified in seconds,
protected double maxSessionLength
Specified in seconds,
protected String cookie
Use this element to append a string to the URL query on the next refresh of the network link. You can use this data in your script to provide more intelligent handling on the server side, including version querying and conditional file delivery.
protected String message
You can deliver a pop-up message, such as usage guidelines for your network link. The message appears when the network link is first loaded into Google Earth, or when it is changed in the network link control.
protected String linkName
You can control the name of the network link from the server, so that changes made to the name on the client side are overridden by the server.
protected String linkDescription
You can control the description of the network link from the server, so that changes made to the description on the client side are overridden by the server.
protected Snippet linkSnippet
You can control the snippet for the network link from the server, so that changes
made to the snippet on the client side are overridden by the server.
protected String expires
You can specify a date/time at which the link should be refreshed. This specification
takes effect only if the
protected Update update
Specifies an addition, change, or deletion to KML data that has already been loaded
using the specified URL. The
With
<Update> <targetHref>...<targetHref> <!-- URL --> <Change>...</Change> <Create>...</Create> <Delete>...</Delete> </Update>Contained By:
protected AbstractView abstractView
Defines a viewpoint associated with any element derived from Feature. See
This is an abstract element and cannot be used directly in a KML file. This element
is extended by the
<!-- abstract element; do not create -->
<!-- AbstractView --> <!-- Camera, LookAt -->
<!-- extends Object -->
<TimePrimitive>...</TimePrimitive> <!-- gx:TimeSpan or gx:TimeStamp -->
<-- /AbstractView -->
Extends:protected List<AbstractObject> networkLinkControlObjectExtension
public double getMinRefreshPeriod()
DoubleminRefreshPeriodpublic void setMinRefreshPeriod(double value)
value - allowed object is
DoubleminRefreshPeriodpublic double getMaxSessionLength()
DoublemaxSessionLengthpublic void setMaxSessionLength(double value)
value - allowed object is
DoublemaxSessionLengthpublic void setCookie(String value)
value - allowed object is
Stringcookiepublic void setMessage(String value)
value - allowed object is
Stringmessagepublic void setLinkName(String value)
value - allowed object is
StringlinkNamepublic String getLinkDescription()
StringlinkDescriptionpublic void setLinkDescription(String value)
value - allowed object is
StringlinkDescriptionpublic Snippet getLinkSnippet()
SnippetlinkSnippetpublic void setLinkSnippet(Snippet value)
value - allowed object is
SnippetlinkSnippetpublic void setExpires(String value)
value - allowed object is
Stringexpirespublic void setUpdate(Update value)
value - allowed object is
Updateupdatepublic AbstractView getAbstractView()
<AbstractView
<LookAt
<CameraabstractViewpublic void setAbstractView(AbstractView value)
value - allowed object is
<AbstractView
<LookAt
<CameraabstractViewpublic List<Object> getNetworkLinkControlSimpleExtension()
networkLinkControlSimpleExtensionpublic List<AbstractObject> getNetworkLinkControlObjectExtension()
networkLinkControlObjectExtensionpublic Snippet createAndSetLinkSnippet()
Snippet and set it to linkSnippet.
This method is a short version for:
Snippet snippet = new Snippet();
this.setLinkSnippet(snippet); public Update createAndSetUpdate(String targetHref, List<Object> createOrDeleteOrChange)
Update and set it to update.
This method is a short version for:
Update update = new Update();
this.setUpdate(update); createOrDeleteOrChange - required parametertargetHref - required parameterpublic LookAt createAndSetLookAt()
LookAt and set it to abstractView.
This method is a short version for:
LookAt lookAt = new LookAt();
this.setAbstractView(lookAt); public Camera createAndSetCamera()
Camera and set it to abstractView.
This method is a short version for:
Camera camera = new Camera();
this.setAbstractView(camera); public void setNetworkLinkControlSimpleExtension(List<Object> networkLinkControlSimpleExtension)
networkLinkControlSimpleExtension - networkLinkControlSimpleExtensionpublic NetworkLinkControl addToNetworkLinkControlSimpleExtension(Object networkLinkControlSimpleExtension)
networkLinkControlSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setNetworkLinkControlObjectExtension(List<AbstractObject> networkLinkControlObjectExtension)
networkLinkControlObjectExtension - networkLinkControlObjectExtensionpublic NetworkLinkControl addToNetworkLinkControlObjectExtension(AbstractObject networkLinkControlObjectExtension)
networkLinkControlObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic NetworkLinkControl withMinRefreshPeriod(double minRefreshPeriod)
minRefreshPeriod - required parametersetMinRefreshPeriod(double)public NetworkLinkControl withMaxSessionLength(double maxSessionLength)
maxSessionLength - required parametersetMaxSessionLength(double)public NetworkLinkControl withCookie(String cookie)
cookie - required parametersetCookie(String)public NetworkLinkControl withMessage(String message)
message - required parametersetMessage(String)public NetworkLinkControl withLinkName(String linkName)
linkName - required parametersetLinkName(String)public NetworkLinkControl withLinkDescription(String linkDescription)
linkDescription - required parametersetLinkDescription(String)public NetworkLinkControl withLinkSnippet(Snippet linkSnippet)
linkSnippet - required parametersetLinkSnippet(Snippet)public NetworkLinkControl withExpires(String expires)
expires - required parametersetExpires(String)public NetworkLinkControl withUpdate(Update update)
update - required parametersetUpdate(Update)public NetworkLinkControl withAbstractView(AbstractView abstractView)
abstractView - required parametersetAbstractView(AbstractView)public NetworkLinkControl withNetworkLinkControlSimpleExtension(List<Object> networkLinkControlSimpleExtension)
networkLinkControlSimpleExtension - required parameter#setNetworkLinkControlSimpleExtension(Listpublic NetworkLinkControl withNetworkLinkControlObjectExtension(List<AbstractObject> networkLinkControlObjectExtension)
networkLinkControlObjectExtension - required parameter#setNetworkLinkControlObjectExtension(List) public NetworkLinkControl clone()
Copyright © 2014 Micromata GmbH. All rights reserved.