All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticmq.rest.sqs.DeleteQueueHandlerModule.scala Maven / Gradle / Ivy

The newest version!
package org.elasticmq.rest.sqs

import org.elasticmq.rest.RequestHandlerBuilder._

import org.jboss.netty.handler.codec.http.HttpMethod._

import Constants._
import ActionUtil._

trait DeleteQueueHandlerModule { this: ClientModule with RequestHandlerLogicModule =>
  val deleteQueueLogic = logicWithQueue((queue, request, parameters) => {
    queue.delete()

    
      
        {EmptyRequestId}
      
    
  })

  val DeleteQueueAction = createAction("DeleteQueue")

  val deleteQueueGetHandler = (createHandler
          forMethod GET
          forPath (QueuePath)
          requiringParameterValues Map(DeleteQueueAction)
          running deleteQueueLogic)

  val deleteQueuePostHandler = (createHandler
          forMethod POST
          forPath (QueuePath)
          includingParametersFromBody()
          requiringParameterValues Map(DeleteQueueAction)
          running deleteQueueLogic)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy