package com.orientechnologies.orient.server.network.protocol.http.command.get;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.orient.core.record.impl.ODocument;
import com.orientechnologies.orient.core.serialization.serializer.OJSONWriter;
import com.orientechnologies.orient.server.network.protocol.http.OHttpRequest;
import com.orientechnologies.orient.server.network.protocol.http.OHttpResponse;
import com.orientechnologies.orient.server.network.protocol.http.OHttpUtils;
import com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract;
import java.io.IOException;
import java.io.StringWriter;
public class OServerCommandGetPing extends OServerCommandAbstract
{
private static final String[] NAMES = { "GET|ping" };
@Override
public String[] getNames() { return NAMES; }
public OServerCommandGetPing()
{
}
@Override
public boolean execute(final OHttpRequest iRequest, final OHttpResponse iResponse) throws Exception
{
iResponse.send(OHttpUtils.STATUS_OK_CODE, "OK", OHttpUtils.CONTENT_TEXT_PLAIN, "pong", null);
return false; // Is not a chained command.
}
}