com.google.zxing.client.result
Class URIParsedResult

java.lang.Object
  extended by com.google.zxing.client.result.ParsedResult
      extended by com.google.zxing.client.result.URIParsedResult

public final class URIParsedResult
extends ParsedResult

Author:
Sean Owen

Constructor Summary
URIParsedResult(java.lang.String uri, java.lang.String title)
           
 
Method Summary
 java.lang.String getDisplayResult()
           
 java.lang.String getTitle()
           
 java.lang.String getURI()
           
 boolean isPossiblyMaliciousURI()
           
 
Methods inherited from class com.google.zxing.client.result.ParsedResult
getType, maybeAppend, maybeAppend, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URIParsedResult

public URIParsedResult(java.lang.String uri,
                       java.lang.String title)
Method Detail

getURI

public java.lang.String getURI()

getTitle

public java.lang.String getTitle()

isPossiblyMaliciousURI

public boolean isPossiblyMaliciousURI()
Returns:
true if the URI contains suspicious patterns that may suggest it intends to mislead the user about its true nature. At the moment this looks for the presence of user/password syntax in the host/authority portion of a URI which may be used in attempts to make the URI's host appear to be other than it is. Example: http://yourbank.com@phisher.com This URI connects to phisher.com but may appear to connect to yourbank.com at first glance.

getDisplayResult

public java.lang.String getDisplayResult()
Specified by:
getDisplayResult in class ParsedResult