Hi

I tried to create a servlet that handles all calls for a particular path. So I 
just create a subclass of 'SlingAllMethodsServlet':

@Component(
  label = "%client.post.servlet.name",
  description = "%client.post.servlet.description",
  metatype = false,
  immediate = true
)
//@Service( value = AbstractSlingPostOperation.class )
@Service
@Property( name = "sling.servlet.paths", value = { "/client" } )
public class ClientPostServlet
  extends SlingAllMethodsServlet

Still the servlet is not called using this:

        curl -X POST http://localhost:8080/client/myTest

but it works with this:

        curl -X POST http://localhost:8080/client.servlet/myTest

Does this mean that the a servlet path without '.servlet' suffix is only 
handled when that particular path is entered? And with the '.servlet' suffix 
any path after that is redirected to that servlet?

Is there any way to tell Sling to redirect a sub path to a particular servlet 
without the '.servlet' suffix??

Thanks - Andy

Reply via email to