
public abstract class ONetworkProtocolHttpAbstract extends ONetworkProtocol
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected OUser |
account |
protected OChannelTextServer |
channel |
protected OHttpNetworkCommandManager |
cmdManager |
protected OClientConnection |
connection |
protected OHttpRequest |
request |
protected OHttpResponse |
response |
serverMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ONetworkProtocolHttpAbstract(OServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
config(OServerNetworkListener iListener,
OServer iServer,
Socket iSocket,
OContextConfiguration iConfiguration) |
protected void |
connectionClosed() |
protected void |
connectionError() |
protected String |
deCompress(byte[] zipBytes) |
protected void |
execute() |
OUser |
getAccount() |
String[] |
getAdditionalResponseHeaders() |
OChannel |
getChannel() |
OHttpNetworkCommandManager |
getCommandManager() |
OHttpRequest |
getRequest() |
OHttpResponse |
getResponse() |
String |
getResponseCharSet() |
String |
getSessionID() |
protected void |
handleError(Throwable e,
OHttpRequest iRequest) |
protected void |
readAllContent(OHttpRequest iRequest) |
protected void |
registerStatelessCommands(OServerNetworkListener iListener) |
protected void |
sendError(int iCode,
String iReason,
String iHeaders,
String iContentType,
String iContent,
boolean iKeepAlive) |
protected void |
sendResponseHeaders(String iContentType,
boolean iKeepAlive) |
void |
sendShutdown() |
protected void |
sendStatus(int iStatus,
String iReason) |
protected void |
sendTextContent(int iCode,
String iReason,
String iHeaders,
String iContentType,
String iContent,
boolean iKeepAlive) |
void |
service() |
void |
setResponseCharSet(String responseCharSet) |
void |
shutdown() |
protected void |
timeout() |
protected void |
writeLine(String iContent) |
executor, getListeningAddress, getServer, getType, getVersionafterExecution, beforeExecution, isShutdownFlag, run, setDumpExceptions, softShutdown, startupactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected OClientConnection connection
protected OChannelTextServer channel
protected OUser account
protected OHttpRequest request
protected OHttpResponse response
protected OHttpNetworkCommandManager cmdManager
public ONetworkProtocolHttpAbstract(OServer server)
public void config(OServerNetworkListener iListener, OServer iServer, Socket iSocket, OContextConfiguration iConfiguration) throws IOException
config in class ONetworkProtocolIOExceptionpublic void service()
throws ONetworkProtocolException,
IOException
ONetworkProtocolExceptionIOExceptionpublic void sendShutdown()
sendShutdown in class OSoftThreadpublic void shutdown()
shutdown in interface OServiceshutdown in class OSoftThreadpublic OHttpRequest getRequest()
public OHttpResponse getResponse()
public OChannel getChannel()
getChannel in class ONetworkProtocolpublic OUser getAccount()
public String getSessionID()
public String getResponseCharSet()
public void setResponseCharSet(String responseCharSet)
public String[] getAdditionalResponseHeaders()
public OHttpNetworkCommandManager getCommandManager()
protected void handleError(Throwable e, OHttpRequest iRequest)
protected void sendTextContent(int iCode,
String iReason,
String iHeaders,
String iContentType,
String iContent,
boolean iKeepAlive)
throws IOException
IOExceptionprotected void sendError(int iCode,
String iReason,
String iHeaders,
String iContentType,
String iContent,
boolean iKeepAlive)
throws IOException
IOExceptionprotected void writeLine(String iContent) throws IOException
IOExceptionprotected void sendStatus(int iStatus,
String iReason)
throws IOException
IOExceptionprotected void sendResponseHeaders(String iContentType, boolean iKeepAlive) throws IOException
IOExceptionprotected void readAllContent(OHttpRequest iRequest) throws IOException
IOExceptionprotected void execute()
throws Exception
execute in class OSoftThreadExceptionprotected String deCompress(byte[] zipBytes)
protected void connectionClosed()
protected void timeout()
protected void connectionError()
protected void registerStatelessCommands(OServerNetworkListener iListener)
Copyright © 2009–2025 OrientDB. All rights reserved.