Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for encodeJsp (0.22 sec)

  1. src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java

        }
    
        public void test_encodeJsp() {
            assertEquals("<!--TRY-->", AdminDesignAction.encodeJsp("<% try{ %>"));
            assertEquals("<!--CACHE_AND_SESSION_INVALIDATE-->",
                    AdminDesignAction.encodeJsp("<% }catch(Exception e){session.invalidate();} %>"));
        }
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Sun Jul 28 09:03:48 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            final String jspType = "view";
            final File jspFile = getJspFile(form.fileName, jspType);
            try {
                form.content = encodeJsp(new String(FileUtil.readBytes(jspFile), Constants.UTF_8));
            } catch (final UnsupportedEncodingException e) {
                throw new FessSystemException("Invalid encoding", e);
            }
            saveToken();
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. cmd/batch-expire_gen.go

    				return
    			}
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z *BatchJobExpireFilter) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 8
    	// write "OlderThan"
    	err = en.Append(0x88, 0xa9, 0x4f, 0x6c, 0x64, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
    	if err != nil {
    		return
    	}
    	err = z.OlderThan.EncodeMsg(en)
    	if err != nil {
    		err = msgp.WrapError(err, "OlderThan")
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  4. cmd/storage-datatypes_gen_test.go

    	v := BaseOptions{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeBaseOptions(b *testing.B) {
    	v := BaseOptions{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  5. cmd/batch-handlers_gen.go

    	}
    	for zb0001 := range *z {
    		(*z)[zb0001], err = dc.ReadString()
    		if err != nil {
    			err = msgp.WrapError(err, zb0001)
    			return
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z BatchJobPrefix) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteArrayHeader(uint32(len(z)))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0003 := range z {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. internal/grid/msg_gen_test.go

    	v := connectReq{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeconnectReq(b *testing.B) {
    	v := connectReq{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. cmd/local-locker_gen.go

    			err = zb0002[zb0003].DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, zb0001, zb0003)
    				return
    			}
    		}
    		(*z)[zb0001] = zb0002
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z localLockMap) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteMapHeader(uint32(len(z)))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0006, zb0007 := range z {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. internal/grid/msg_gen.go

    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = Flags(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z Flags) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteUint8(uint8(z))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. cmd/batch-replicate_gen.go

    				return
    			}
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z *BatchJobReplicateFlags) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 3
    	// write "Filter"
    	err = en.Append(0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
    	if err != nil {
    		return
    	}
    	err = z.Filter.EncodeMsg(en)
    	if err != nil {
    		err = msgp.WrapError(err, "Filter")
    		return
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  10. cmd/data-usage-cache_gen_test.go

    	v := allTierStats{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeallTierStats(b *testing.B) {
    	v := allTierStats{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top