Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

SlingFilter annotations in aem 6.4

Avatar

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
preethamk694748
Level 3

24-10-2018

Hi Team,

Please help me in converting the below scr annotations to osgi annotations for aem 6.4.

@SlingFilter(label="my label" , description = "my desc" , metatype = false, order = -9999)

@Properties({@Property(label = "my label" , description = "my description", name="pattern" , value = "/.*")});

public class MyClass implements Filter

{

}

Thanks,

Preetham K.R

View Entire Topic

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,272 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,272 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

24-10-2018

@Component(service = Filter.class, property = {

  Constants.SERVICE_DESCRIPTION + "= Filter incoming requests and create cookie",

  EngineConstants.SLING_FILTER_SCOPE + "=" + EngineConstants.FILTER_SCOPE_REQUEST,

"sling.filter.pattern=/.*",

  Constants.SERVICE_RANKING + "=-700"

})