org.glassfish.admin.rest.resources.custom
Class LogViewerResource

java.lang.Object
  extended by org.glassfish.admin.rest.resources.custom.LogViewerResource

public class LogViewerResource
extends java.lang.Object

Represents a large text data.

This class defines methods for handling progressive text update.

Usage

Author:
Kohsuke Kawaguchi

Field Summary
protected  java.nio.charset.Charset charset
           
protected  org.jvnet.hk2.component.Habitat habitat
           
protected  com.sun.jersey.api.core.ResourceContext resourceContext
           
protected  javax.ws.rs.core.UriInfo ui
           
 
Constructor Summary
LogViewerResource()
           
 
Method Summary
 javax.ws.rs.core.Response get(long start, java.lang.String instanceName, javax.ws.rs.core.HttpHeaders hh)
           
 StructuredLogViewerResource getDomainUptimeResource()
           
 void initLargeText(java.io.File file, boolean completed)
           
 void initLargeText(java.io.File file, java.nio.charset.Charset charset, boolean completed)
           
 boolean isComplete()
           
 void markAsComplete()
           
 void setEntity(org.jvnet.hk2.config.Dom p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceContext

@Context
protected com.sun.jersey.api.core.ResourceContext resourceContext

ui

@Context
protected javax.ws.rs.core.UriInfo ui

habitat

@Context
protected org.jvnet.hk2.component.Habitat habitat

charset

protected java.nio.charset.Charset charset
Constructor Detail

LogViewerResource

public LogViewerResource()
Method Detail

setEntity

public void setEntity(org.jvnet.hk2.config.Dom p)

getDomainUptimeResource

public StructuredLogViewerResource getDomainUptimeResource()

get

public javax.ws.rs.core.Response get(long start,
                                     java.lang.String instanceName,
                                     @Context
                                     javax.ws.rs.core.HttpHeaders hh)
                              throws java.io.IOException
Throws:
java.io.IOException

initLargeText

public void initLargeText(java.io.File file,
                          boolean completed)

initLargeText

public void initLargeText(java.io.File file,
                          java.nio.charset.Charset charset,
                          boolean completed)

markAsComplete

public void markAsComplete()

isComplete

public boolean isComplete()


Copyright © 2012 GlassFish Community. All Rights Reserved.