Package | Description |
---|---|
org.takes |
Take, Java web development framework.
|
org.takes.facets.auth |
Auth.
|
org.takes.facets.auth.social |
Social authenticators.
|
org.takes.facets.fallback |
Fallback.
|
org.takes.facets.flash |
Flash messages.
|
org.takes.facets.fork |
Fork.
|
org.takes.facets.forward |
Forward.
|
org.takes.facets.hamcrest |
Matchers.
|
org.takes.facets.ret |
Returns.
|
org.takes.rs |
Responses.
|
org.takes.rs.xe |
Xembly responses.
|
org.takes.tk |
Take.
|
Modifier and Type | Method and Description |
---|---|
Response |
Take.act(Request req)
Convert request to response.
|
Modifier and Type | Class and Description |
---|---|
class |
RsLogout
Logout response.
|
Modifier and Type | Method and Description |
---|---|
Response |
TkAuth.act(Request request) |
Response |
TkSecure.act(Request request) |
Response |
PsToken.exit(Response res,
Identity idt) |
Response |
PsEmpty.exit(Response response,
Identity identity) |
Response |
Pass.exit(Response response,
Identity identity)
Wrap the response with the user.
|
Response |
PsBasic.exit(Response response,
Identity identity) |
Response |
PsLogout.exit(Response response,
Identity identity) |
Response |
PsCookie.exit(Response res,
Identity idt) |
Response |
PsFixed.exit(Response response,
Identity identity) |
Response |
PsAll.exit(Response response,
Identity identity) |
Response |
PsByFlag.exit(Response response,
Identity identity) |
Response |
PsChain.exit(Response response,
Identity identity) |
Response |
PsFake.exit(Response response,
Identity identity) |
Modifier and Type | Method and Description |
---|---|
Response |
PsToken.exit(Response res,
Identity idt) |
Response |
PsEmpty.exit(Response response,
Identity identity) |
Response |
Pass.exit(Response response,
Identity identity)
Wrap the response with the user.
|
Response |
PsBasic.exit(Response response,
Identity identity) |
Response |
PsLogout.exit(Response response,
Identity identity) |
Response |
PsCookie.exit(Response res,
Identity idt) |
Response |
PsFixed.exit(Response response,
Identity identity) |
Response |
PsAll.exit(Response response,
Identity identity) |
Response |
PsByFlag.exit(Response response,
Identity identity) |
Response |
PsChain.exit(Response response,
Identity identity) |
Response |
PsFake.exit(Response response,
Identity identity) |
Constructor and Description |
---|
RsLogout(Response res)
Ctor.
|
RsLogout(Response res,
String cookie)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Response |
PsFacebook.exit(Response response,
Identity identity) |
Response |
PsGithub.exit(Response response,
Identity identity) |
Response |
PsTwitter.exit(Response response,
Identity identity) |
Response |
PsLinkedin.exit(Response response,
Identity identity) |
Response |
PsGoogle.exit(Response response,
Identity identity) |
Modifier and Type | Method and Description |
---|---|
Response |
PsFacebook.exit(Response response,
Identity identity) |
Response |
PsGithub.exit(Response response,
Identity identity) |
Response |
PsTwitter.exit(Response response,
Identity identity) |
Response |
PsLinkedin.exit(Response response,
Identity identity) |
Response |
PsGoogle.exit(Response response,
Identity identity) |
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
Fallback.route(RqFallback req)
Dispatch this request and either swallow it or ignore.
|
Opt<Response> |
FbWrap.route(RqFallback req) |
Constructor and Description |
---|
FbFixed(Response response)
Ctor.
|
FbStatus(int code,
Response response)
Ctor.
|
Modifier and Type | Class and Description |
---|---|
class |
RsFlash
Forwarding response.
|
Modifier and Type | Method and Description |
---|---|
Response |
TkFlash.act(Request request) |
Modifier and Type | Class and Description |
---|---|
class |
RsFork
Response based on forks.
|
Modifier and Type | Method and Description |
---|---|
Response |
TkFork.act(Request request) |
Response |
TkRegex.Fake.act(Request req) |
Response |
TkRegex.act(RqRegex req)
Route this request.
|
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
FkAuthenticated.route(Request req) |
Opt<Response> |
FkRegex.route(Request req) |
Opt<Response> |
Fork.route(Request req)
Process this request or ignore it.
|
Opt<Response> |
FkAnonymous.route(Request req) |
Opt<Response> |
FkMethods.route(Request req) |
Opt<Response> |
FkEncoding.route(Request req) |
Opt<Response> |
FkWrap.route(Request req) |
Opt<Response> |
FkChain.route(Request request) |
Opt<Response> |
FkContentType.route(Request req) |
Opt<Response> |
FkHitRefresh.route(Request req) |
Opt<Response> |
FkAgent.route(Request req) |
Opt<Response> |
FkTypes.route(Request req) |
Opt<Response> |
FkParams.route(Request req) |
Constructor and Description |
---|
FkContentType(String atype,
Response response)
Ctor.
|
FkEncoding(String enc,
Response response)
Ctor.
|
FkMethods(String mtd,
Response rsp)
Ctor.
|
FkRegex(Pattern ptn,
Response rsp)
Ctor.
|
FkRegex(String ptn,
Response rsp)
Ctor.
|
FkTypes(String list,
Response resp)
Ctor.
|
Modifier and Type | Class and Description |
---|---|
class |
RsFailure
|
class |
RsForward
Forwarding response.
|
Modifier and Type | Method and Description |
---|---|
Response |
TkForward.act(Request req) |
Constructor and Description |
---|
RsForward(Response res)
Ctor.
|
RsForward(Response res,
CharSequence loc)
Ctor.
|
RsForward(Response res,
int code)
Ctor.
|
RsForward(Response res,
int code,
CharSequence loc)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Integer |
HmRsStatus.featureValueOf(Response response) |
Iterable<String> |
HmRsHeader.headers(Response item) |
InputStream |
HmRsBody.itemBody(Response item) |
InputStream |
HmRsTextBody.itemBody(Response item) |
Modifier and Type | Class and Description |
---|---|
class |
RsReturn
Response decorator which sets cookie with return location.
|
Modifier and Type | Method and Description |
---|---|
Response |
TkReturn.act(Request request) |
Constructor and Description |
---|
RsReturn(Response res,
String loc)
Ctor.
|
RsReturn(Response res,
String loc,
String cookie)
Ctor.
|
Modifier and Type | Class and Description |
---|---|
class |
RsBuffered
Response with buffered body.
|
class |
RsEmpty
Empty response.
|
class |
RsFluent
Fluent response.
|
class |
RsGzip
Response compressed with GZIP, according to RFC 1952.
|
class |
RsHtml
HTML response decorator.
|
class |
RsJson
Response that converts Java object to JSON.
|
class |
RsPrettyJson
Response with properly indented JSON body.
|
class |
RsPrettyXml
Response with properly indented XML body.
|
class |
RsPrint
Response decorator that can print an entire response in HTTP format.
|
class |
RsRedirect
Redirect.
|
class |
RsSimple
Simple response.
|
class |
RsText
Plain text response decorator.
|
class |
RsVelocity
Response that converts Velocity template to text.
|
class |
RsWithBody
Response decorator, with body.
|
class |
RsWithCookie
Response decorator, with an additional cookie.
|
class |
RsWithHeader
Response decorator, with an additional header.
|
class |
RsWithHeaders
Response decorator, with an additional headers.
|
class |
RsWithoutHeader
Response decorator, without a header.
|
class |
RsWithStatus
Response decorator, with status code.
|
class |
RsWithType
Response decorator, with content type.
|
static class |
RsWithType.Html
Response decorator, with content type text/html.
|
static class |
RsWithType.Json
Response decorator, with content type application/json.
|
static class |
RsWithType.Text
Response decorator, with content type text/plain.
|
static class |
RsWithType.Xml
Response decorator, with content type text/xml.
|
class |
RsWrap
Response decorator.
|
class |
RsXslt
Response that converts XML into HTML using attached XSL stylesheet.
|
Constructor and Description |
---|
Html(Response res)
Constructs a
HTML that will add text/html as the content type
header to the response. |
Html(Response res,
Charset charset)
Constructs a
HTML that will add text/html as the content type
header to the response using the specified charset as charset
parameter value. |
Json(Response res)
Constructs a
JSON that will add application/json as the
content type header to the response. |
Json(Response res,
Charset charset)
Constructs a
JSON that will add application/json as the
content type header to the response using the specified charset as
charset parameter value. |
RsBuffered(Response res)
Ctor.
|
RsFluent(Response res)
Ctor.
|
RsGzip(Response res)
Ctor.
|
RsHtml(Response res)
Ctor.
|
RsHtml(Response res,
byte[] body)
Ctor.
|
RsHtml(Response res,
CharSequence body)
Ctor.
|
RsHtml(Response res,
InputStream body)
Ctor.
|
RsHtml(Response res,
URL url)
Ctor.
|
RsJson(Response res)
Ctor.
|
RsPrettyJson(Response res)
Ctor.
|
RsPrettyXml(Response res)
Ctor.
|
RsPrint(Response res)
Ctor.
|
RsText(Response res)
Ctor.
|
RsText(Response res,
byte[] body)
Ctor.
|
RsText(Response res,
CharSequence body)
Ctor.
|
RsText(Response res,
InputStream body)
Ctor.
|
RsText(Response res,
URL url)
Ctor.
|
RsWithBody(Response res,
byte[] body)
Ctor.
|
RsWithBody(Response res,
CharSequence body)
Constructs a
RsWithBody with the specified response and body. |
RsWithBody(Response res,
CharSequence body,
Charset charset)
Constructs a
RsWithBody with the specified response and body. |
RsWithBody(Response res,
InputStream body)
Ctor.
|
RsWithBody(Response res,
URL url)
Ctor.
|
RsWithCookie(Response res,
CharSequence name,
CharSequence value,
CharSequence... attrs)
Ctor.
|
RsWithHeader(Response res,
CharSequence header)
Ctor.
|
RsWithHeader(Response res,
CharSequence name,
CharSequence value)
Ctor.
|
RsWithHeaders(Response res,
CharSequence... headers)
Ctor.
|
RsWithHeaders(Response res,
Iterable<? extends CharSequence> headers)
Ctor.
|
RsWithoutHeader(Response res,
CharSequence name)
Ctor.
|
RsWithStatus(Response res,
int code)
Ctor.
|
RsWithStatus(Response res,
int code,
CharSequence rsn)
Ctor.
|
RsWithType(Response res,
CharSequence type)
Constructs a
RsWithType that will add the content type header to
the response using the specified type as media type. |
RsWithType(Response res,
CharSequence type,
Charset charset)
Constructs a
RsWithType that will add the content type header to
the response using the specified type as media type and the specified
charset as charset parameter value. |
RsWrap(Response res)
Ctor.
|
RsXslt(Response rsp)
Ctor.
|
RsXslt(Response rsp,
URIResolver resolver)
Ctor.
|
Text(Response res)
Constructs a
Text that will add text/plain as the content
type header to the response. |
Text(Response res,
Charset charset)
Constructs a
Text that will add text/plain as the content
type header to the response using the specified charset as charset
parameter value. |
Xml(Response res)
Constructs a
XML that will add text/xml as the content type
header to the response. |
Xml(Response res,
Charset charset)
Constructs a
XML that will add text/xml as the content type
header to the response using the specified charset as charset
parameter value. |
Modifier and Type | Class and Description |
---|---|
class |
RsXembly
Response that converts Xembly object to XML.
|
Modifier and Type | Method and Description |
---|---|
Response |
TkCors.act(Request req) |
Response |
TkSlf4j.act(Request req) |
Response |
TkSslOnly.act(Request req) |
Response |
TkReadAlways.act(Request req) |
Response |
TkWrap.act(Request req) |
Response |
TkRetry.act(Request req) |
Response |
TkProxy.act(Request req) |
Response |
TkEmpty.act(Request req) |
Constructor and Description |
---|
TkFixed(Response res)
Ctor.
|
Constructor and Description |
---|
TkFixed(Scalar<Response> res)
Ctor.
|
Copyright © 2015–2018 Take. All rights reserved.