cn.dreampie.resource
类 TestResource

java.lang.Object
  继承者 cn.dreampie.route.core.Resource
      继承者 cn.dreampie.resource.ApiResource
          继承者 cn.dreampie.resource.TestResource

@API(value="/tests")
public class TestResource
extends ApiResource

Created by wangrenhui on 15/1/10.


构造方法摘要
TestResource()
           
 
方法摘要
 Map delete(String delete)
           
 File download()
           
 cn.dreampie.common.http.result.WebResult<List<User>> get(String get, Date x)
           
 Map patch(String patch)
           
 Map post(String post, Map<String,String> params)
           
 Map put(String put, Map<String,String> map)
           
 boolean test()
           
 void transaction()
           
 cn.dreampie.common.http.UploadedFile upload(cn.dreampie.common.http.UploadedFile testfile, String des)
           
 
从类 cn.dreampie.route.core.Resource 继承的方法
getParam, getParams, getPath, getRequest, getResponse
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TestResource

public TestResource()
方法详细信息

get

@GET(value="/:get")
public cn.dreampie.common.http.result.WebResult<List<User>> get(String get,
                                                                         Date x)

post

@POST(value="/:post")
public Map post(String post,
                          Map<String,String> params)

put

@PUT(value="/:put")
public Map put(String put,
                        Map<String,String> map)

patch

@PATCH(value="/:patch")
public Map patch(String patch)

delete

@DELETE(value="/:delete")
public Map delete(String delete)

transaction

@POST(value="/transaction")
public void transaction()

upload

@POST(value="/file")
@FILE(renamer=MyFileRenamer.class)
public cn.dreampie.common.http.UploadedFile upload(cn.dreampie.common.http.UploadedFile testfile,
                                                                                            String des)

download

@GET(value="/file")
public File download()

test

@GET(value="/boom")
public boolean test()


Copyright © 2015. All rights reserved.