public class ContextEmpty extends Context
| 构造器和说明 |
|---|
ContextEmpty() |
accept, action, attr, attr, attrClear, attrMap, attrSet, attrSet, body, body, bodyAsBytes, bodyNew, bodyNew, charset, close, commit, contentType, contentTypeNew, controller, cookieRemove, cookieSet, cookieSet, cookieSet, current, file, getHandled, getRendered, header, header, isMultipart, isMultipartFormData, output, output, outputAsFile, outputAsFile, outputAsHtml, outputAsJson, paramAsBean, paramAsDecimal, paramAsDecimal, paramAsDouble, paramAsDouble, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramsAdd, paramSet, pathAsUpper, pathMap, pathNew, pathNew, protocolAsUpper, realIp, remoting, remotingSet, render, render, renderAndReturn, session, session, sessionClear, sessionId, sessionSet, sessionState, sessionStateInit, setHandled, setRendered, status, userAgentpublic static Context create()
public long contentLength()
ContextcontentLength 在类中 Contextpublic String contentType()
ContextcontentType 在类中 Contextpublic String queryString()
queryString 在类中 Contextpublic InputStream bodyAsStream() throws IOException
ContextbodyAsStream 在类中 ContextIOExceptionpublic String[] paramValues(String key)
ContextparamValues 在类中 Contextpublic List<UploadedFile> files(String key) throws Exception
Contextprotected void contentTypeDoSet(String contentType)
contentTypeDoSet 在类中 Contextpublic void output(InputStream stream)
public OutputStream outputStream()
outputStream 在类中 Contextpublic void flush()
throws IOException
flush 在类中 ContextIOExceptionCopyright © 2021. All rights reserved.