public class Akismet extends Object
| Constructor and Description |
|---|
Akismet(org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commentCheck(AkismetComment comment)
This is basically the core of everything.
|
String |
getApiConsumer() |
String |
getApiEndpoint() |
String |
getApiKey() |
String |
getApiVersion() |
org.apache.http.client.HttpClient |
getHttpClient() |
String |
getUserAgent() |
boolean |
isEnabled() |
void |
setApiConsumer(String apiConsumer) |
void |
setApiEndpoint(String apiEndpoint) |
void |
setApiKey(String apikey) |
void |
setApiVersion(String apiVersion) |
void |
setEnabled(boolean enabled) |
boolean |
submitHam(AkismetComment comment)
This call is intended for the marking of false positives,
things that were incorrectly marked as spam.
|
boolean |
submitSpam(AkismetComment comment)
This call is for submitting comments that weren't marked
as spam but should have been.
|
boolean |
verifyKey()
The key verification call should be made before beginning to use the service.
|
public String getUserAgent()
public String getApiEndpoint()
public void setApiEndpoint(String apiEndpoint)
public String getApiVersion()
public void setApiVersion(String apiVersion)
public org.apache.http.client.HttpClient getHttpClient()
public String getApiKey()
public void setApiKey(String apikey)
public String getApiConsumer()
public void setApiConsumer(String apiConsumer)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean verifyKey()
throws AkismetException
AkismetExceptionpublic boolean commentCheck(AkismetComment comment) throws AkismetException
AkismetExceptionpublic boolean submitSpam(AkismetComment comment) throws AkismetException
comment - AkismetExceptionpublic boolean submitHam(AkismetComment comment) throws AkismetException
comment - AkismetExceptionCopyright © 2011-2014 michael-simons.eu. All Rights Reserved.