cz.muni.fi.cewebs.myservice.delivery
Class PResponse

java.lang.Object
  extended by cz.muni.fi.cewebs.myservice.delivery.PResponse

public class PResponse
extends java.lang.Object

Třída obalující odpověď služby při volání metody prepare


Field Summary
protected  boolean authenticate
          Hodnotou true služba oznamuje TE, že vyžaduje autentizaci uživatele.
protected  java.lang.String cachekey
          Kešovací klíč.
 
Constructor Summary
PResponse()
           
PResponse(java.lang.String cachekey, boolean authenticate)
           
 
Method Summary
 java.lang.String getCachekey()
           
 boolean isAuthenticate()
           
 void setAuthenticate(boolean authenticate)
           
 void setCachekey(java.lang.String cachekey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachekey

protected java.lang.String cachekey
Kešovací klíč. TE jej použije při prohledání aktuálně nakešovaných odpovědí této služby. Pokud je v keši nalezen odpovídající záznam a při následném volání metody doCommand nebo doDownload ověřena jeho platnost, může služba povolit jeho využití. Hešovací klíč je tedy vhodné počítat právě z hodnot těch parametrů metody prepare, které mají vliv na výsledek volání. Pokud je jako hešovací klíč vrácena hodnota null nebo prázdný řetězec, kešování se v TE vůbec nepoužije.


authenticate

protected boolean authenticate
Hodnotou true služba oznamuje TE, že vyžaduje autentizaci uživatele.

Constructor Detail

PResponse

public PResponse()

PResponse

public PResponse(java.lang.String cachekey,
                 boolean authenticate)
Method Detail

getCachekey

public java.lang.String getCachekey()

setCachekey

public void setCachekey(java.lang.String cachekey)

isAuthenticate

public boolean isAuthenticate()

setAuthenticate

public void setAuthenticate(boolean authenticate)