net.csdn.modules.http
Interface RestResponse

All Known Implementing Classes:
MockRestResponse

public interface RestResponse

BlogInfo: WilliamZhu Date: 12-6-12 Time: 下午10:27


Method Summary
 String content()
           
 void cookie(Map cookieInfo)
           
 void cookie(String name, String value)
           
 Object originContent()
           
 RestResponse originContent(Object obj)
           
 void redirectTo(String path, Map params)
           
 int status()
           
 void write(byte[] content)
           
 void write(int httpStatus, String content)
           
 void write(int httpStatus, String content, ViewType viewType)
           
 void write(String content)
           
 void write(String content, ViewType viewType)
           
 

Method Detail

write

void write(String content)

write

void write(String content,
           ViewType viewType)

write

void write(int httpStatus,
           String content)

write

void write(int httpStatus,
           String content,
           ViewType viewType)

write

void write(byte[] content)

cookie

void cookie(String name,
            String value)

cookie

void cookie(Map cookieInfo)

content

String content()

originContent

Object originContent()

redirectTo

void redirectTo(String path,
                Map params)

originContent

RestResponse originContent(Object obj)

status

int status()


Copyright © 2014. All Rights Reserved.