cz.geek.cloudmailin
Class AbstractCloudMailinController

java.lang.Object
  extended by cz.geek.cloudmailin.AbstractCloudMailinController

public abstract class AbstractCloudMailinController
extends Object


Constructor Summary
AbstractCloudMailinController()
           
 
Method Summary
 void get(javax.servlet.http.HttpServletResponse resp)
           
protected abstract  org.springframework.http.ResponseEntity<String> handle(CloudMailin data)
          This method should return eg.
protected  CloudMailin model()
           
 org.springframework.http.ResponseEntity<String> post(CloudMailin data, org.springframework.web.context.request.WebRequest req)
           
 void setSecret(String secret)
           
 void setValidate(boolean validate)
           
protected  boolean validate()
           
protected  void validate(org.springframework.web.context.request.WebRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCloudMailinController

public AbstractCloudMailinController()
Method Detail

setSecret

public void setSecret(String secret)

setValidate

public void setValidate(boolean validate)

post

@RequestMapping(method=POST)
public org.springframework.http.ResponseEntity<String> post(@ModelAttribute
                                                                           CloudMailin data,
                                                                           org.springframework.web.context.request.WebRequest req)

get

@RequestMapping
public void get(javax.servlet.http.HttpServletResponse resp)
         throws IOException
Throws:
IOException

model

@ModelAttribute
protected CloudMailin model()

handle

protected abstract org.springframework.http.ResponseEntity<String> handle(CloudMailin data)
This method should return eg. new ResponseEntity<String>(HttpStatus.OK)

Parameters:
data - request data
Returns:
response

validate

protected boolean validate()

validate

protected void validate(org.springframework.web.context.request.WebRequest req)


Copyright © 2011. All Rights Reserved.