Package com.storedobject.tools
Class AbstractJSONService<T>
java.lang.Object
com.storedobject.tools.SystemDevice
com.storedobject.tools.AbstractJSONService<T>
-
Field Summary
FieldsFields inherited from class com.storedobject.tools.SystemDevice
login, server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected final void
int
int
protected String
protected abstract OutputStream
protected String
protected abstract Writer
final boolean
protected abstract boolean
protected abstract void
protected abstract T
push()
protected abstract void
protected abstract void
setContentType
(String contentType) protected abstract void
setStatus
(int status) protected abstract void
setStreamData
(StreamData streamData) Methods inherited from class com.storedobject.tools.SystemDevice
getDefaultEntity, getDeviceLayout, getDriverIdentifier, getIdentifier, getIPAddress, getLocale, getMajorVersion, getMessageViewer, getMinorVersion, getServer, loggedIn, notify, setDeviceLayout, setIPAddress, setLocale, setServer, showNotification, showNotification, showNotification, showNotification, view
-
Field Details
-
debug
protected final boolean debug
-
-
Constructor Details
-
AbstractJSONService
-
-
Method Details
-
getOutputStream
-
doService
- Throws:
IOException
-
push
-
pop
-
close
public void close() -
notToRespond
protected abstract boolean notToRespond() -
getWriter
-
responded
protected abstract void responded() -
getDeviceType
-
getIdentifierTag
- Specified by:
getIdentifierTag
in classSystemDevice
-
getPackageName
- Specified by:
getPackageName
in classSystemDevice
-
getDeviceHeight
public int getDeviceHeight()- Specified by:
getDeviceHeight
in interfaceDevice
- Overrides:
getDeviceHeight
in classSystemDevice
-
getDeviceWidth
public int getDeviceWidth()- Specified by:
getDeviceWidth
in interfaceDevice
- Overrides:
getDeviceWidth
in classSystemDevice
-
setStreamData
- Throws:
SOException
-
setContentType
-
setStatus
protected abstract void setStatus(int status) -
isAuthentic
public final boolean isAuthentic()
-