@Override
    public byte[] getDisplayValue() {
        getValue();

        if (value == null)
            return new byte[0];

        if (value instanceof GenerateContents) {
            try {
                return ((GenerateContents) value).generateContents();
            } catch (Exception ex) {
                com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.cache.CacheEntry.getDisplayValue", "887", this);
            }
        }

        Object dValue = value;
        if (value instanceof byte[]) {
            try {
                dValue = SerializationUtility.deserialize((byte[]) value, cacheName);
            } catch (Exception ex) {
                com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.cache.CacheEntry.getDisplayValue", "896", this);
            }
        }

        byte[] returnme = null;
        try {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, "UTF8"));
            pw.print(dValue);
            pw.flush();
            returnme = baos.toByteArray();
        } catch (Exception e) {
            com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.ws.cache.CacheEntry.getDisplayValue", "908", this);
            Tr.error(tc, "dynacache.error", e.getMessage());
            if (tc.isDebugEnabled())
                Tr.debug(tc, "error getting value for CacheEntry " + id + ": " + e.getMessage());
        }
        return returnme;

    }
@ Override public byte [ ] getDisplayValue ( ) { getValue ( ) ; if ( value == null ) return new byte [ 0 ] ; if ( value instanceof GenerateContents ) { try { return ( ( GenerateContents ) value ) . generateContents ( ) ; } catch ( Exception ex ) { com . ibm . ws . ffdc . FFDCFilter . processException ( ex , "com.ibm.ws.cache.CacheEntry.getDisplayValue" , "887" , this ) ; } } Object dValue = value ; if ( value instanceof byte [ ] ) { try { dValue = SerializationUtility . deserialize ( ( byte [ ] ) value , cacheName ) ; } catch ( Exception ex ) { com . ibm . ws . ffdc . FFDCFilter . processException ( ex , "com.ibm.ws.cache.CacheEntry.getDisplayValue" , "896" , this ) ; } } byte [ ] returnme = null ; try { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; PrintWriter pw = new PrintWriter ( new OutputStreamWriter ( baos , "UTF8" ) ) ; pw . print ( dValue ) ; pw . flush ( ) ; returnme = baos . toByteArray ( ) ; } catch ( Exception e ) { com . ibm . ws . ffdc . FFDCFilter . processException ( e , "com.ibm.ws.cache.CacheEntry.getDisplayValue" , "908" , this ) ; Tr . error ( tc , "dynacache.error" , e . getMessage ( ) ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "error getting value for CacheEntry " + id + ": " + e . getMessage ( ) ) ; } return returnme ; }
gets this entry's value without expanding any subfragments.
called only for debug/admin purposes!