|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.request.UserAgentNormalizerChain
public class UserAgentNormalizerChain
Chain of UserAgentNormalizers.
Apply the normalizers as filters, to the target user-agent. All the normalizer are applied, it is not a chain of responsibility.
| Constructor Summary | |
|---|---|
UserAgentNormalizerChain()
Default constructor. |
|
UserAgentNormalizerChain(List normalizers)
Constructor by list of UserAgentNormalizer. |
|
UserAgentNormalizerChain(UserAgentNormalizer[] normalizers)
Constructor by UserAgentNormalizer array. |
|
| Method Summary | |
|---|---|
void |
add(UserAgentNormalizer userAgentNormalizer)
Add a UserAgentNormalizer to the chain. |
List |
getAllNormalizers()
Return all UserAgentNormalizers managed by this chain. |
String |
normalize(String userAgent)
Return normalized user-agent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserAgentNormalizerChain()
public UserAgentNormalizerChain(List normalizers)
normalizers - The Listpublic UserAgentNormalizerChain(UserAgentNormalizer[] normalizers)
normalizers - The UserAgentNormalizer array used to implement the chain.| Method Detail |
|---|
public void add(UserAgentNormalizer userAgentNormalizer)
userAgentNormalizer - The UserAgentNormalizer to add.public String normalize(String userAgent)
normalize in interface UserAgentNormalizeruserAgent - String contains user-agent to normalize.
public List getAllNormalizers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||