|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alembik.util.WURFLUtils
public final class WURFLUtils
The class provides utility methods to access certain parameters set by WURFL User-Agent resolver.
TranscodingService.getTranscodingProfile(org.openmobilealliance.schema.sti.v1_0.TranscodingJob)
Field Summary | |
---|---|
static java.lang.String |
WURFL_FALLBACK_ID
The name of the Property , which specifies the WURFL fallback
device ID of a matched device. |
static java.lang.String |
WURFL_UA
The name of the Property , which specifies the WURFL UA string
of a matched device. |
Constructor Summary | |
---|---|
WURFLUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getFallBackId(TranscodingParams profile)
Returns the ID of the fallback device set in the given transcoding profile. |
static java.lang.String |
getMatchedUA(TranscodingParams profile)
Returns the User-Agent string of a matched device set in the given transcoding profile. |
static void |
setFallBackId(TranscodingParams profile,
java.lang.String fallbackID)
Sets the fallback device ID of the matched device. |
static void |
setMatchedUA(TranscodingParams profile,
java.lang.String userAgent)
Sets the User-Agent string of a matched device. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WURFL_FALLBACK_ID
Property
, which specifies the WURFL fallback
device ID of a matched device.
public static final java.lang.String WURFL_UA
Property
, which specifies the WURFL UA string
of a matched device.
Constructor Detail |
---|
public WURFLUtils()
Method Detail |
---|
public static java.lang.String getFallBackId(TranscodingParams profile)
profile
- transcoding profile
WURFL_FALLBACK_ID
,
getFallBackId(TranscodingParams)
public static void setFallBackId(TranscodingParams profile, java.lang.String fallbackID)
profile
- transcoding profilefallbackID
- fallback device IDWURFL_FALLBACK_ID
,
setFallBackId(TranscodingParams, String)
public static java.lang.String getMatchedUA(TranscodingParams profile)
profile
- transcoding profile
WURFL_UA
,
setMatchedUA(TranscodingParams, String)
public static void setMatchedUA(TranscodingParams profile, java.lang.String userAgent)
profile
- transcoding profileuserAgent
- device's UA stringWURFL_UA
,
getMatchedUA(TranscodingParams)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |