net.java.otr4j
Class OtrPolicyImpl

Package class diagram package OtrPolicyImpl
java.lang.Object
  extended by net.java.otr4j.OtrPolicyImpl
All Implemented Interfaces:
OtrPolicy

public class OtrPolicyImpl
extends Object
implements OtrPolicy


Field Summary
 
Fields inherited from interface net.java.otr4j.OtrPolicy
ALLOW_V1, ALLOW_V2, ERROR_START_AKE, NEVER, OPPORTUNISTIC, OTRL_POLICY_ALWAYS, OTRL_POLICY_DEFAULT, OTRL_POLICY_MANUAL, REQUIRE_ENCRYPTION, SEND_WHITESPACE_TAG, VERSION_MASK, WHITESPACE_START_AKE
 
Constructor Summary
OtrPolicyImpl()
           
OtrPolicyImpl(int policy)
           
 
Method Summary
 boolean equals(Object obj)
           
 boolean getAllowV1()
           
 boolean getAllowV2()
           
 boolean getEnableAlways()
           
 boolean getEnableManual()
           
 boolean getErrorStartAKE()
           
 int getPolicy()
           
 boolean getRequireEncryption()
           
 boolean getSendWhitespaceTag()
           
 boolean getWhitespaceStartAKE()
           
 int hashCode()
           
 void setAllowV1(boolean value)
           
 void setAllowV2(boolean value)
           
 void setEnableAlways(boolean value)
           
 void setEnableManual(boolean value)
           
 void setErrorStartAKE(boolean value)
           
 void setRequireEncryption(boolean value)
           
 void setSendWhitespaceTag(boolean value)
           
 void setWhitespaceStartAKE(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtrPolicyImpl

public OtrPolicyImpl()

OtrPolicyImpl

public OtrPolicyImpl(int policy)
Method Detail

getPolicy

public int getPolicy()
Specified by:
getPolicy in interface OtrPolicy

getAllowV1

public boolean getAllowV1()
Specified by:
getAllowV1 in interface OtrPolicy

getAllowV2

public boolean getAllowV2()
Specified by:
getAllowV2 in interface OtrPolicy

getErrorStartAKE

public boolean getErrorStartAKE()
Specified by:
getErrorStartAKE in interface OtrPolicy

getRequireEncryption

public boolean getRequireEncryption()
Specified by:
getRequireEncryption in interface OtrPolicy

getSendWhitespaceTag

public boolean getSendWhitespaceTag()
Specified by:
getSendWhitespaceTag in interface OtrPolicy

getWhitespaceStartAKE

public boolean getWhitespaceStartAKE()
Specified by:
getWhitespaceStartAKE in interface OtrPolicy

setAllowV1

public void setAllowV1(boolean value)
Specified by:
setAllowV1 in interface OtrPolicy

setAllowV2

public void setAllowV2(boolean value)
Specified by:
setAllowV2 in interface OtrPolicy

setErrorStartAKE

public void setErrorStartAKE(boolean value)
Specified by:
setErrorStartAKE in interface OtrPolicy

setRequireEncryption

public void setRequireEncryption(boolean value)
Specified by:
setRequireEncryption in interface OtrPolicy

setSendWhitespaceTag

public void setSendWhitespaceTag(boolean value)
Specified by:
setSendWhitespaceTag in interface OtrPolicy

setWhitespaceStartAKE

public void setWhitespaceStartAKE(boolean value)
Specified by:
setWhitespaceStartAKE in interface OtrPolicy

getEnableAlways

public boolean getEnableAlways()
Specified by:
getEnableAlways in interface OtrPolicy

setEnableAlways

public void setEnableAlways(boolean value)
Specified by:
setEnableAlways in interface OtrPolicy

getEnableManual

public boolean getEnableManual()
Specified by:
getEnableManual in interface OtrPolicy

setEnableManual

public void setEnableManual(boolean value)
Specified by:
setEnableManual in interface OtrPolicy

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 Beem-project.com. All Rights Reserved.