Groovy Documentation

wslite.rest
[Groovy] Class ContentBuilder

java.lang.Object
  wslite.rest.ContentBuilder

class ContentBuilder

Property Summary
byte[] data

 
Constructor Summary
ContentBuilder(java.lang.String defaultContentType, java.lang.String defaultCharset)

 
Method Summary
ContentBuilder build(groovy.lang.Closure content)

void bytes(java.lang.Object content)

void charset(java.lang.Object charset)

java.lang.String getCharset()

java.lang.String getContentTypeHeader()

void json()

void json(java.util.Map content)

void json(java.util.List content)

void text(java.lang.Object content)

void type(java.lang.Object contentType)

void urlenc(java.util.Map content)

void xml(groovy.lang.Closure content)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

data

byte[] data


 
Constructor Detail

ContentBuilder

ContentBuilder(java.lang.String defaultContentType, java.lang.String defaultCharset)


 
Method Detail

build

ContentBuilder build(groovy.lang.Closure content)


bytes

void bytes(java.lang.Object content)


charset

void charset(java.lang.Object charset)


getCharset

java.lang.String getCharset()


getContentTypeHeader

java.lang.String getContentTypeHeader()


json

void json()


json

void json(java.util.Map content)


json

void json(java.util.List content)


text

void text(java.lang.Object content)


type

void type(java.lang.Object contentType)


urlenc

void urlenc(java.util.Map content)


xml

void xml(groovy.lang.Closure content)


 

Groovy Documentation