de.phleisch.app.itsucks.filter
Interface JobFilter

All Known Implementing Classes:
AbstractJobFilter, ChangeHttpResponseCodeBehaviourFilter, ContentFilter, CookieFilter, DownloadJobFilter, FileSizeFilter, HttpAuthenticationFilter, MaxLinksToFollowFilter, RegExpJobFilter, TimeLimitFilter

public interface JobFilter

This interface is for a implementation which is used to filter a job when adding it to the job list.

Author:
olli

Method Summary
 Job filter(Job pJob)
          Filters the job.
 void setContext(EventContext pContext)
          Sets the context the filter is used in.
 boolean supports(Job pJob)
          Asks the Filter if it supports the given job.
 

Method Detail

supports

boolean supports(Job pJob)
Asks the Filter if it supports the given job. This method is called before the filtering starts. It is not allowed to change the job.

Parameters:
pJob -
Returns:

filter

Job filter(Job pJob)
           throws java.lang.Exception
Filters the job. At this operation any modification can me made to the job like changing the priority, state, parameter etc.

Parameters:
pJob -
Returns:
Throws:
java.lang.Exception

setContext

void setContext(EventContext pContext)
Sets the context the filter is used in.

Parameters:
pContext -


Copyright © 2010. All Rights Reserved.