|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.client.UserAgentSettings
public class UserAgentSettings
A class to hold user agent specific properties. For example, in streaming endpoints, a certain number of bytes need to be written before the streaming connection can be used and this value is specific to user agents. Similarly, the number of simultaneous connections a session can have is user agent specific.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_STREAMING_CONNECTIONS_PER_SESSION
The default number of streaming connections per session. |
static int |
FIREFOX_KICKSTART_BYTES
Bytes needed to kickstart the streaming connections for Firefox. |
static String |
GENERIC_FIREFOX_USER_AGENT
The prefix of the version token used by Firefox in its user agent values. |
static String |
GENERIC_MSIE_USER_AGENT
The prefix of the version token used by IE in its user agent values. |
static int |
MSIE_KICKSTART_BYTES
Bytes needed to kickstart the streaming connections for IE. |
| Constructor Summary | |
|---|---|
UserAgentSettings()
|
|
| Method Summary | |
|---|---|
static UserAgentSettings |
getAgent(String matchOn)
Static method to retrieve pre-initialized IE and Firefox user agents. |
int |
getKickstartBytes()
Returns the number of bytes needed to kickstart the streaming connections for the user agent. |
String |
getMatchOn()
Returns the String to use to match the agent. |
int |
getMaxStreamingConnectionsPerSession()
Returns the number of simultaneous streaming connections per session the user agent supports. |
void |
setKickstartBytes(int kickstartBytes)
Sets the number of bytes needed to kickstart the streaming connections for the user agent. |
void |
setMatchOn(String matchOn)
Sets the String to use to match the agent. |
void |
setMaxStreamingConnectionsPerSession(int maxStreamingConnectionsPerSession)
Sets the number of simultaneous streaming connections per session the user agent supports. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GENERIC_MSIE_USER_AGENT
public static final int MSIE_KICKSTART_BYTES
public static final String GENERIC_FIREFOX_USER_AGENT
public static final int FIREFOX_KICKSTART_BYTES
public static final int DEFAULT_MAX_STREAMING_CONNECTIONS_PER_SESSION
| Constructor Detail |
|---|
public UserAgentSettings()
| Method Detail |
|---|
public static UserAgentSettings getAgent(String matchOn)
matchOn - String to use match the agent.public String getMatchOn()
public void setMatchOn(String matchOn)
matchOn - The String to use to match the agent.public int getKickstartBytes()
public void setKickstartBytes(int kickstartBytes)
kickstartBytes - The number of bytes needed to kickstart the streaming
connections for the user agent.public int getMaxStreamingConnectionsPerSession()
public void setMaxStreamingConnectionsPerSession(int maxStreamingConnectionsPerSession)
maxStreamingConnectionsPerSession - The number of simultaneous
streaming connections per session the user agent supports.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/client/UserAgentSettings.html