
public abstract class ONetworkProtocolHttpAbstract extends ONetworkProtocol
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected com.orientechnologies.orient.core.metadata.security.OUser |
account |
protected com.orientechnologies.orient.enterprise.channel.text.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,
com.orientechnologies.orient.core.config.OContextConfiguration iConfiguration) |
protected void |
connectionClosed() |
protected void |
connectionError() |
protected String |
deCompress(byte[] zipBytes) |
protected void |
execute() |
com.orientechnologies.orient.core.metadata.security.OUser |
getAccount() |
String[] |
getAdditionalResponseHeaders() |
com.orientechnologies.orient.enterprise.channel.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, isDumpExceptions, isShutdownFlag, pauseCurrentThread, 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 com.orientechnologies.orient.enterprise.channel.text.OChannelTextServer channel
protected com.orientechnologies.orient.core.metadata.security.OUser account
protected OHttpRequest request
protected OHttpResponse response
protected OHttpNetworkCommandManager cmdManager
public ONetworkProtocolHttpAbstract(OServer server)
public void config(OServerNetworkListener iListener, OServer iServer, Socket iSocket, com.orientechnologies.orient.core.config.OContextConfiguration iConfiguration) throws IOException
config in class ONetworkProtocolIOExceptionpublic void service()
throws com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException,
IOException
com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolExceptionIOExceptionpublic void sendShutdown()
sendShutdown in class com.orientechnologies.common.thread.OSoftThreadpublic void shutdown()
shutdown in interface com.orientechnologies.common.util.OServiceshutdown in class com.orientechnologies.common.thread.OSoftThreadpublic OHttpRequest getRequest()
public OHttpResponse getResponse()
public com.orientechnologies.orient.enterprise.channel.OChannel getChannel()
getChannel in class ONetworkProtocolpublic com.orientechnologies.orient.core.metadata.security.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 com.orientechnologies.common.thread.OSoftThreadExceptionprotected String deCompress(byte[] zipBytes)
protected void connectionClosed()
protected void timeout()
protected void connectionError()
protected void registerStatelessCommands(OServerNetworkListener iListener)
Copyright © 2009–2018 OrientDB. All rights reserved.