Examples of JavaObjectValue


Examples of org.exist.xquery.value.JavaObjectValue

          {return;}
        // response servlet object is read from global variable $response
        final Variable var = myModule.resolveVariable(ResponseModule.RESPONSE_VAR);
       
        if (var != null && var.getValue() != null) {
          final JavaObjectValue value = (JavaObjectValue) var.getValue()
              .itemAt(0);
          if (value != null
              && value.getObject() instanceof ResponseWrapper) {
            // have to take in account that if the header has allready been explicitely set
            // by the XQuery script, we should not modify it .
            final ResponseWrapper responseWrapper = ((ResponseWrapper) value.getObject());
            if ( responseWrapper.getDateHeader("Last-Modified") == 0 )
              {responseWrapper.setDateHeader(
                "Last-Modified", mostRecentDocumentTime);}
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.