public Response . ResponseBuilder getTimeGateBuilder ( final LdpRequest req , final String baseUrl ) { final String identifier = getBaseUrl ( baseUrl , req ) + req . getPartition ( ) + req . getPath ( ) ; return Response . status ( FOUND ) . location ( fromUri ( identifier + "?version=" + req . getDatetime ( ) . getInstant ( ) . toEpochMilli ( ) ) . build ( ) ) . link ( identifier , ORIGINAL + " " + TIMEGATE ) . links ( getMementoLinks ( identifier , resource . getMementos ( ) ) . toArray ( Link [ ] :: new ) ) . header ( VARY , ACCEPT_DATETIME ) ; }
Create a response builder for a TimeGate response