@Deprecated public class TriggerResource extends ServerResource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_MAILBOX_CHALLENGE_SCHEME
Deprecated.
|
static java.lang.String |
ATTRIBUTE_MAILBOX_LOGIN
Deprecated.
|
static java.lang.String |
ATTRIBUTE_MAILBOX_PASSWORD
Deprecated.
|
static java.lang.String |
ATTRIBUTE_MAILBOX_URI
Deprecated.
|
Constructor and Description |
---|
TriggerResource()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptMails(Representation entity)
Deprecated.
Handles POST requests.
|
protected void |
callTarget(Resolver<java.lang.String> resolver)
Deprecated.
Requests the target resource.
|
protected void |
deleteMail(java.lang.String mailIdentifier)
Deprecated.
Deletes a mail after it has been processed.
|
protected void |
doInit()
Deprecated.
|
protected Representation |
getMail(java.lang.String identifier)
Deprecated.
Get the mail representation according to its identifier.
|
ChallengeScheme |
getMailboxChallengeScheme()
Deprecated.
Returns the scheme of the mailbox challenge.
|
java.lang.String |
getMailboxLogin()
Deprecated.
Returns the login for the mailbox.
|
java.lang.String |
getMailboxPassword()
Deprecated.
Returns the password for the mailbox.
|
java.lang.String |
getMailboxUri()
Deprecated.
Returns the URI of the mailbox.
|
protected java.util.List<java.lang.String> |
getMailIdentifiers()
Deprecated.
Returns the list of identifiers for the mails in the inbox
|
protected Reference |
getMailRef(java.lang.String identifier)
Deprecated.
Returns the reference of a mail according to its identifier.
|
java.lang.String |
getMailUriTemplate()
Deprecated.
Returns the template of the mail's URI.
|
MailResolver |
getResolver()
Deprecated.
Returns the resolver based on a mail.
|
protected MailResolver |
getResolver(java.lang.String mailIdentifier,
Representation email)
Deprecated.
Returns a new resolver based on a mail.
|
protected Representation |
getResponseRepresentation(java.util.List<java.lang.String> mailsSuccessful,
java.util.Map<java.lang.String,java.lang.String> mailsUnsuccessful)
Deprecated.
Returns the response's representation according to the list of
successfull and unsuccessfull mails.
|
protected Status |
getResponseStatus(java.util.List<java.lang.String> mailsSuccessful,
java.util.Map<java.lang.String,java.lang.String> mailsUnsuccessful)
Deprecated.
Returns the response's status according to the list of successfull and
unsuccessfull mails.
|
protected ChallengeResponse |
getTargetChallengeResponse(Resolver<java.lang.String> resolver)
Deprecated.
Returns the authentication data sent by client to the target according to
the a list of properties.
|
protected Representation |
getTargetEntity(Resolver<java.lang.String> resolver)
Deprecated.
Returns the entity sent to the target.
|
Method |
getTargetMethod()
Deprecated.
Returns the default target method.
|
protected Method |
getTargetMethod(Resolver<java.lang.String> resolver)
Deprecated.
Returns the target method according to a list of properties.
|
protected Reference |
getTargetRef(Resolver<java.lang.String> resolver)
Deprecated.
Returns the reference of the target according to the a list of
properties.
|
java.lang.String |
getTargetUri()
Deprecated.
Returns the target URI template.
|
boolean |
isTargetEntityEnabled()
Deprecated.
Indicate whether or not the target supports entity in the request.
|
void |
setMailboxChallengeScheme(ChallengeScheme mailboxChallengeScheme)
Deprecated.
Sets the scheme of the mailbox challenge.
|
void |
setMailboxLogin(java.lang.String mailboxLogin)
Deprecated.
Sets the login for the mailbox access.
|
void |
setMailboxPassword(java.lang.String mailboxPassword)
Deprecated.
Sets the password for the mailbox access.
|
void |
setMailboxUri(java.lang.String mailboxUri)
Deprecated.
Sets the URI of the mailbox.
|
void |
setMailUriTemplate(java.lang.String mailUriTemplate)
Deprecated.
Sets the URI template for the target.
|
void |
setTargetEntityEnabled(boolean targetEntityEnabled)
Deprecated.
Indicate whether or not the target supports entity in the request.
|
void |
setTargetMethod(Method targetMethod)
Deprecated.
Sets the default target method.
|
void |
setTargetUri(java.lang.String targetUri)
Deprecated.
Sets the target URI template.
|
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString
public static final java.lang.String ATTRIBUTE_MAILBOX_CHALLENGE_SCHEME
public static final java.lang.String ATTRIBUTE_MAILBOX_LOGIN
public static final java.lang.String ATTRIBUTE_MAILBOX_PASSWORD
public static final java.lang.String ATTRIBUTE_MAILBOX_URI
@Post public void acceptMails(Representation entity) throws ResourceException
entity
- The representation of the mails list.ResourceException
protected void callTarget(Resolver<java.lang.String> resolver) throws ResourceException
resolver
- The data model that provides parameters value.ResourceException
protected void deleteMail(java.lang.String mailIdentifier) throws ResourceException
mailIdentifier
- The identifier of the mailResourceException
protected void doInit() throws ResourceException
doInit
in class Resource
ResourceException
protected Representation getMail(java.lang.String identifier) throws ResourceException
identifier
- the mail identifier.ResourceException
public ChallengeScheme getMailboxChallengeScheme()
public java.lang.String getMailboxLogin()
public java.lang.String getMailboxPassword()
public java.lang.String getMailboxUri()
protected java.util.List<java.lang.String> getMailIdentifiers() throws ResourceException
ResourceException
protected Reference getMailRef(java.lang.String identifier) throws ResourceException
identifier
- The identifier of a mail.ResourceException
public java.lang.String getMailUriTemplate()
public MailResolver getResolver()
protected MailResolver getResolver(java.lang.String mailIdentifier, Representation email)
mailIdentifier
- Identifier of the mail.email
- The mail.protected Representation getResponseRepresentation(java.util.List<java.lang.String> mailsSuccessful, java.util.Map<java.lang.String,java.lang.String> mailsUnsuccessful)
mailsSuccessful
- The list of successfull mails.mailsUnsuccessful
- The list of successfull mails and related error message.protected Status getResponseStatus(java.util.List<java.lang.String> mailsSuccessful, java.util.Map<java.lang.String,java.lang.String> mailsUnsuccessful)
mailsSuccessful
- The list of successfull mails.mailsUnsuccessful
- The list of successfull mails and related error message.protected ChallengeResponse getTargetChallengeResponse(Resolver<java.lang.String> resolver) throws ResourceException
resolver
- The resolver.ResourceException
protected Representation getTargetEntity(Resolver<java.lang.String> resolver)
resolver
- the resolver.public Method getTargetMethod()
protected Method getTargetMethod(Resolver<java.lang.String> resolver)
resolver
- The resolver.protected Reference getTargetRef(Resolver<java.lang.String> resolver) throws ResourceException
resolver
- The resolver.ResourceException
public java.lang.String getTargetUri()
public boolean isTargetEntityEnabled()
public void setMailboxChallengeScheme(ChallengeScheme mailboxChallengeScheme)
mailboxChallengeScheme
- The scheme of the mailbox challenge.public void setMailboxLogin(java.lang.String mailboxLogin)
mailboxLogin
- The login for the mailbox access.public void setMailboxPassword(java.lang.String mailboxPassword)
mailboxPassword
- The password for the mailbox access.public void setMailboxUri(java.lang.String mailboxUri)
mailboxUri
- the URI of the mailbox.public void setMailUriTemplate(java.lang.String mailUriTemplate)
mailUriTemplate
- the URI template for the target.public void setTargetEntityEnabled(boolean targetEntityEnabled)
targetEntityEnabled
- True if the target supports entity in the request, false,
otherwise.public void setTargetMethod(Method targetMethod)
targetMethod
- The default target method.public void setTargetUri(java.lang.String targetUri)
targetUri
- The target URI template.Copyright © 2005-2020 Restlet.